Lines Matching defs:du
47 void vmw_du_cleanup(struct vmw_display_unit *du)
49 drm_plane_cleanup(&du->primary);
50 drm_plane_cleanup(&du->cursor);
52 drm_connector_unregister(&du->connector);
53 drm_crtc_cleanup(&du->crtc);
54 drm_encoder_cleanup(&du->encoder);
55 drm_connector_cleanup(&du->connector);
245 struct vmw_display_unit *du;
250 du = vmw_crtc_to_du(crtc);
252 du->hotspot_x = 0;
253 du->hotspot_y = 0;
261 struct vmw_display_unit *du;
267 du = vmw_crtc_to_du(crtc);
268 if (!du->cursor_surface ||
269 du->cursor_age == du->cursor_surface->snooper.age)
272 du->cursor_age = du->cursor_surface->snooper.age;
274 du->cursor_surface->snooper.image,
276 du->hotspot_x + du->core_hotspot_x,
277 du->hotspot_y + du->core_hotspot_y);
386 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
392 hotspot_x = du->hotspot_x;
393 hotspot_y = du->hotspot_y;
400 du->cursor_surface = vps->surf;
401 du->cursor_bo = vps->bo;
404 du->cursor_age = du->cursor_surface->snooper.age;
421 du->cursor_x = plane->state->crtc_x + du->set_gui_x;
422 du->cursor_y = plane->state->crtc_y + du->set_gui_y;
425 du->cursor_x + hotspot_x,
426 du->cursor_y + hotspot_y);
428 du->core_hotspot_x = hotspot_x - du->hotspot_x;
429 du->core_hotspot_y = hotspot_y - du->hotspot_y;
466 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
468 vcs = vmw_connector_state_to_vcs(du->connector.state);
532 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc);
533 int connector_mask = drm_connector_mask(&du->connector);
1569 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1571 if (!du->is_implicit)
1585 plane_state = du->primary.state;
1621 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1636 rects[i].x1 = du->gui_x;
1637 rects[i].y1 = du->gui_y;
1638 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1639 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1651 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1656 if (!du->pref_active && new_crtc_state->enable) {
1667 connector = &du->connector;
1675 vmw_conn_state->gui_x = du->gui_x;
1676 vmw_conn_state->gui_y = du->gui_y;
1848 struct vmw_display_unit *du;
1857 du = vmw_crtc_to_du(crtc);
1858 du->hotspot_x = arg->xhot;
1859 du->hotspot_y = arg->yhot;
1872 du = vmw_crtc_to_du(crtc);
1874 du->hotspot_x = arg->xhot;
1875 du->hotspot_y = arg->yhot;
2030 struct vmw_display_unit *du;
2054 du = vmw_connector_to_du(con);
2055 if (num_rects > du->unit) {
2056 du->pref_width = drm_rect_width(&rects[du->unit]);
2057 du->pref_height = drm_rect_height(&rects[du->unit]);
2058 du->pref_active = true;
2059 du->gui_x = rects[du->unit].x1;
2060 du->gui_y = rects[du->unit].y1;
2062 du->pref_width = 800;
2063 du->pref_height = 600;
2064 du->pref_active = false;
2065 du->gui_x = 0;
2066 du->gui_y = 0;
2072 du = vmw_connector_to_du(con);
2073 if (num_rects > du->unit) {
2076 du->gui_x);
2079 du->gui_y);
2130 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2135 du->pref_active) ?
2241 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2273 mode->hdisplay = du->pref_width;
2274 mode->vdisplay = du->pref_height;
2286 if (du->pref_mode) {
2287 list_del_init(&du->pref_mode->head);
2288 drm_mode_destroy(dev, du->pref_mode);
2292 du->pref_mode = mode;
2660 struct vmw_display_unit *du;
2689 du = vmw_connector_to_du(con);
2691 *p_crtc = &du->crtc;