Home
last modified time | relevance | path

Searched refs:sync_file (Results 1 – 19 of 19) sorted by relevance

/Linux-v4.19/drivers/dma-buf/
Dsync_file.c31 static struct sync_file *sync_file_alloc(void) in sync_file_alloc()
33 struct sync_file *sync_file; in sync_file_alloc() local
35 sync_file = kzalloc(sizeof(*sync_file), GFP_KERNEL); in sync_file_alloc()
36 if (!sync_file) in sync_file_alloc()
39 sync_file->file = anon_inode_getfile("sync_file", &sync_file_fops, in sync_file_alloc()
40 sync_file, 0); in sync_file_alloc()
41 if (IS_ERR(sync_file->file)) in sync_file_alloc()
44 init_waitqueue_head(&sync_file->wq); in sync_file_alloc()
46 INIT_LIST_HEAD(&sync_file->cb.node); in sync_file_alloc()
48 return sync_file; in sync_file_alloc()
[all …]
Dsync_debug.c45 void sync_file_debug_add(struct sync_file *sync_file) in sync_file_debug_add() argument
50 list_add_tail(&sync_file->sync_file_list, &sync_file_list_head); in sync_file_debug_add()
54 void sync_file_debug_remove(struct sync_file *sync_file) in sync_file_debug_remove() argument
59 list_del(&sync_file->sync_file_list); in sync_file_debug_remove()
131 struct sync_file *sync_file) in sync_print_sync_file() argument
136 seq_printf(s, "[%p] %s: %s\n", sync_file, in sync_print_sync_file()
137 sync_file_get_name(sync_file, buf, sizeof(buf)), in sync_print_sync_file()
138 sync_status_str(dma_fence_get_status(sync_file->fence))); in sync_print_sync_file()
140 if (dma_fence_is_array(sync_file->fence)) { in sync_print_sync_file()
141 struct dma_fence_array *array = to_dma_fence_array(sync_file->fence); in sync_print_sync_file()
[all …]
Dsw_sync.c344 struct sync_file *sync_file; in sw_sync_ioctl_create_fence() local
361 sync_file = sync_file_create(&pt->base); in sw_sync_ioctl_create_fence()
363 if (!sync_file) { in sw_sync_ioctl_create_fence()
370 fput(sync_file->file); in sw_sync_ioctl_create_fence()
375 fd_install(fd, sync_file->file); in sw_sync_ioctl_create_fence()
Dsync_debug.h69 void sync_file_debug_add(struct sync_file *fence);
70 void sync_file_debug_remove(struct sync_file *fence);
DMakefile2 obj-$(CONFIG_SYNC_FILE) += sync_file.o
DKconfig18 Documentation/sync_file.txt.
/Linux-v4.19/Documentation/
Dsync_file.txt8 sync_file API is, and how drivers can support it. Sync file is the carrier of
12 The sync_file API is meant to be used to send and receive fence information
15 driver) sends the fence related to the buffer to userspace via a sync_file.
17 The sync_file then can be sent to the consumer (DRM driver for example), that
32 Sync files can go either to or from userspace. When a sync_file is sent from
39 On the other hand if the driver receives fence(s) through a sync_file from
47 When a driver needs to send an out-fence userspace it creates a sync_file.
51 struct sync_file *sync_file_create(struct dma_fence *fence);
53 The caller pass the out-fence and gets back the sync_file. That is just the
54 first step, next it needs to install an fd on sync_file->file. So it gets an
[all …]
D00-INDEX381 sync_file.txt
/Linux-v4.19/include/linux/
Dsync_file.h35 struct sync_file { struct
58 struct sync_file *sync_file_create(struct dma_fence *fence); argument
60 char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len);
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_gem_submit.c414 struct sync_file *sync_file = NULL; in msm_ioctl_gem_submit() local
568 sync_file = sync_file_create(submit->fence); in msm_ioctl_gem_submit()
569 if (!sync_file) { in msm_ioctl_gem_submit()
580 fd_install(out_fence_fd, sync_file->file); in msm_ioctl_gem_submit()
/Linux-v4.19/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c416 struct sync_file *sync_file = NULL; in etnaviv_ioctl_gem_submit() local
567 sync_file = sync_file_create(submit->out_fence); in etnaviv_ioctl_gem_submit()
568 if (!sync_file) { in etnaviv_ioctl_gem_submit()
572 fd_install(out_fence_fd, sync_file->file); in etnaviv_ioctl_gem_submit()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_syncobj.c513 struct sync_file *sync_file; in drm_syncobj_export_sync_file() local
523 sync_file = sync_file_create(fence); in drm_syncobj_export_sync_file()
527 if (!sync_file) { in drm_syncobj_export_sync_file()
532 fd_install(fd, sync_file->file); in drm_syncobj_export_sync_file()
Ddrm_atomic.c2338 struct sync_file *sync_file; member
2352 fence_state->sync_file = sync_file_create(fence); in setup_out_fence()
2353 if (!fence_state->sync_file) in setup_out_fence()
2497 fence_state[i].sync_file->file); in complete_signaling()
2520 if (fence_state[i].sync_file) in complete_signaling()
2521 fput(fence_state[i].sync_file->file); in complete_signaling()
/Linux-v4.19/Documentation/driver-api/
Ddma-buf.rst163 .. kernel-doc:: drivers/dma-buf/sync_file.c
166 .. kernel-doc:: include/linux/sync_file.h
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.c1427 struct sync_file *sync_file; in amdgpu_cs_fence_to_handle_ioctl() local
1460 sync_file = sync_file_create(fence); in amdgpu_cs_fence_to_handle_ioctl()
1462 if (!sync_file) { in amdgpu_cs_fence_to_handle_ioctl()
1467 fd_install(fd, sync_file->file); in amdgpu_cs_fence_to_handle_ioctl()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c3879 struct sync_file *sync_file) in vmw_execbuf_copy_fence_user() argument
3912 if (sync_file) in vmw_execbuf_copy_fence_user()
3913 fput(sync_file->file); in vmw_execbuf_copy_fence_user()
4107 struct sync_file *sync_file = NULL; in vmw_execbuf_process() local
4277 sync_file = sync_file_create(&fence->base); in vmw_execbuf_process()
4278 if (!sync_file) { in vmw_execbuf_process()
4287 fd_install(out_fence_fd, sync_file->file); in vmw_execbuf_process()
4293 out_fence_fd, sync_file); in vmw_execbuf_process()
Dvmwgfx_drv.h866 struct sync_file *sync_file);
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_execbuffer.c2182 struct sync_file *out_fence = NULL; in i915_gem_do_execbuffer()
/Linux-v4.19/
DMAINTAINERS14008 F: include/linux/sync_file.h
14009 F: include/uapi/linux/sync_file.h
14010 F: Documentation/sync_file.txt