Home
last modified time | relevance | path

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

/drivers/gpu/drm/virtio/
Dvirtgpu_ioctl.c69 struct virtio_gpu_fpriv *vfpriv) in virtio_gpu_create_context_locked() argument
74 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
75 vfpriv->context_init, strlen(dbgname), in virtio_gpu_create_context_locked()
78 vfpriv->context_created = true; in virtio_gpu_create_context_locked()
84 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_create_context() local
86 mutex_lock(&vfpriv->context_lock); in virtio_gpu_create_context()
87 if (vfpriv->context_created) in virtio_gpu_create_context()
90 virtio_gpu_create_context_locked(vgdev, vfpriv); in virtio_gpu_create_context()
93 mutex_unlock(&vfpriv->context_lock); in virtio_gpu_create_context()
118 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_execbuffer_ioctl() local
[all …]
Dvirtgpu_kms.c304 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_open() local
312 vfpriv = kzalloc(sizeof(*vfpriv), GFP_KERNEL); in virtio_gpu_driver_open()
313 if (!vfpriv) in virtio_gpu_driver_open()
316 mutex_init(&vfpriv->context_lock); in virtio_gpu_driver_open()
320 kfree(vfpriv); in virtio_gpu_driver_open()
324 vfpriv->ctx_id = handle + 1; in virtio_gpu_driver_open()
325 file->driver_priv = vfpriv; in virtio_gpu_driver_open()
332 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_driver_postclose() local
337 if (vfpriv->context_created) { in virtio_gpu_driver_postclose()
338 virtio_gpu_cmd_context_destroy(vgdev, vfpriv->ctx_id); in virtio_gpu_driver_postclose()
[all …]
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()