Lines Matching refs:du

34 void vmw_du_cleanup(struct vmw_display_unit *du)  in vmw_du_cleanup()  argument
36 if (du->cursor_surface) in vmw_du_cleanup()
37 vmw_surface_unreference(&du->cursor_surface); in vmw_du_cleanup()
38 if (du->cursor_dmabuf) in vmw_du_cleanup()
39 vmw_dmabuf_unreference(&du->cursor_dmabuf); in vmw_du_cleanup()
40 drm_connector_unregister(&du->connector); in vmw_du_cleanup()
41 drm_crtc_cleanup(&du->crtc); in vmw_du_cleanup()
42 drm_encoder_cleanup(&du->encoder); in vmw_du_cleanup()
43 drm_connector_cleanup(&du->connector); in vmw_du_cleanup()
145 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_crtc_cursor_set2() local
160 hotspot_x = hot_x + du->hotspot_x; in vmw_du_crtc_cursor_set2()
161 hotspot_y = hot_y + du->hotspot_y; in vmw_du_crtc_cursor_set2()
190 if (du->cursor_surface) { in vmw_du_crtc_cursor_set2()
191 du->cursor_surface->snooper.crtc = NULL; in vmw_du_crtc_cursor_set2()
192 vmw_surface_unreference(&du->cursor_surface); in vmw_du_crtc_cursor_set2()
194 if (du->cursor_dmabuf) in vmw_du_crtc_cursor_set2()
195 vmw_dmabuf_unreference(&du->cursor_dmabuf); in vmw_du_crtc_cursor_set2()
201 du->cursor_surface = surface; in vmw_du_crtc_cursor_set2()
203 du->cursor_surface->snooper.crtc = crtc; in vmw_du_crtc_cursor_set2()
204 du->cursor_age = du->cursor_surface->snooper.age; in vmw_du_crtc_cursor_set2()
209 du->cursor_dmabuf = dmabuf; in vmw_du_crtc_cursor_set2()
220 du->cursor_x + hotspot_x, in vmw_du_crtc_cursor_set2()
221 du->cursor_y + hotspot_y); in vmw_du_crtc_cursor_set2()
222 du->core_hotspot_x = hot_x; in vmw_du_crtc_cursor_set2()
223 du->core_hotspot_y = hot_y; in vmw_du_crtc_cursor_set2()
236 struct vmw_display_unit *du = vmw_crtc_to_du(crtc); in vmw_du_crtc_cursor_move() local
237 bool shown = du->cursor_surface || du->cursor_dmabuf ? true : false; in vmw_du_crtc_cursor_move()
239 du->cursor_x = x + crtc->x; in vmw_du_crtc_cursor_move()
240 du->cursor_y = y + crtc->y; in vmw_du_crtc_cursor_move()
253 du->cursor_x + du->hotspot_x + in vmw_du_crtc_cursor_move()
254 du->core_hotspot_x, in vmw_du_crtc_cursor_move()
255 du->cursor_y + du->hotspot_y + in vmw_du_crtc_cursor_move()
256 du->core_hotspot_y); in vmw_du_crtc_cursor_move()
360 struct vmw_display_unit *du; in vmw_kms_legacy_hotspot_clear() local
365 du = vmw_crtc_to_du(crtc); in vmw_kms_legacy_hotspot_clear()
367 du->hotspot_x = 0; in vmw_kms_legacy_hotspot_clear()
368 du->hotspot_y = 0; in vmw_kms_legacy_hotspot_clear()
376 struct vmw_display_unit *du; in vmw_kms_cursor_post_execbuf() local
382 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_post_execbuf()
383 if (!du->cursor_surface || in vmw_kms_cursor_post_execbuf()
384 du->cursor_age == du->cursor_surface->snooper.age) in vmw_kms_cursor_post_execbuf()
387 du->cursor_age = du->cursor_surface->snooper.age; in vmw_kms_cursor_post_execbuf()
389 du->cursor_surface->snooper.image, in vmw_kms_cursor_post_execbuf()
391 du->hotspot_x + du->core_hotspot_x, in vmw_kms_cursor_post_execbuf()
392 du->hotspot_y + du->core_hotspot_y); in vmw_kms_cursor_post_execbuf()
1158 struct vmw_display_unit *du; in vmw_kms_cursor_bypass_ioctl() local
1167 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1168 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1169 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1182 du = vmw_crtc_to_du(crtc); in vmw_kms_cursor_bypass_ioctl()
1184 du->hotspot_x = arg->xhot; in vmw_kms_cursor_bypass_ioctl()
1185 du->hotspot_y = arg->yhot; in vmw_kms_cursor_bypass_ioctl()
1338 struct vmw_display_unit *du; in vmw_du_update_layout() local
1356 du = vmw_connector_to_du(con); in vmw_du_update_layout()
1357 if (num > du->unit) { in vmw_du_update_layout()
1358 du->pref_width = rects[du->unit].w; in vmw_du_update_layout()
1359 du->pref_height = rects[du->unit].h; in vmw_du_update_layout()
1360 du->pref_active = true; in vmw_du_update_layout()
1361 du->gui_x = rects[du->unit].x; in vmw_du_update_layout()
1362 du->gui_y = rects[du->unit].y; in vmw_du_update_layout()
1364 du->pref_width = 800; in vmw_du_update_layout()
1365 du->pref_height = 600; in vmw_du_update_layout()
1366 du->pref_active = false; in vmw_du_update_layout()
1419 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_detect() local
1424 du->pref_active) ? in vmw_du_connector_detect()
1530 struct vmw_display_unit *du = vmw_connector_to_du(connector); in vmw_du_connector_fill_modes() local
1559 mode->hdisplay = du->pref_width; in vmw_du_connector_fill_modes()
1560 mode->vdisplay = du->pref_height; in vmw_du_connector_fill_modes()
1572 if (du->pref_mode) { in vmw_du_connector_fill_modes()
1573 list_del_init(&du->pref_mode->head); in vmw_du_connector_fill_modes()
1574 drm_mode_destroy(dev, du->pref_mode); in vmw_du_connector_fill_modes()
1578 du->pref_mode = mode; in vmw_du_connector_fill_modes()
2070 struct vmw_display_unit *du; in vmw_kms_fbdev_init_data() local
2095 du = vmw_connector_to_du(con); in vmw_kms_fbdev_init_data()
2097 *p_crtc = &du->crtc; in vmw_kms_fbdev_init_data()