Lines Matching full:du
39 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
41 struct vmw_private *dev_priv = vmw_priv(du->primary.dev); in vmw_du_cleanup()
42 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
44 drm_plane_cleanup(&du->cursor.base); in vmw_du_cleanup()
46 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
47 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
48 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
49 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
455 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
460 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
462 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
463 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
471 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
477 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
478 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
479 du->cursor_age == du->cursor_surface->snooper.age || in vmw_kms_cursor_post_execbuf()
480 !du->cursor_surface->snooper.image) in vmw_kms_cursor_post_execbuf()
483 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
485 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
488 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
489 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
766 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update() local
771 hotspot_x = du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
772 hotspot_y = du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
779 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
780 du->cursor_bo = vps->bo; in vmw_du_cursor_plane_atomic_update()
791 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_cursor_plane_atomic_update()
811 du->cursor_x = new_state->crtc_x + du->set_gui_x; in vmw_du_cursor_plane_atomic_update()
812 du->cursor_y = new_state->crtc_y + du->set_gui_y; in vmw_du_cursor_plane_atomic_update()
815 du->cursor_x + hotspot_x, in vmw_du_cursor_plane_atomic_update()
816 du->cursor_y + hotspot_y); in vmw_du_cursor_plane_atomic_update()
818 du->core_hotspot_x = hotspot_x - du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
819 du->core_hotspot_y = hotspot_y - du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
855 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_primary_plane_atomic_check() local
857 vmw_connector_state_to_vcs(du->connector.state); in vmw_du_primary_plane_atomic_check()
929 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
930 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1804 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
1806 if (!du->is_implicit) in vmw_kms_check_implicit()
1820 plane_state = du->primary.state; in vmw_kms_check_implicit()
1856 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1871 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1872 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1873 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1874 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1886 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1891 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
1902 connector = &du->connector; in vmw_kms_check_topology()
1910 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1911 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
2090 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
2098 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2099 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
2100 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2113 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
2115 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
2116 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2166 struct vmw_display_unit *du; in vmw_du_update_layout() local
2190 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2191 if (num_rects > du->unit) { in vmw_du_update_layout()
2192 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2193 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2194 du->pref_active = true; in vmw_du_update_layout()
2195 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2196 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2198 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH; in vmw_du_update_layout()
2199 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT; in vmw_du_update_layout()
2200 du->pref_active = false; in vmw_du_update_layout()
2201 du->gui_x = 0; in vmw_du_update_layout()
2202 du->gui_y = 0; in vmw_du_update_layout()
2208 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2209 if (num_rects > du->unit) { in vmw_du_update_layout()
2212 du->gui_x); in vmw_du_update_layout()
2215 du->gui_y); in vmw_du_update_layout()
2266 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2271 du->pref_active) ? in vmw_du_connector_detect()
2400 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_fill_modes() local
2432 mode->hdisplay = du->pref_width; in vmw_du_connector_fill_modes()
2433 mode->vdisplay = du->pref_height; in vmw_du_connector_fill_modes()
2446 if (du->pref_mode) { in vmw_du_connector_fill_modes()
2447 list_del_init(&du->pref_mode->head); in vmw_du_connector_fill_modes()
2448 drm_mode_destroy(dev, du->pref_mode); in vmw_du_connector_fill_modes()
2452 du->pref_mode = mode; in vmw_du_connector_fill_modes()