Lines Matching refs:vps

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