Lines Matching refs:vps

303  * @vps: plane state associated with the display surface
306 void vmw_du_plane_unpin_surf(struct vmw_plane_state *vps,
309 if (vps->surf) {
310 if (vps->pinned) {
311 vmw_resource_unpin(&vps->surf->res);
312 vps->pinned--;
316 if (vps->pinned)
318 vmw_surface_unreference(&vps->surf);
338 struct vmw_plane_state *vps = vmw_plane_state_to_vps(old_state);
340 vmw_du_plane_unpin_surf(vps, false);
357 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state);
360 if (vps->surf)
361 vmw_surface_unreference(&vps->surf);
363 if (vps->bo)
364 vmw_bo_unreference(&vps->bo);
368 vps->bo = vmw_framebuffer_to_vfbd(fb)->buffer;
369 vmw_bo_reference(vps->bo);
371 vps->surf = vmw_framebuffer_to_vfbs(fb)->surface;
372 vmw_surface_reference(vps->surf);
387 struct vmw_plane_state *vps = vmw_plane_state_to_vps(plane->state);
400 du->cursor_surface = vps->surf;
401 du->cursor_bo = vps->bo;
403 if (vps->surf) {
407 vps->surf->snooper.image,
410 } else if (vps->bo) {
411 ret = vmw_cursor_update_bo(dev_priv, vps->bo,
671 struct vmw_plane_state *vps;
673 vps = kmemdup(plane->state, sizeof(*vps), GFP_KERNEL);
675 if (!vps)
678 vps->pinned = 0;
679 vps->cpp = 0;
682 if (vps->surf)
683 (void) vmw_surface_reference(vps->surf);
685 if (vps->bo)
686 (void) vmw_bo_reference(vps->bo);
688 state = &vps->base;
705 struct vmw_plane_state *vps;
711 vps = kzalloc(sizeof(*vps), GFP_KERNEL);
713 if (!vps) {
718 __drm_atomic_helper_plane_reset(plane, &vps->base);
734 struct vmw_plane_state *vps = vmw_plane_state_to_vps(state);
738 if (vps->surf)
739 vmw_surface_unreference(&vps->surf);
741 if (vps->bo)
742 vmw_bo_unreference(&vps->bo);