Lines Matching refs:du
42 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
44 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
45 drm_plane_cleanup(&du->cursor); in vmw_du_cleanup()
47 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
48 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
49 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
50 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
240 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
245 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
247 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
248 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
256 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
262 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
263 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
264 du->cursor_age == du->cursor_surface->snooper.age) in vmw_kms_cursor_post_execbuf()
267 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
269 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
271 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
272 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
381 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update() local
387 hotspot_x = du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
388 hotspot_y = du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
395 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
396 du->cursor_bo = vps->bo; in vmw_du_cursor_plane_atomic_update()
399 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_cursor_plane_atomic_update()
416 du->cursor_x = plane->state->crtc_x + du->set_gui_x; in vmw_du_cursor_plane_atomic_update()
417 du->cursor_y = plane->state->crtc_y + du->set_gui_y; in vmw_du_cursor_plane_atomic_update()
420 du->cursor_x + hotspot_x, in vmw_du_cursor_plane_atomic_update()
421 du->cursor_y + hotspot_y); in vmw_du_cursor_plane_atomic_update()
423 du->core_hotspot_x = hotspot_x - du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
424 du->core_hotspot_y = hotspot_y - du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
461 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_primary_plane_atomic_check() local
463 vcs = vmw_connector_state_to_vcs(du->connector.state); in vmw_du_primary_plane_atomic_check()
527 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
528 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1556 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
1558 if (!du->is_implicit) in vmw_kms_check_implicit()
1572 plane_state = du->primary.state; in vmw_kms_check_implicit()
1608 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1623 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1624 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1625 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1626 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1638 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1643 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
1654 connector = &du->connector; in vmw_kms_check_topology()
1662 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1663 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
1835 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
1844 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1845 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1846 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1859 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1861 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1862 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1936 struct vmw_display_unit *du; in vmw_du_update_layout() local
1960 du = vmw_connector_to_du(con); in vmw_du_update_layout()
1961 if (num_rects > du->unit) { in vmw_du_update_layout()
1962 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
1963 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
1964 du->pref_active = true; in vmw_du_update_layout()
1965 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
1966 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
1968 du->pref_width = 800; in vmw_du_update_layout()
1969 du->pref_height = 600; in vmw_du_update_layout()
1970 du->pref_active = false; in vmw_du_update_layout()
1971 du->gui_x = 0; in vmw_du_update_layout()
1972 du->gui_y = 0; in vmw_du_update_layout()
1978 du = vmw_connector_to_du(con); in vmw_du_update_layout()
1979 if (num_rects > du->unit) { in vmw_du_update_layout()
1982 du->gui_x); in vmw_du_update_layout()
1985 du->gui_y); in vmw_du_update_layout()
2036 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2041 du->pref_active) ? in vmw_du_connector_detect()
2146 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_fill_modes() local
2178 mode->hdisplay = du->pref_width; in vmw_du_connector_fill_modes()
2179 mode->vdisplay = du->pref_height; in vmw_du_connector_fill_modes()
2191 if (du->pref_mode) { in vmw_du_connector_fill_modes()
2192 list_del_init(&du->pref_mode->head); in vmw_du_connector_fill_modes()
2193 drm_mode_destroy(dev, du->pref_mode); in vmw_du_connector_fill_modes()
2197 du->pref_mode = mode; in vmw_du_connector_fill_modes()
2564 struct vmw_display_unit *du; in vmw_kms_fbdev_init_data() local
2593 du = vmw_connector_to_du(con); in vmw_kms_fbdev_init_data()
2595 *p_crtc = &du->crtc; in vmw_kms_fbdev_init_data()