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
756 hotspot_x = du->hotspot_x + new_state->hotspot_x; in vmw_du_cursor_plane_atomic_update()
757 hotspot_y = du->hotspot_y + new_state->hotspot_y; in vmw_du_cursor_plane_atomic_update()
759 du->cursor_surface = vmw_user_object_surface(&vps->uo); in vmw_du_cursor_plane_atomic_update()
769 if (du->cursor_surface) in vmw_du_cursor_plane_atomic_update()
770 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()
932 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
933 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1661 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
1663 if (!du->is_implicit) in vmw_kms_check_implicit()
1677 plane_state = du->primary.state; in vmw_kms_check_implicit()
1713 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1728 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1729 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1730 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1731 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1743 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1748 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
1759 connector = &du->connector; in vmw_kms_check_topology()
1767 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1768 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
1903 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_atomic_commit_tail() local
1905 flush_work(&du->vkms.crc_generator_work); in vmw_atomic_commit_tail()
1971 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
1979 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1980 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1981 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1994 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1996 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1997 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2046 struct vmw_display_unit *du; in vmw_du_update_layout() local
2070 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2071 if (num_rects > du->unit) { in vmw_du_update_layout()
2072 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2073 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2074 du->pref_active = true; in vmw_du_update_layout()
2075 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2076 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2078 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH; in vmw_du_update_layout()
2079 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT; in vmw_du_update_layout()
2080 du->pref_active = false; in vmw_du_update_layout()
2081 du->gui_x = 0; in vmw_du_update_layout()
2082 du->gui_y = 0; in vmw_du_update_layout()
2088 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2089 if (num_rects > du->unit) { in vmw_du_update_layout()
2092 du->gui_x); in vmw_du_update_layout()
2095 du->gui_y); in vmw_du_update_layout()
2146 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2151 du->pref_active) ? in vmw_du_connector_detect()
2657 * @connector: the drm connector, part of a DU container
2689 * @connector: the drm connector, part of a DU container
2695 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_connector_get_modes() local
2713 mode->hdisplay = du->pref_width; in vmw_connector_get_modes()
2714 mode->vdisplay = du->pref_height; in vmw_connector_get_modes()