Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c255 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_open() local
264 vfpriv = kzalloc(sizeof(*vfpriv), GFP_KERNEL); in virtio_gpu_driver_open()
265 if (!vfpriv) in virtio_gpu_driver_open()
271 kfree(vfpriv); in virtio_gpu_driver_open()
275 vfpriv->ctx_id = id; in virtio_gpu_driver_open()
276 file->driver_priv = vfpriv; in virtio_gpu_driver_open()
283 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_postclose() local
288 vfpriv = file->driver_priv; in virtio_gpu_driver_postclose()
290 virtio_gpu_context_destroy(vgdev, vfpriv->ctx_id); in virtio_gpu_driver_postclose()
291 kfree(vfpriv); in virtio_gpu_driver_postclose()
Dvirtgpu_gem.c138 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_open() local
149 virtio_gpu_cmd_context_attach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_open()
159 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_close() local
170 virtio_gpu_cmd_context_detach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_close()
Dvirtgpu_ioctl.c109 struct virtio_gpu_fpriv *vfpriv = drm_file->driver_priv; in virtio_gpu_execbuffer_ioctl() local
225 vfpriv->ctx_id, out_fence); in virtio_gpu_execbuffer_ioctl()
361 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_from_host_ioctl() local
397 vfpriv->ctx_id, offset, args->level, in virtio_gpu_transfer_from_host_ioctl()
414 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_to_host_ioctl() local
451 vfpriv ? vfpriv->ctx_id : 0, offset, in virtio_gpu_transfer_to_host_ioctl()