Searched refs:vfile (Results 1 – 2 of 2) sorted by relevance
69 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, in vgem_fence_create() argument115 struct vgem_file *vfile = file->driver_priv; in vgem_fence_attach_ioctl() local132 fence = vgem_fence_create(vfile, arg->flags); in vgem_fence_attach_ioctl()156 mutex_lock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()157 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()158 mutex_unlock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()194 struct vgem_file *vfile = file->driver_priv; in vgem_fence_signal_ioctl() local202 mutex_lock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()203 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); in vgem_fence_signal_ioctl()204 mutex_unlock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()[all …]
60 struct vgem_file *vfile; in vgem_open() local63 vfile = kzalloc_obj(*vfile); in vgem_open()64 if (!vfile) in vgem_open()67 file->driver_priv = vfile; in vgem_open()69 ret = vgem_fence_open(vfile); in vgem_open()71 kfree(vfile); in vgem_open()80 struct vgem_file *vfile = file->driver_priv; in vgem_postclose() local82 vgem_fence_close(vfile); in vgem_postclose()83 kfree(vfile); in vgem_postclose()