Lines Matching defs:vps
299 * @vps: plane state associated with the display surface
302 void vmw_du_plane_unpin_surf(struct vmw_plane_state *vps,
305 if (vps->surf) {
306 if (vps->pinned) {
307 vmw_resource_unpin(&vps->surf->res);
308 vps->pinned--;
312 if (vps->pinned)
314 vmw_surface_unreference(&vps->surf);
334 struct vmw_plane_state *vps = vmw_plane_state_to_vps(old_state);
336 vmw_du_plane_unpin_surf(vps, false);
353 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state);
356 if (vps->surf)
357 vmw_surface_unreference(&vps->surf);
359 if (vps->bo)
360 vmw_bo_unreference(&vps->bo);
364 vps->bo = vmw_framebuffer_to_vfbd(fb)->buffer;
365 vmw_bo_reference(vps->bo);
367 vps->surf = vmw_framebuffer_to_vfbs(fb)->surface;
368 vmw_surface_reference(vps->surf);
383 struct vmw_plane_state *vps = vmw_plane_state_to_vps(plane->state);
396 du->cursor_surface = vps->surf;
397 du->cursor_bo = vps->bo;
399 if (vps->surf) {
403 vps->surf->snooper.image,
406 } else if (vps->bo) {
407 ret = vmw_cursor_update_bo(dev_priv, vps->bo,
666 struct vmw_plane_state *vps;
668 vps = kmemdup(plane->state, sizeof(*vps), GFP_KERNEL);
670 if (!vps)
673 vps->pinned = 0;
674 vps->cpp = 0;
677 if (vps->surf)
678 (void) vmw_surface_reference(vps->surf);
680 if (vps->bo)
681 (void) vmw_bo_reference(vps->bo);
683 state = &vps->base;
700 struct vmw_plane_state *vps;
706 vps = kzalloc(sizeof(*vps), GFP_KERNEL);
708 if (!vps) {
713 __drm_atomic_helper_plane_reset(plane, &vps->base);
729 struct vmw_plane_state *vps = vmw_plane_state_to_vps(state);
733 if (vps->surf)
734 vmw_surface_unreference(&vps->surf);
736 if (vps->bo)
737 vmw_bo_unreference(&vps->bo);