Lines Matching full:du
42 void vmw_du_init(struct vmw_display_unit *du) in vmw_du_init() argument
44 vmw_vkms_crtc_init(&du->crtc); in vmw_du_init()
47 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
49 struct vmw_private *dev_priv = vmw_priv(du->primary.dev); in vmw_du_cleanup()
51 vmw_vkms_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
52 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
54 drm_plane_cleanup(&du->cursor.base); in vmw_du_cleanup()
56 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
57 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
58 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
59 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
476 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
481 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
483 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
484 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
492 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
498 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
499 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
500 du->cursor_age == du->cursor_surface->snooper.age || in vmw_kms_cursor_post_execbuf()
501 !du->cursor_surface->snooper.image) in vmw_kms_cursor_post_execbuf()
504 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
506 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
509 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
510 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
748 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update() local
757 hotspot_x = du->hotspot_x + new_state->hotspot_x; in vmw_du_cursor_plane_atomic_update()
758 hotspot_y = du->hotspot_y + new_state->hotspot_y; in vmw_du_cursor_plane_atomic_update()
760 du->cursor_surface = vmw_user_object_surface(&vps->uo); in vmw_du_cursor_plane_atomic_update()
770 if (du->cursor_surface) in vmw_du_cursor_plane_atomic_update()
771 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_cursor_plane_atomic_update()
821 du->cursor_x = new_state->crtc_x + du->set_gui_x; in vmw_du_cursor_plane_atomic_update()
822 du->cursor_y = new_state->crtc_y + du->set_gui_y; in vmw_du_cursor_plane_atomic_update()
825 du->cursor_x + hotspot_x, in vmw_du_cursor_plane_atomic_update()
826 du->cursor_y + hotspot_y); in vmw_du_cursor_plane_atomic_update()
828 du->core_hotspot_x = hotspot_x - du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
829 du->core_hotspot_y = hotspot_y - du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
942 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
943 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1671 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
1673 if (!du->is_implicit) in vmw_kms_check_implicit()
1687 plane_state = du->primary.state; in vmw_kms_check_implicit()
1723 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1738 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1739 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1740 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1741 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1753 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1758 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
1769 connector = &du->connector; in vmw_kms_check_topology()
1777 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1778 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
1913 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_atomic_commit_tail() local
1915 flush_work(&du->vkms.crc_generator_work); in vmw_atomic_commit_tail()
1981 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
1989 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1990 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1991 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2004 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2006 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
2007 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2056 struct vmw_display_unit *du; in vmw_du_update_layout() local
2080 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2081 if (num_rects > du->unit) { in vmw_du_update_layout()
2082 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2083 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2084 du->pref_active = true; in vmw_du_update_layout()
2085 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2086 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2088 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH; in vmw_du_update_layout()
2089 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT; in vmw_du_update_layout()
2090 du->pref_active = false; in vmw_du_update_layout()
2091 du->gui_x = 0; in vmw_du_update_layout()
2092 du->gui_y = 0; in vmw_du_update_layout()
2098 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2099 if (num_rects > du->unit) { in vmw_du_update_layout()
2102 du->gui_x); in vmw_du_update_layout()
2105 du->gui_y); in vmw_du_update_layout()
2156 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2161 du->pref_active) ? in vmw_du_connector_detect()
2667 * @connector: the drm connector, part of a DU container
2699 * @connector: the drm connector, part of a DU container
2705 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_connector_get_modes() local
2723 mode->hdisplay = du->pref_width; in vmw_connector_get_modes()
2724 mode->vdisplay = du->pref_height; in vmw_connector_get_modes()