Lines Matching refs:surf
188 if (vps->surf) { in vmw_du_cursor_plane_acquire_image()
190 return vmw_bo_map_and_cache(vps->surf->res.guest_memory_bo); in vmw_du_cursor_plane_acquire_image()
191 return vps->surf->snooper.image; in vmw_du_cursor_plane_acquire_image()
527 if (vps->surf) { in vmw_du_plane_unpin_surf()
529 vmw_resource_unpin(&vps->surf->res); in vmw_du_plane_unpin_surf()
536 vmw_surface_unreference(&vps->surf); in vmw_du_plane_unpin_surf()
649 vmw_bo_unmap(vps->surf->res.guest_memory_bo); in vmw_du_cursor_plane_cleanup_fb()
667 if (vps->surf) { in vmw_du_cursor_plane_cleanup_fb()
668 vmw_surface_unreference(&vps->surf); in vmw_du_cursor_plane_cleanup_fb()
669 vps->surf = NULL; in vmw_du_cursor_plane_cleanup_fb()
696 if (vps->surf) { in vmw_du_cursor_plane_prepare_fb()
697 vmw_surface_unreference(&vps->surf); in vmw_du_cursor_plane_prepare_fb()
698 vps->surf = NULL; in vmw_du_cursor_plane_prepare_fb()
711 vps->surf = vmw_framebuffer_to_vfbs(fb)->surface; in vmw_du_cursor_plane_prepare_fb()
712 vmw_surface_reference(vps->surf); in vmw_du_cursor_plane_prepare_fb()
716 if (!vps->surf && vps->bo) { in vmw_du_cursor_plane_prepare_fb()
735 } else if (vps->surf && !vps->bo && vps->surf->res.guest_memory_bo) { in vmw_du_cursor_plane_prepare_fb()
737 WARN_ON(vps->surf->snooper.image); in vmw_du_cursor_plane_prepare_fb()
738 ret = ttm_bo_reserve(&vps->surf->res.guest_memory_bo->tbo, true, false, in vmw_du_cursor_plane_prepare_fb()
742 vmw_bo_map_and_cache(vps->surf->res.guest_memory_bo); in vmw_du_cursor_plane_prepare_fb()
743 ttm_bo_unreserve(&vps->surf->res.guest_memory_bo->tbo); in vmw_du_cursor_plane_prepare_fb()
747 if (vps->surf || vps->bo) { in vmw_du_cursor_plane_prepare_fb()
779 du->cursor_surface = vps->surf; in vmw_du_cursor_plane_atomic_update()
782 if (!vps->surf && !vps->bo) { in vmw_du_cursor_plane_atomic_update()
790 if (vps->surf) { in vmw_du_cursor_plane_atomic_update()
1071 if (vps->surf) in vmw_du_plane_duplicate_state()
1072 (void) vmw_surface_reference(vps->surf); in vmw_du_plane_duplicate_state()
1125 if (vps->surf) in vmw_du_plane_destroy_state()
1126 vmw_surface_unreference(&vps->surf); in vmw_du_plane_destroy_state()