Lines Matching refs:vps

301 void vmw_du_plane_unpin_surf(struct vmw_plane_state *vps,  in vmw_du_plane_unpin_surf()  argument
304 if (vps->surf) { in vmw_du_plane_unpin_surf()
305 if (vps->pinned) { in vmw_du_plane_unpin_surf()
306 vmw_resource_unpin(&vps->surf->res); in vmw_du_plane_unpin_surf()
307 vps->pinned--; in vmw_du_plane_unpin_surf()
311 if (vps->pinned) in vmw_du_plane_unpin_surf()
313 vmw_surface_unreference(&vps->surf); in vmw_du_plane_unpin_surf()
333 struct vmw_plane_state *vps = vmw_plane_state_to_vps(old_state); in vmw_du_plane_cleanup_fb() local
335 vmw_du_plane_unpin_surf(vps, false); in vmw_du_plane_cleanup_fb()
352 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); in vmw_du_cursor_plane_prepare_fb() local
355 if (vps->surf) in vmw_du_cursor_plane_prepare_fb()
356 vmw_surface_unreference(&vps->surf); in vmw_du_cursor_plane_prepare_fb()
358 if (vps->bo) in vmw_du_cursor_plane_prepare_fb()
359 vmw_bo_unreference(&vps->bo); in vmw_du_cursor_plane_prepare_fb()
363 vps->bo = vmw_framebuffer_to_vfbd(fb)->buffer; in vmw_du_cursor_plane_prepare_fb()
364 vmw_bo_reference(vps->bo); in vmw_du_cursor_plane_prepare_fb()
366 vps->surf = vmw_framebuffer_to_vfbs(fb)->surface; in vmw_du_cursor_plane_prepare_fb()
367 vmw_surface_reference(vps->surf); in vmw_du_cursor_plane_prepare_fb()
382 struct vmw_plane_state *vps = vmw_plane_state_to_vps(plane->state); in vmw_du_cursor_plane_atomic_update() local
395 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
396 du->cursor_bo = vps->bo; in vmw_du_cursor_plane_atomic_update()
398 if (vps->surf) { in vmw_du_cursor_plane_atomic_update()
402 vps->surf->snooper.image, in vmw_du_cursor_plane_atomic_update()
405 } else if (vps->bo) { in vmw_du_cursor_plane_atomic_update()
406 ret = vmw_cursor_update_bo(dev_priv, vps->bo, in vmw_du_cursor_plane_atomic_update()
665 struct vmw_plane_state *vps; in vmw_du_plane_duplicate_state() local
667 vps = kmemdup(plane->state, sizeof(*vps), GFP_KERNEL); in vmw_du_plane_duplicate_state()
669 if (!vps) in vmw_du_plane_duplicate_state()
672 vps->pinned = 0; in vmw_du_plane_duplicate_state()
673 vps->cpp = 0; in vmw_du_plane_duplicate_state()
676 if (vps->surf) in vmw_du_plane_duplicate_state()
677 (void) vmw_surface_reference(vps->surf); in vmw_du_plane_duplicate_state()
679 if (vps->bo) in vmw_du_plane_duplicate_state()
680 (void) vmw_bo_reference(vps->bo); in vmw_du_plane_duplicate_state()
682 state = &vps->base; in vmw_du_plane_duplicate_state()
699 struct vmw_plane_state *vps; in vmw_du_plane_reset() local
705 vps = kzalloc(sizeof(*vps), GFP_KERNEL); in vmw_du_plane_reset()
707 if (!vps) { in vmw_du_plane_reset()
712 __drm_atomic_helper_plane_reset(plane, &vps->base); in vmw_du_plane_reset()
728 struct vmw_plane_state *vps = vmw_plane_state_to_vps(state); in vmw_du_plane_destroy_state() local
732 if (vps->surf) in vmw_du_plane_destroy_state()
733 vmw_surface_unreference(&vps->surf); in vmw_du_plane_destroy_state()
735 if (vps->bo) in vmw_du_plane_destroy_state()
736 vmw_bo_unreference(&vps->bo); in vmw_du_plane_destroy_state()