Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/vgem/
H A Dvgem_fence.c130 struct vgem_file *vfile = file->driver_priv; in vgem_fence_attach_ioctl() local
171 mutex_lock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()
173 mutex_unlock(&vfile->fence_mutex); in vgem_fence_attach_ioctl()
217 mutex_lock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()
219 mutex_unlock(&vfile->fence_mutex); in vgem_fence_signal_ioctl()
233 int vgem_fence_open(struct vgem_file *vfile) in vgem_fence_open() argument
235 mutex_init(&vfile->fence_mutex); in vgem_fence_open()
236 idr_init_base(&vfile->fence_idr, 1); in vgem_fence_open()
250 idr_for_each(&vfile->fence_idr, __vgem_fence_idr_fini, vfile); in vgem_fence_close()
251 idr_destroy(&vfile->fence_idr); in vgem_fence_close()
[all …]
H A Dvgem_drv.c61 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()