Lines Matching full:du

24 void vmw_du_init(struct vmw_display_unit *du)  in vmw_du_init()  argument
26 vmw_vkms_crtc_init(&du->crtc); in vmw_du_init()
29 void vmw_du_cleanup(struct vmw_display_unit *du) in vmw_du_cleanup() argument
31 struct vmw_private *dev_priv = vmw_priv(du->primary.dev); in vmw_du_cleanup()
33 vmw_vkms_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
34 drm_plane_cleanup(&du->primary); in vmw_du_cleanup()
36 drm_plane_cleanup(&du->cursor.base); in vmw_du_cleanup()
38 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
39 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
40 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
41 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
140 struct vmw_display_unit *du = vmw_crtc_to_du(new_state->crtc); in vmw_du_crtc_atomic_check() local
141 int connector_mask = drm_connector_mask(&du->connector); in vmw_du_crtc_atomic_check()
900 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_implicit() local
902 if (!du->is_implicit) in vmw_kms_check_implicit()
916 plane_state = du->primary.state; in vmw_kms_check_implicit()
952 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
967 rects[i].x1 = du->gui_x; in vmw_kms_check_topology()
968 rects[i].y1 = du->gui_y; in vmw_kms_check_topology()
969 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
970 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
982 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_kms_check_topology() local
987 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()
998 connector = &du->connector; in vmw_kms_check_topology()
1006 vmw_conn_state->gui_x = du->gui_x; in vmw_kms_check_topology()
1007 vmw_conn_state->gui_y = du->gui_y; in vmw_kms_check_topology()
1142 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_atomic_commit_tail() local
1144 flush_work(&du->vkms.crc_generator_work); in vmw_atomic_commit_tail()
1247 struct vmw_display_unit *du; in vmw_du_update_layout() local
1271 du = vmw_connector_to_du(con); in vmw_du_update_layout()
1272 if (num_rects > du->unit) { in vmw_du_update_layout()
1273 du->pref_width = drm_rect_width(&rects[du->unit]); in vmw_du_update_layout()
1274 du->pref_height = drm_rect_height(&rects[du->unit]); in vmw_du_update_layout()
1275 du->pref_active = true; in vmw_du_update_layout()
1276 du->gui_x = rects[du->unit].x1; in vmw_du_update_layout()
1277 du->gui_y = rects[du->unit].y1; in vmw_du_update_layout()
1279 du->pref_width = VMWGFX_MIN_INITIAL_WIDTH; in vmw_du_update_layout()
1280 du->pref_height = VMWGFX_MIN_INITIAL_HEIGHT; in vmw_du_update_layout()
1281 du->pref_active = false; in vmw_du_update_layout()
1282 du->gui_x = 0; in vmw_du_update_layout()
1283 du->gui_y = 0; in vmw_du_update_layout()
1289 du = vmw_connector_to_du(con); in vmw_du_update_layout()
1290 if (num_rects > du->unit) { in vmw_du_update_layout()
1293 du->gui_x); in vmw_du_update_layout()
1296 du->gui_y); in vmw_du_update_layout()
1347 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
1352 du->pref_active) ? in vmw_du_connector_detect()
1858 * @connector: the drm connector, part of a DU container
1890 * @connector: the drm connector, part of a DU container
1896 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_connector_get_modes() local
1914 mode->hdisplay = du->pref_width; in vmw_connector_get_modes()
1915 mode->vdisplay = du->pref_height; in vmw_connector_get_modes()