Lines Matching refs:vps

298 void vmw_du_plane_unpin_surf(struct vmw_plane_state *vps,  in vmw_du_plane_unpin_surf()  argument
301 if (vps->surf) { in vmw_du_plane_unpin_surf()
302 if (vps->pinned) { in vmw_du_plane_unpin_surf()
303 vmw_resource_unpin(&vps->surf->res); in vmw_du_plane_unpin_surf()
304 vps->pinned--; in vmw_du_plane_unpin_surf()
308 if (vps->pinned) in vmw_du_plane_unpin_surf()
310 vmw_surface_unreference(&vps->surf); in vmw_du_plane_unpin_surf()
330 struct vmw_plane_state *vps = vmw_plane_state_to_vps(old_state); in vmw_du_plane_cleanup_fb() local
332 vmw_du_plane_unpin_surf(vps, false); in vmw_du_plane_cleanup_fb()
349 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); in vmw_du_cursor_plane_prepare_fb() local
352 if (vps->surf) in vmw_du_cursor_plane_prepare_fb()
353 vmw_surface_unreference(&vps->surf); in vmw_du_cursor_plane_prepare_fb()
355 if (vps->bo) in vmw_du_cursor_plane_prepare_fb()
356 vmw_bo_unreference(&vps->bo); in vmw_du_cursor_plane_prepare_fb()
360 vps->bo = vmw_framebuffer_to_vfbd(fb)->buffer; in vmw_du_cursor_plane_prepare_fb()
361 vmw_bo_reference(vps->bo); in vmw_du_cursor_plane_prepare_fb()
363 vps->surf = vmw_framebuffer_to_vfbs(fb)->surface; in vmw_du_cursor_plane_prepare_fb()
364 vmw_surface_reference(vps->surf); in vmw_du_cursor_plane_prepare_fb()
379 struct vmw_plane_state *vps = vmw_plane_state_to_vps(plane->state); in vmw_du_cursor_plane_atomic_update() local
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()
395 if (vps->surf) { in vmw_du_cursor_plane_atomic_update()
399 vps->surf->snooper.image, in vmw_du_cursor_plane_atomic_update()
402 } else if (vps->bo) { in vmw_du_cursor_plane_atomic_update()
403 ret = vmw_cursor_update_bo(dev_priv, vps->bo, in vmw_du_cursor_plane_atomic_update()
676 struct vmw_plane_state *vps; in vmw_du_plane_duplicate_state() local
678 vps = kmemdup(plane->state, sizeof(*vps), GFP_KERNEL); in vmw_du_plane_duplicate_state()
680 if (!vps) in vmw_du_plane_duplicate_state()
683 vps->pinned = 0; in vmw_du_plane_duplicate_state()
684 vps->cpp = 0; in vmw_du_plane_duplicate_state()
687 if (vps->surf) in vmw_du_plane_duplicate_state()
688 (void) vmw_surface_reference(vps->surf); in vmw_du_plane_duplicate_state()
690 if (vps->bo) in vmw_du_plane_duplicate_state()
691 (void) vmw_bo_reference(vps->bo); in vmw_du_plane_duplicate_state()
693 state = &vps->base; in vmw_du_plane_duplicate_state()
710 struct vmw_plane_state *vps; in vmw_du_plane_reset() local
716 vps = kzalloc(sizeof(*vps), GFP_KERNEL); in vmw_du_plane_reset()
718 if (!vps) { in vmw_du_plane_reset()
723 plane->state = &vps->base; in vmw_du_plane_reset()
741 struct vmw_plane_state *vps = vmw_plane_state_to_vps(state); in vmw_du_plane_destroy_state() local
745 if (vps->surf) in vmw_du_plane_destroy_state()
746 vmw_surface_unreference(&vps->surf); in vmw_du_plane_destroy_state()
748 if (vps->bo) in vmw_du_plane_destroy_state()
749 vmw_bo_unreference(&vps->bo); in vmw_du_plane_destroy_state()