Home
last modified time | relevance | path

Searched refs:vfile (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/vgem/
Dvgem_fence.c84 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()
170 mutex_lock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()
171 ret = idr_alloc(&vfile->fence_idr, fence, 1, 0, GFP_KERNEL); in vgem_fence_attach_ioctl()
172 mutex_unlock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()
208 struct vgem_file *vfile = file->driver_priv; in vgem_fence_signal_ioctl() local
216 mutex_lock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()
217 fence = idr_replace(&vfile->fence_idr, NULL, arg->fence); in vgem_fence_signal_ioctl()
218 mutex_unlock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()
[all …]
Dvgem_drv.c136 struct vgem_file *vfile; in vgem_open() local
139 vfile = kzalloc(sizeof(*vfile), GFP_KERNEL); in vgem_open()
140 if (!vfile) in vgem_open()
143 file->driver_priv = vfile; in vgem_open()
145 ret = vgem_fence_open(vfile); in vgem_open()
147 kfree(vfile); in vgem_open()
156 struct vgem_file *vfile = file->driver_priv; in vgem_postclose() local
158 vgem_fence_close(vfile); in vgem_postclose()
159 kfree(vfile); in vgem_postclose()