Lines Matching refs:vgfb
140 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_resource_flush() local
143 vgfb = to_virtio_gpu_framebuffer(plane->state->fb); in virtio_gpu_resource_flush()
144 bo = gem_to_virtio_gpu_obj(vgfb->base.obj[0]); in virtio_gpu_resource_flush()
145 if (vgfb->fence) { in virtio_gpu_resource_flush()
151 virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]); in virtio_gpu_resource_flush()
154 width, height, objs, vgfb->fence); in virtio_gpu_resource_flush()
157 dma_fence_wait_timeout(&vgfb->fence->f, true, in virtio_gpu_resource_flush()
159 dma_fence_put(&vgfb->fence->f); in virtio_gpu_resource_flush()
160 vgfb->fence = NULL; in virtio_gpu_resource_flush()
249 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_plane_prepare_fb() local
255 vgfb = to_virtio_gpu_framebuffer(new_state->fb); in virtio_gpu_plane_prepare_fb()
256 bo = gem_to_virtio_gpu_obj(vgfb->base.obj[0]); in virtio_gpu_plane_prepare_fb()
261 vgfb->fence = virtio_gpu_fence_alloc(vgdev, vgdev->fence_drv.context, in virtio_gpu_plane_prepare_fb()
263 if (!vgfb->fence) in virtio_gpu_plane_prepare_fb()
273 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_plane_cleanup_fb() local
278 vgfb = to_virtio_gpu_framebuffer(state->fb); in virtio_gpu_plane_cleanup_fb()
279 if (vgfb->fence) { in virtio_gpu_plane_cleanup_fb()
280 dma_fence_put(&vgfb->fence->f); in virtio_gpu_plane_cleanup_fb()
281 vgfb->fence = NULL; in virtio_gpu_plane_cleanup_fb()
293 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_cursor_plane_update() local
305 vgfb = to_virtio_gpu_framebuffer(plane->state->fb); in virtio_gpu_cursor_plane_update()
306 bo = gem_to_virtio_gpu_obj(vgfb->base.obj[0]); in virtio_gpu_cursor_plane_update()
319 virtio_gpu_array_add_obj(objs, vgfb->base.obj[0]); in virtio_gpu_cursor_plane_update()
325 0, 0, objs, vgfb->fence); in virtio_gpu_cursor_plane_update()
327 dma_fence_wait(&vgfb->fence->f, true); in virtio_gpu_cursor_plane_update()
328 dma_fence_put(&vgfb->fence->f); in virtio_gpu_cursor_plane_update()
329 vgfb->fence = NULL; in virtio_gpu_cursor_plane_update()