Lines Matching refs:du
37 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
39 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
40 drm_plane_cleanup(&du->cursor); in vmw_du_cleanup()
42 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
43 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
44 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
45 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
237 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
242 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
244 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
245 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
253 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
259 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
260 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
261 du->cursor_age == du->cursor_surface->snooper.age) in vmw_kms_cursor_post_execbuf()
264 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
266 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
268 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
269 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
378 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_cursor_plane_atomic_update() local
384 hotspot_x = du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
385 hotspot_y = du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
392 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
393 du->cursor_bo = vps->bo; in vmw_du_cursor_plane_atomic_update()
396 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_cursor_plane_atomic_update()
413 du->cursor_x = plane->state->crtc_x + du->set_gui_x; in vmw_du_cursor_plane_atomic_update()
414 du->cursor_y = plane->state->crtc_y + du->set_gui_y; in vmw_du_cursor_plane_atomic_update()
417 du->cursor_x + hotspot_x, in vmw_du_cursor_plane_atomic_update()
418 du->cursor_y + hotspot_y); in vmw_du_cursor_plane_atomic_update()
420 du->core_hotspot_x = hotspot_x - du->hotspot_x; in vmw_du_cursor_plane_atomic_update()
421 du->core_hotspot_y = hotspot_y - du->hotspot_y; in vmw_du_cursor_plane_atomic_update()
458 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_primary_plane_atomic_check() local
462 vcs = vmw_connector_state_to_vcs(du->connector.state); in vmw_du_primary_plane_atomic_check()
467 !(dev_priv->num_implicit == 1 && du->active_implicit) in vmw_du_primary_plane_atomic_check()
537 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
538 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
1595 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1601 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1602 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1603 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1604 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1611 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
1624 if (!du->pref_active) { in vmw_kms_check_topology()
1634 connector = &du->connector; in vmw_kms_check_topology()
1642 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1643 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
1645 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
1646 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
1647 rects[i].x2 = du->gui_x + new_crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1648 rects[i].y2 = du->gui_y + new_crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1823 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
1832 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1833 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1834 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1847 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1849 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1850 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
2005 struct vmw_display_unit *du; in vmw_du_update_layout() local
2015 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2016 if (num_rects > du->unit) { in vmw_du_update_layout()
2017 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
2018 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
2019 du->pref_active = true; in vmw_du_update_layout()
2020 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
2021 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
2023 du->pref_width = 800; in vmw_du_update_layout()
2024 du->pref_height = 600; in vmw_du_update_layout()
2025 du->pref_active = false; in vmw_du_update_layout()
2026 du->gui_x = 0; in vmw_du_update_layout()
2027 du->gui_y = 0; in vmw_du_update_layout()
2035 du = vmw_connector_to_du(con); in vmw_du_update_layout()
2036 if (num_rects > du->unit) { in vmw_du_update_layout()
2039 du->gui_x); in vmw_du_update_layout()
2042 du->gui_y); in vmw_du_update_layout()
2090 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
2095 du->pref_active) ? in vmw_du_connector_detect()
2201 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_fill_modes() local
2233 mode->hdisplay = du->pref_width; in vmw_du_connector_fill_modes()
2234 mode->vdisplay = du->pref_height; in vmw_du_connector_fill_modes()
2246 if (du->pref_mode) { in vmw_du_connector_fill_modes()
2247 list_del_init(&du->pref_mode->head); in vmw_du_connector_fill_modes()
2248 drm_mode_destroy(dev, du->pref_mode); in vmw_du_connector_fill_modes()
2252 du->pref_mode = mode; in vmw_du_connector_fill_modes()
2284 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_set_property() local
2288 du->is_implicit = val; in vmw_du_connector_set_property()
2311 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_atomic_set_property() local
2322 du->is_implicit = vcs->is_implicit; in vmw_du_connector_atomic_set_property()
2850 struct vmw_display_unit *du; in vmw_kms_fbdev_init_data() local
2879 du = vmw_connector_to_du(con); in vmw_kms_fbdev_init_data()
2881 *p_crtc = &du->crtc; in vmw_kms_fbdev_init_data()
2910 struct vmw_display_unit *du) in vmw_kms_del_active() argument
2913 if (du->active_implicit) { in vmw_kms_del_active()
2916 du->active_implicit = false; in vmw_kms_del_active()
2931 struct vmw_display_unit *du, in vmw_kms_add_active() argument
2937 if (!du->active_implicit && du->is_implicit) { in vmw_kms_add_active()
2939 du->active_implicit = true; in vmw_kms_add_active()
2958 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_crtc_flippable() local
2962 ret = !du->is_implicit || dev_priv->num_implicit == 1; in vmw_kms_crtc_flippable()
2977 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_update_implicit_fb() local
2983 if (!du->is_implicit) in vmw_kms_update_implicit_fb()