Lines Matching defs:du
39 void vmw_du_cleanup(struct vmw_display_unit *du)
41 struct vmw_private *dev_priv = vmw_priv(du->primary.dev);
42 drm_plane_cleanup(&du->primary);
44 drm_plane_cleanup(&du->cursor.base);
46 drm_connector_unregister(&du->connector);
47 drm_crtc_cleanup(&du->crtc);
48 drm_encoder_cleanup(&du->encoder);
49 drm_connector_cleanup(&du->connector);
463 struct vmw_display_unit *du;
468 du = vmw_crtc_to_du(crtc);
470 du->hotspot_x = 0;
471 du->hotspot_y = 0;
479 struct vmw_display_unit *du;
485 du = vmw_crtc_to_du(crtc);
486 if (!du->cursor_surface ||
487 du->cursor_age == du->cursor_surface->snooper.age ||
488 !du->cursor_surface->snooper.image)
491 du->cursor_age = du->cursor_surface->snooper.age;
493 du->cursor_surface->snooper.image,
496 du->hotspot_x + du->core_hotspot_x,
497 du->hotspot_y + du->core_hotspot_y);
768 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
773 hotspot_x = du->hotspot_x;
774 hotspot_y = du->hotspot_y;
781 du->cursor_surface = vps->surf;
782 du->cursor_bo = vps->bo;
793 du->cursor_age = du->cursor_surface->snooper.age;
813 du->cursor_x = new_state->crtc_x + du->set_gui_x;
814 du->cursor_y = new_state->crtc_y + du->set_gui_y;
817 du->cursor_x + hotspot_x,
818 du->cursor_y + hotspot_y);
820 du->core_hotspot_x = hotspot_x - du->hotspot_x;
821 du->core_hotspot_y = hotspot_y - du->hotspot_y;
857 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
859 vmw_connector_state_to_vcs(du->connector.state);
931 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc);
932 int connector_mask = drm_connector_mask(&du->connector);
1806 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1808 if (!du->is_implicit)
1822 plane_state = du->primary.state;
1858 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1873 rects[i].x1 = du->gui_x;
1874 rects[i].y1 = du->gui_y;
1875 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1876 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1888 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1893 if (!du->pref_active && new_crtc_state->enable) {
1904 connector = &du->connector;
1912 vmw_conn_state->gui_x = du->gui_x;
1913 vmw_conn_state->gui_y = du->gui_y;
2092 struct vmw_display_unit *du;
2100 du = vmw_crtc_to_du(crtc);
2101 du->hotspot_x = arg->xhot;
2102 du->hotspot_y = arg->yhot;
2115 du = vmw_crtc_to_du(crtc);
2117 du->hotspot_x = arg->xhot;
2118 du->hotspot_y = arg->yhot;
2168 struct vmw_display_unit *du;
2192 du = vmw_connector_to_du(con);
2193 if (num_rects > du->unit) {
2194 du->pref_width = drm_rect_width(&rects[du->unit]);
2195 du->pref_height = drm_rect_height(&rects[du->unit]);
2196 du->pref_active = true;
2197 du->gui_x = rects[du->unit].x1;
2198 du->gui_y = rects[du->unit].y1;
2200 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH;
2201 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT;
2202 du->pref_active = false;
2203 du->gui_x = 0;
2204 du->gui_y = 0;
2210 du = vmw_connector_to_du(con);
2211 if (num_rects > du->unit) {
2214 du->gui_x);
2217 du->gui_y);
2268 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2273 du->pref_active) ?
2402 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2434 mode->hdisplay = du->pref_width;
2435 mode->vdisplay = du->pref_height;
2448 if (du->pref_mode) {
2449 list_del_init(&du->pref_mode->head);
2450 drm_mode_destroy(dev, du->pref_mode);
2454 du->pref_mode = mode;