Lines Matching full:du
40 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
42 struct vmw_private *dev_priv = vmw_priv(du->primary.dev); in vmw_du_cleanup()
43 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
45 drm_plane_cleanup(&du->cursor.base); in vmw_du_cleanup()
47 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
48 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
49 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
50 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
464 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
469 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
471 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
472 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
480 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
486 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
487 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
488 du->cursor_age == du->cursor_surface->snooper.age || in vmw_kms_cursor_post_execbuf()
489 !du->cursor_surface->snooper.image) in vmw_kms_cursor_post_execbuf()
492 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
494 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
497 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
498 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
769 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update() local
774 hotspot_x = du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
775 hotspot_y = du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
782 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
783 du->cursor_bo = vps->bo; in vmw_du_cursor_plane_atomic_update()
794 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_cursor_plane_atomic_update()
814 du->cursor_x = new_state->crtc_x + du->set_gui_x; in vmw_du_cursor_plane_atomic_update()
815 du->cursor_y = new_state->crtc_y + du->set_gui_y; in vmw_du_cursor_plane_atomic_update()
818 du->cursor_x + hotspot_x, in vmw_du_cursor_plane_atomic_update()
819 du->cursor_y + hotspot_y); in vmw_du_cursor_plane_atomic_update()
821 du->core_hotspot_x = hotspot_x - du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
822 du->core_hotspot_y = hotspot_y - du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
858 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_primary_plane_atomic_check() local
860 vmw_connector_state_to_vcs(du->connector.state); in vmw_du_primary_plane_atomic_check()
933 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
934 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1813 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
1815 if (!du->is_implicit) in vmw_kms_check_implicit()
1829 plane_state = du->primary.state; in vmw_kms_check_implicit()
1865 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1880 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1881 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1882 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1883 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1895 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1900 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
1911 connector = &du->connector; in vmw_kms_check_topology()
1919 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1920 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
2099 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
2107 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2108 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
2109 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2122 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2124 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
2125 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2174 struct vmw_display_unit *du; in vmw_du_update_layout() local
2198 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2199 if (num_rects > du->unit) { in vmw_du_update_layout()
2200 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2201 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2202 du->pref_active = true; in vmw_du_update_layout()
2203 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2204 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2206 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH; in vmw_du_update_layout()
2207 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT; in vmw_du_update_layout()
2208 du->pref_active = false; in vmw_du_update_layout()
2209 du->gui_x = 0; in vmw_du_update_layout()
2210 du->gui_y = 0; in vmw_du_update_layout()
2216 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2217 if (num_rects > du->unit) { in vmw_du_update_layout()
2220 du->gui_x); in vmw_du_update_layout()
2223 du->gui_y); in vmw_du_update_layout()
2274 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2279 du->pref_active) ? in vmw_du_connector_detect()
2850 * @connector: the drm connector, part of a DU container
2882 * @connector: the drm connector, part of a DU container
2888 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_connector_get_modes() local
2906 mode->hdisplay = du->pref_width; in vmw_connector_get_modes()
2907 mode->vdisplay = du->pref_height; in vmw_connector_get_modes()