Home
last modified time | relevance | path

Searched refs:vfpriv (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_ioctl.c43 struct virtio_gpu_fpriv *vfpriv) in virtio_gpu_create_context_locked() argument
48 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
49 vfpriv->context_init, strlen(dbgname), in virtio_gpu_create_context_locked()
52 vfpriv->context_created = true; in virtio_gpu_create_context_locked()
58 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_create_context() local
60 mutex_lock(&vfpriv->context_lock); in virtio_gpu_create_context()
61 if (vfpriv->context_created) in virtio_gpu_create_context()
64 virtio_gpu_create_context_locked(vgdev, vfpriv); in virtio_gpu_create_context()
67 mutex_unlock(&vfpriv->context_lock); in virtio_gpu_create_context()
218 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_from_host_ioctl() local
[all …]
H A Dvirtgpu_kms.c311 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_open() local
319 vfpriv = kzalloc(sizeof(*vfpriv), GFP_KERNEL); in virtio_gpu_driver_open()
320 if (!vfpriv) in virtio_gpu_driver_open()
323 mutex_init(&vfpriv->context_lock); in virtio_gpu_driver_open()
327 kfree(vfpriv); in virtio_gpu_driver_open()
331 vfpriv->ctx_id = handle + 1; in virtio_gpu_driver_open()
332 file->driver_priv = vfpriv; in virtio_gpu_driver_open()
339 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_driver_postclose() local
344 if (vfpriv->context_created) { in virtio_gpu_driver_postclose()
345 virtio_gpu_cmd_context_destroy(vgdev, vfpriv->ctx_id); in virtio_gpu_driver_postclose()
[all …]
H A Dvirtgpu_submit.c38 struct virtio_gpu_fpriv *vfpriv; member
354 submit->vfpriv->ctx_id, submit->buflist, in virtio_gpu_submit()
373 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_init_submit() local
382 (vfpriv->ring_idx_mask & BIT_ULL(ring_idx))) in virtio_gpu_init_submit()
407 submit->vfpriv = vfpriv; in virtio_gpu_init_submit()
477 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_execbuffer_ioctl() local
491 if (exbuf->ring_idx >= vfpriv->num_rings) in virtio_gpu_execbuffer_ioctl()
494 if (!vfpriv->base_fence_ctx) in virtio_gpu_execbuffer_ioctl()
497 fence_ctx = vfpriv->base_fence_ctx; in virtio_gpu_execbuffer_ioctl()
H A Dvirtgpu_gem.c121 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_open() local
137 virtio_gpu_cmd_context_attach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_open()
148 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_close() local
159 virtio_gpu_cmd_context_detach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_close()