Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_ioctl.c43 struct virtio_gpu_fpriv *vfpriv) in virtio_gpu_create_context_locked() argument
45 if (vfpriv->explicit_debug_name) { in virtio_gpu_create_context_locked()
46 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
47 vfpriv->context_init, in virtio_gpu_create_context_locked()
48 strlen(vfpriv->debug_name), in virtio_gpu_create_context_locked()
49 vfpriv->debug_name); in virtio_gpu_create_context_locked()
54 virtio_gpu_cmd_context_create(vgdev, vfpriv->ctx_id, in virtio_gpu_create_context_locked()
55 vfpriv->context_init, strlen(dbgname), in virtio_gpu_create_context_locked()
59 vfpriv->context_created = true; in virtio_gpu_create_context_locked()
65 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_create_context() local
[all …]
H A Dvirtgpu_kms.c310 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_open() local
318 vfpriv = kzalloc(sizeof(*vfpriv), GFP_KERNEL); in virtio_gpu_driver_open()
319 if (!vfpriv) in virtio_gpu_driver_open()
322 mutex_init(&vfpriv->context_lock); in virtio_gpu_driver_open()
326 kfree(vfpriv); in virtio_gpu_driver_open()
330 vfpriv->ctx_id = handle + 1; in virtio_gpu_driver_open()
331 file->driver_priv = vfpriv; in virtio_gpu_driver_open()
338 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_driver_postclose() local
343 if (vfpriv->context_created) { in virtio_gpu_driver_postclose()
344 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()