Home
last modified time | relevance | path

Searched refs:vgfb (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_plane.c198 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_cursor_prepare_fb() local
204 vgfb = to_virtio_gpu_framebuffer(new_state->fb); in virtio_gpu_cursor_prepare_fb()
205 bo = gem_to_virtio_gpu_obj(vgfb->base.obj[0]); in virtio_gpu_cursor_prepare_fb()
207 vgfb->fence = virtio_gpu_fence_alloc(vgdev); in virtio_gpu_cursor_prepare_fb()
208 if (!vgfb->fence) in virtio_gpu_cursor_prepare_fb()
218 struct virtio_gpu_framebuffer *vgfb; in virtio_gpu_cursor_cleanup_fb() local
223 vgfb = to_virtio_gpu_framebuffer(state->fb); in virtio_gpu_cursor_cleanup_fb()
224 if (vgfb->fence) { in virtio_gpu_cursor_cleanup_fb()
225 dma_fence_put(&vgfb->fence->f); in virtio_gpu_cursor_cleanup_fb()
226 vgfb->fence = NULL; in virtio_gpu_cursor_cleanup_fb()
[all …]
Dvirtgpu_display.c67 struct virtio_gpu_framebuffer *vgfb, in virtio_gpu_framebuffer_init() argument
73 vgfb->base.obj[0] = obj; in virtio_gpu_framebuffer_init()
75 drm_helper_mode_fill_fb_struct(dev, &vgfb->base, mode_cmd); in virtio_gpu_framebuffer_init()
77 ret = drm_framebuffer_init(dev, &vgfb->base, &virtio_gpu_fb_funcs); in virtio_gpu_framebuffer_init()
79 vgfb->base.obj[0] = NULL; in virtio_gpu_framebuffer_init()