Lines Matching defs:du
42 void vmw_du_cleanup(struct vmw_display_unit *du)
44 drm_plane_cleanup(&du->primary);
45 drm_plane_cleanup(&du->cursor);
47 drm_connector_unregister(&du->connector);
48 drm_crtc_cleanup(&du->crtc);
49 drm_encoder_cleanup(&du->encoder);
50 drm_connector_cleanup(&du->connector);
241 struct vmw_display_unit *du;
246 du = vmw_crtc_to_du(crtc);
248 du->hotspot_x = 0;
249 du->hotspot_y = 0;
257 struct vmw_display_unit *du;
263 du = vmw_crtc_to_du(crtc);
264 if (!du->cursor_surface ||
265 du->cursor_age == du->cursor_surface->snooper.age)
268 du->cursor_age = du->cursor_surface->snooper.age;
270 du->cursor_surface->snooper.image,
272 du->hotspot_x + du->core_hotspot_x,
273 du->hotspot_y + du->core_hotspot_y);
382 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
388 hotspot_x = du->hotspot_x;
389 hotspot_y = du->hotspot_y;
396 du->cursor_surface = vps->surf;
397 du->cursor_bo = vps->bo;
400 du->cursor_age = du->cursor_surface->snooper.age;
417 du->cursor_x = plane->state->crtc_x + du->set_gui_x;
418 du->cursor_y = plane->state->crtc_y + du->set_gui_y;
421 du->cursor_x + hotspot_x,
422 du->cursor_y + hotspot_y);
424 du->core_hotspot_x = hotspot_x - du->hotspot_x;
425 du->core_hotspot_y = hotspot_y - du->hotspot_y;
462 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
464 vcs = vmw_connector_state_to_vcs(du->connector.state);
528 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc);
529 int connector_mask = drm_connector_mask(&du->connector);
1557 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1559 if (!du->is_implicit)
1573 plane_state = du->primary.state;
1609 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1624 rects[i].x1 = du->gui_x;
1625 rects[i].y1 = du->gui_y;
1626 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay;
1627 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay;
1639 struct vmw_display_unit *du = vmw_crtc_to_du(crtc);
1644 if (!du->pref_active && new_crtc_state->enable) {
1655 connector = &du->connector;
1663 vmw_conn_state->gui_x = du->gui_x;
1664 vmw_conn_state->gui_y = du->gui_y;
1836 struct vmw_display_unit *du;
1845 du = vmw_crtc_to_du(crtc);
1846 du->hotspot_x = arg->xhot;
1847 du->hotspot_y = arg->yhot;
1860 du = vmw_crtc_to_du(crtc);
1862 du->hotspot_x = arg->xhot;
1863 du->hotspot_y = arg->yhot;
1937 struct vmw_display_unit *du;
1961 du = vmw_connector_to_du(con);
1962 if (num_rects > du->unit) {
1963 du->pref_width = drm_rect_width(&rects[du->unit]);
1964 du->pref_height = drm_rect_height(&rects[du->unit]);
1965 du->pref_active = true;
1966 du->gui_x = rects[du->unit].x1;
1967 du->gui_y = rects[du->unit].y1;
1969 du->pref_width = 800;
1970 du->pref_height = 600;
1971 du->pref_active = false;
1972 du->gui_x = 0;
1973 du->gui_y = 0;
1979 du = vmw_connector_to_du(con);
1980 if (num_rects > du->unit) {
1983 du->gui_x);
1986 du->gui_y);
2037 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2042 du->pref_active) ?
2147 struct vmw_display_unit *du = vmw_connector_to_du(connector);
2179 mode->hdisplay = du->pref_width;
2180 mode->vdisplay = du->pref_height;
2192 if (du->pref_mode) {
2193 list_del_init(&du->pref_mode->head);
2194 drm_mode_destroy(dev, du->pref_mode);
2198 du->pref_mode = mode;
2565 struct vmw_display_unit *du;
2594 du = vmw_connector_to_du(con);
2596 *p_crtc = &du->crtc;