vgem_fence.c | 89 static struct dma_fence *vgem_fence_create(struct vgem_file *vfile, 135 struct vgem_file *vfile = file->driver_priv; local in function:vgem_fence_attach_ioctl 151 fence = vgem_fence_create(vfile, arg->flags); 177 mutex_lock(&vfile->fence_mutex); 178 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); 179 mutex_unlock(&vfile->fence_mutex); 216 struct vgem_file *vfile = file->driver_priv; local in function:vgem_fence_signal_ioctl 224 mutex_lock(&vfile->fence_mutex); 225 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); 226 mutex_unlock(&vfile->fence_mutex) [all...] |