Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/dma-buf/
A Dsync_file.c25 struct sync_file *sync_file; in sync_file_alloc() local
27 sync_file = kzalloc(sizeof(*sync_file), GFP_KERNEL); in sync_file_alloc()
28 if (!sync_file) in sync_file_alloc()
49 struct sync_file *sync_file; in fence_check_cb_func() local
51 sync_file = container_of(cb, struct sync_file, cb); in fence_check_cb_func()
67 struct sync_file *sync_file; in sync_file_create() local
105 struct sync_file *sync_file; in sync_file_get_fence() local
162 struct sync_file *sync_file; in sync_file_merge() local
181 struct sync_file *sync_file = file->private_data; in sync_file_release() local
193 struct sync_file *sync_file = file->private_data; in sync_file_poll() local
[all …]
A Dsync_debug.c36 void sync_file_debug_add(struct sync_file *sync_file) in sync_file_debug_add() argument
45 void sync_file_debug_remove(struct sync_file *sync_file) in sync_file_debug_remove() argument
50 list_del(&sync_file->sync_file_list); in sync_file_debug_remove()
122 struct sync_file *sync_file) in sync_print_sync_file() argument
127 seq_printf(s, "[%p] %s: %s\n", sync_file, in sync_print_sync_file()
128 sync_file_get_name(sync_file, buf, sizeof(buf)), in sync_print_sync_file()
131 if (dma_fence_is_array(sync_file->fence)) { in sync_print_sync_file()
137 sync_print_fence(s, sync_file->fence, true); in sync_print_sync_file()
162 struct sync_file *sync_file = in sync_info_debugfs_show() local
163 container_of(pos, struct sync_file, sync_file_list); in sync_info_debugfs_show()
[all …]
A Dsw_sync.c333 struct sync_file *sync_file; in sw_sync_ioctl_create_fence() local
350 sync_file = sync_file_create(&pt->base); in sw_sync_ioctl_create_fence()
352 if (!sync_file) { in sw_sync_ioctl_create_fence()
359 fput(sync_file->file); in sw_sync_ioctl_create_fence()
364 fd_install(fd, sync_file->file); in sw_sync_ioctl_create_fence()
A Dsync_debug.h69 void sync_file_debug_add(struct sync_file *fence);
70 void sync_file_debug_remove(struct sync_file *fence);
A DMakefile6 obj-$(CONFIG_SYNC_FILE) += sync_file.o
A Ddma-buf.c347 struct sync_file *sync_file; in dma_buf_export_sync_file() local
371 sync_file = sync_file_create(fence); in dma_buf_export_sync_file()
375 if (!sync_file) { in dma_buf_export_sync_file()
386 fd_install(fd, sync_file->file); in dma_buf_export_sync_file()
391 fput(sync_file->file); in dma_buf_export_sync_file()
A DKconfig18 Documentation/driver-api/sync_file.rst.
/linux-6.3-rc2/Documentation/driver-api/
A Dsync_file.rst8 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.
39 On the other hand if the driver receives fence(s) through a sync_file from
51 struct sync_file *sync_file_create(struct dma_fence *fence);
59 and installs it on sync_file->file::
61 fd_install(fd, sync_file->file);
63 The sync_file fd now can be sent to userspace.
66 other reason fput(sync_file->file) should be used.
85 1. struct sync_file in include/linux/sync_file.h
[all …]
A Dindex.rst106 sync_file
A Ddma-buf.rst203 .. kernel-doc:: drivers/dma-buf/sync_file.c
206 .. kernel-doc:: include/linux/sync_file.h
/linux-6.3-rc2/include/linux/
A 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-6.3-rc2/drivers/gpu/drm/etnaviv/
A Detnaviv_gem_submit.c426 struct sync_file *sync_file = NULL; in etnaviv_ioctl_gem_submit() local
605 sync_file = sync_file_create(submit->out_fence); in etnaviv_ioctl_gem_submit()
606 if (!sync_file) { in etnaviv_ioctl_gem_submit()
615 fd_install(out_fence_fd, sync_file->file); in etnaviv_ioctl_gem_submit()
/linux-6.3-rc2/drivers/gpu/drm/virtio/
A Dvirtgpu_ioctl.c128 struct sync_file *sync_file; in virtio_gpu_execbuffer_ioctl() local
230 sync_file = sync_file_create(&out_fence->f); in virtio_gpu_execbuffer_ioctl()
231 if (!sync_file) { in virtio_gpu_execbuffer_ioctl()
238 fd_install(out_fence_fd, sync_file->file); in virtio_gpu_execbuffer_ioctl()
/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_atomic_uapi.c1095 struct sync_file *sync_file; member
1109 fence_state->sync_file = sync_file_create(fence); in setup_out_fence()
1110 if (!fence_state->sync_file) in setup_out_fence()
1252 fence_state[i].sync_file->file); in complete_signaling()
1275 if (fence_state[i].sync_file) in complete_signaling()
1276 fput(fence_state[i].sync_file->file); in complete_signaling()
A Ddrm_syncobj.c710 struct sync_file *sync_file; in drm_syncobj_export_sync_file() local
720 sync_file = sync_file_create(fence); in drm_syncobj_export_sync_file()
724 if (!sync_file) { in drm_syncobj_export_sync_file()
729 fd_install(fd, sync_file->file); in drm_syncobj_export_sync_file()
/linux-6.3-rc2/Documentation/translations/zh_CN/driver-api/
A Dindex.rst117 * sync_file
/linux-6.3-rc2/drivers/gpu/drm/msm/
A Dmsm_gem_submit.c929 struct sync_file *sync_file = sync_file_create(submit->user_fence); in msm_ioctl_gem_submit() local
930 if (!sync_file) { in msm_ioctl_gem_submit()
933 fd_install(out_fence_fd, sync_file->file); in msm_ioctl_gem_submit()
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_cs.c1553 struct sync_file *sync_file; in amdgpu_cs_fence_to_handle_ioctl() local
1589 sync_file = sync_file_create(fence); in amdgpu_cs_fence_to_handle_ioctl()
1591 if (!sync_file) { in amdgpu_cs_fence_to_handle_ioctl()
1596 fd_install(fd, sync_file->file); in amdgpu_cs_fence_to_handle_ioctl()
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/
A Di915_gem_execbuffer.c3183 static struct sync_file *
3186 struct sync_file *out_fence = NULL; in eb_composite_fence_create()
3230 static struct sync_file *
3234 struct sync_file *out_fence = NULL; in eb_fences_add()
3292 static struct sync_file *
3296 struct sync_file *out_fence = NULL; in eb_requests_create()
3347 struct sync_file *out_fence = NULL; in i915_gem_do_execbuffer()
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_execbuf.c4092 struct sync_file *sync_file = NULL; in vmw_execbuf_process() local
4236 sync_file = sync_file_create(&fence->base); in vmw_execbuf_process()
4237 if (!sync_file) { in vmw_execbuf_process()
4250 if (sync_file) { in vmw_execbuf_process()
4253 fput(sync_file->file); in vmw_execbuf_process()
4257 fd_install(out_fence_fd, sync_file->file); in vmw_execbuf_process()
/linux-6.3-rc2/
A DMAINTAINERS20168 F: Documentation/driver-api/sync_file.rst
20172 F: include/linux/sync_file.h
20173 F: include/uapi/linux/sync_file.h

Completed in 90 milliseconds