Home
last modified time | relevance | path

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

/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c271 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_open() local
283 vfpriv = kzalloc(sizeof(*vfpriv), GFP_KERNEL); in virtio_gpu_driver_open()
284 if (!vfpriv) in virtio_gpu_driver_open()
289 vfpriv->ctx_id = id; in virtio_gpu_driver_open()
290 file->driver_priv = vfpriv; in virtio_gpu_driver_open()
297 struct virtio_gpu_fpriv *vfpriv; in virtio_gpu_driver_postclose() local
302 vfpriv = file->driver_priv; in virtio_gpu_driver_postclose()
304 virtio_gpu_context_destroy(vgdev, vfpriv->ctx_id); in virtio_gpu_driver_postclose()
305 kfree(vfpriv); in virtio_gpu_driver_postclose()
Dvirtgpu_gem.c146 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_open() local
157 virtio_gpu_cmd_context_attach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_open()
167 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_gem_object_close() local
178 virtio_gpu_cmd_context_detach_resource(vgdev, vfpriv->ctx_id, in virtio_gpu_gem_object_close()
Dvirtgpu_ioctl.c103 struct virtio_gpu_fpriv *vfpriv = drm_file->driver_priv; in virtio_gpu_execbuffer_ioctl() local
168 vfpriv->ctx_id, &fence); in virtio_gpu_execbuffer_ioctl()
351 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_from_host_ioctl() local
381 vfpriv->ctx_id, offset, args->level, in virtio_gpu_transfer_from_host_ioctl()
398 struct virtio_gpu_fpriv *vfpriv = file->driver_priv; in virtio_gpu_transfer_to_host_ioctl() local
430 vfpriv ? vfpriv->ctx_id : 0, offset, in virtio_gpu_transfer_to_host_ioctl()