Searched refs:vfile (Results 1 - 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 84 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, in vgem_fence_create() argument 130 struct vgem_file *vfile = file->driver_priv; in vgem_fence_attach_ioctl() local 146 fence = vgem_fence_create(vfile, arg->flags); in vgem_fence_attach_ioctl() 171 mutex_lock(&vfile->fence_mutex); in vgem_fence_attach_ioctl() 172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl() 173 mutex_unlock(&vfile->fence_mutex); in vgem_fence_attach_ioctl() 209 struct vgem_file *vfile = file->driver_priv; in vgem_fence_signal_ioctl() local 217 mutex_lock(&vfile->fence_mutex); in vgem_fence_signal_ioctl() 218 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); in vgem_fence_signal_ioctl() 219 mutex_unlock(&vfile in vgem_fence_signal_ioctl() 233 vgem_fence_open(struct vgem_file *vfile) vgem_fence_open() argument 248 vgem_fence_close(struct vgem_file *vfile) vgem_fence_close() argument [all...] |
H A D | vgem_drv.c | 134 struct vgem_file *vfile; in vgem_open() local 137 vfile = kzalloc(sizeof(*vfile), GFP_KERNEL); in vgem_open() 138 if (!vfile) in vgem_open() 141 file->driver_priv = vfile; in vgem_open() 143 ret = vgem_fence_open(vfile); in vgem_open() 145 kfree(vfile); in vgem_open() 154 struct vgem_file *vfile = file->driver_priv; in vgem_postclose() local 156 vgem_fence_close(vfile); in vgem_postclose() 157 kfree(vfile); in vgem_postclose() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vgem/ |
H A D | vgem_fence.c | 84 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, in vgem_fence_create() argument 130 struct vgem_file *vfile = file->driver_priv; in vgem_fence_attach_ioctl() local 147 fence = vgem_fence_create(vfile, arg->flags); in vgem_fence_attach_ioctl() 171 mutex_lock(&vfile->fence_mutex); in vgem_fence_attach_ioctl() 172 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl() 173 mutex_unlock(&vfile->fence_mutex); in vgem_fence_attach_ioctl() 209 struct vgem_file *vfile = file->driver_priv; in vgem_fence_signal_ioctl() local 217 mutex_lock(&vfile->fence_mutex); in vgem_fence_signal_ioctl() 218 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); in vgem_fence_signal_ioctl() 219 mutex_unlock(&vfile in vgem_fence_signal_ioctl() 233 vgem_fence_open(struct vgem_file *vfile) vgem_fence_open() argument 248 vgem_fence_close(struct vgem_file *vfile) vgem_fence_close() argument [all...] |
H A D | vgem_drv.c | 61 struct vgem_file *vfile; in vgem_open() local 64 vfile = kzalloc(sizeof(*vfile), GFP_KERNEL); in vgem_open() 65 if (!vfile) in vgem_open() 68 file->driver_priv = vfile; in vgem_open() 70 ret = vgem_fence_open(vfile); in vgem_open() 72 kfree(vfile); in vgem_open() 81 struct vgem_file *vfile = file->driver_priv; in vgem_postclose() local 83 vgem_fence_close(vfile); in vgem_postclose() 84 kfree(vfile); in vgem_postclose() [all...] |
Completed in 3 milliseconds