Home
last modified time | relevance | path

Searched refs:sync_file (Results 1 - 25 of 40) sorted by relevance

12

/kernel/linux/linux-6.6/drivers/dma-buf/
H A Dsync_file.c3 * drivers/dma-buf/sync_file.c
18 #include <linux/sync_file.h>
19 #include <uapi/linux/sync_file.h>
23 static struct sync_file *sync_file_alloc(void) in sync_file_alloc()
25 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()
31 sync_file in sync_file_alloc()
49 struct sync_file *sync_file; fence_check_cb_func() local
67 struct sync_file *sync_file; sync_file_create() local
105 struct sync_file *sync_file; sync_file_get_fence() local
132 sync_file_get_name(struct sync_file *sync_file, char *buf, int len) sync_file_get_name() argument
162 struct sync_file *sync_file; sync_file_merge() local
181 struct sync_file *sync_file = file->private_data; sync_file_release() local
193 struct sync_file *sync_file = file->private_data; sync_file_poll() local
207 sync_file_ioctl_merge(struct sync_file *sync_file, unsigned long arg) sync_file_ioctl_merge() argument
279 sync_file_ioctl_fence_info(struct sync_file *sync_file, unsigned long arg) sync_file_ioctl_fence_info() argument
353 struct sync_file *sync_file = file->private_data; sync_file_ioctl() local
[all...]
H A Dsync_debug.c36 void sync_file_debug_add(struct sync_file *sync_file) in sync_file_debug_add() argument
41 list_add_tail(&sync_file->sync_file_list, &sync_file_list_head); in sync_file_debug_add()
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()
127 seq_printf(s, "[%p] %s: %s\n", sync_file, in sync_print_sync_file()
128 sync_file_get_name(sync_file, bu in sync_print_sync_file()
121 sync_print_sync_file(struct seq_file *s, struct sync_file *sync_file) sync_print_sync_file() argument
162 struct sync_file *sync_file = sync_info_debugfs_show() local
[all...]
H A Dsync_debug.h21 #include <linux/sync_file.h>
22 #include <uapi/linux/sync_file.h>
69 void sync_file_debug_add(struct sync_file *fence);
70 void sync_file_debug_remove(struct sync_file *fence);
H A Dsw_sync.c12 #include <linux/sync_file.h>
47 * @fence: return the fd of the new sync_file with the created fence
333 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()
H A DMakefile6 obj-$(CONFIG_SYNC_FILE) += sync_file.o
H A Ddma-buf.c24 #include <linux/sync_file.h>
201 * exported as a &sync_file using &dma_buf_sync_file_export.
343 struct sync_file *sync_file; in dma_buf_export_sync_file() local
367 sync_file = sync_file_create(fence); in dma_buf_export_sync_file()
371 if (!sync_file) { in dma_buf_export_sync_file()
382 fd_install(fd, sync_file->file); in dma_buf_export_sync_file()
387 fput(sync_file->file); in dma_buf_export_sync_file()
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Dsync_file.c3 * drivers/dma-buf/sync_file.c
17 #include <linux/sync_file.h>
18 #include <uapi/linux/sync_file.h>
22 static struct sync_file *sync_file_alloc(void) in sync_file_alloc()
24 struct sync_file *sync_file; in sync_file_alloc() local
26 sync_file = kzalloc(sizeof(*sync_file), GFP_KERNEL); in sync_file_alloc()
27 if (!sync_file) in sync_file_alloc()
30 sync_file in sync_file_alloc()
48 struct sync_file *sync_file; fence_check_cb_func() local
66 struct sync_file *sync_file; sync_file_create() local
104 struct sync_file *sync_file; sync_file_get_fence() local
131 sync_file_get_name(struct sync_file *sync_file, char *buf, int len) sync_file_get_name() argument
148 sync_file_set_fence(struct sync_file *sync_file, struct dma_fence **fences, int num_fences) sync_file_set_fence() argument
175 get_fences(struct sync_file *sync_file, int *num_fences) get_fences() argument
213 struct sync_file *sync_file; sync_file_merge() local
298 struct sync_file *sync_file = file->private_data; sync_file_release() local
310 struct sync_file *sync_file = file->private_data; sync_file_poll() local
324 sync_file_ioctl_merge(struct sync_file *sync_file, unsigned long arg) sync_file_ioctl_merge() argument
399 sync_file_ioctl_fence_info(struct sync_file *sync_file, unsigned long arg) sync_file_ioctl_fence_info() argument
466 struct sync_file *sync_file = file->private_data; sync_file_ioctl() local
[all...]
H A Dsync_debug.c36 void sync_file_debug_add(struct sync_file *sync_file) in sync_file_debug_add() argument
41 list_add_tail(&sync_file->sync_file_list, &sync_file_list_head); in sync_file_debug_add()
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()
127 seq_printf(s, "[%p] %s: %s\n", sync_file, in sync_print_sync_file()
128 sync_file_get_name(sync_file, bu in sync_print_sync_file()
121 sync_print_sync_file(struct seq_file *s, struct sync_file *sync_file) sync_print_sync_file() argument
162 struct sync_file *sync_file = sync_info_debugfs_show() local
[all...]
H A Dsync_debug.h21 #include <linux/sync_file.h>
22 #include <uapi/linux/sync_file.h>
69 void sync_file_debug_add(struct sync_file *fence);
70 void sync_file_debug_remove(struct sync_file *fence);
H A Dsw_sync.c12 #include <linux/sync_file.h>
47 * @fence: return the fd of the new sync_file with the created fence
333 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()
H A DMakefile6 obj-$(CONFIG_SYNC_FILE) += sync_file.o
/kernel/linux/linux-5.10/include/linux/
H A Dsync_file.h2 * include/linux/sync_file.h
24 * struct sync_file - sync file to export to the userspace
28 * @flags: flags for the sync_file
29 * @fence: fence with the fences in the sync_file
35 struct sync_file { struct
58 struct sync_file *sync_file_create(struct dma_fence *fence);
60 char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len);
/kernel/linux/linux-6.6/include/linux/
H A Dsync_file.h2 * include/linux/sync_file.h
24 * struct sync_file - sync file to export to the userspace
28 * @flags: flags for the sync_file
29 * @fence: fence with the fences in the sync_file
35 struct sync_file { struct
58 struct sync_file *sync_file_create(struct dma_fence *fence);
60 char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len);
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/
H A Dvirtgpu_submit.c13 #include <linux/sync_file.h>
40 struct sync_file *sync_file; member
347 if (submit->sync_file) in virtio_gpu_cleanup_submit()
348 fput(submit->sync_file->file); in virtio_gpu_cleanup_submit()
363 submit->sync_file = NULL; in virtio_gpu_complete_submit()
427 submit->sync_file = sync_file_create(&out_fence->f); in virtio_gpu_init_submit()
428 if (!submit->sync_file) in virtio_gpu_init_submit()
459 if (submit->sync_file) { in virtio_gpu_install_out_fence_fd()
461 fd_install(submit->out_fence_fd, submit->sync_file in virtio_gpu_install_out_fence_fd()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
H A Dvirtgpu_ioctl.c29 #include <linux/sync_file.h>
84 struct sync_file *sync_file; in virtio_gpu_execbuffer_ioctl() local
169 sync_file = sync_file_create(&out_fence->f); in virtio_gpu_execbuffer_ioctl()
170 if (!sync_file) { in virtio_gpu_execbuffer_ioctl()
177 fd_install(out_fence_fd, sync_file->file); in virtio_gpu_execbuffer_ioctl()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_submit.c11 #include <linux/sync_file.h>
435 struct sync_file *sync_file = NULL; in etnaviv_ioctl_gem_submit() local
600 sync_file = sync_file_create(submit->out_fence); in etnaviv_ioctl_gem_submit()
601 if (!sync_file) { in etnaviv_ioctl_gem_submit()
605 fd_install(out_fence_fd, sync_file->file); in etnaviv_ioctl_gem_submit()
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem_submit.c11 #include <linux/sync_file.h>
423 struct sync_file *sync_file = NULL; in etnaviv_ioctl_gem_submit() local
602 sync_file = sync_file_create(submit->out_fence); in etnaviv_ioctl_gem_submit()
603 if (!sync_file) { in etnaviv_ioctl_gem_submit()
612 fd_install(out_fence_fd, sync_file->file); in etnaviv_ioctl_gem_submit()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_syncobj.c163 * import/export the syncobj's current fence from/to a &sync_file.
190 #include <linux/sync_file.h>
690 struct sync_file *sync_file; in drm_syncobj_export_sync_file() local
700 sync_file = sync_file_create(fence); in drm_syncobj_export_sync_file()
704 if (!sync_file) { in drm_syncobj_export_sync_file()
709 fd_install(fd, sync_file->file); in drm_syncobj_export_sync_file()
H A Ddrm_atomic_uapi.c38 #include <linux/sync_file.h>
1057 * merged one, the sync_file framework will handle both cases and use a
1091 struct sync_file *sync_file; member
1105 fence_state->sync_file = sync_file_create(fence); in setup_out_fence()
1106 if (!fence_state->sync_file) in setup_out_fence()
1248 fence_state[i].sync_file->file); in complete_signaling()
1271 if (fence_state[i].sync_file) in complete_signaling()
1272 fput(fence_state[i].sync_file->file); in complete_signaling()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
H A Dmsm_gem_submit.c8 #include <linux/sync_file.h>
584 struct sync_file *sync_file = NULL; in msm_ioctl_gem_submit() local
780 sync_file = sync_file_create(submit->fence); in msm_ioctl_gem_submit()
781 if (!sync_file) { in msm_ioctl_gem_submit()
792 fd_install(out_fence_fd, sync_file->file); in msm_ioctl_gem_submit()
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_atomic_uapi.c40 #include <linux/sync_file.h>
1096 * merged one, the sync_file framework will handle both cases and use a
1130 struct sync_file *sync_file; member
1144 fence_state->sync_file = sync_file_create(fence); in setup_out_fence()
1145 if (!fence_state->sync_file) in setup_out_fence()
1289 fence_state[i].sync_file->file); in complete_signaling()
1312 if (fence_state[i].sync_file) in complete_signaling()
1313 fput(fence_state[i].sync_file->file); in complete_signaling()
H A Ddrm_syncobj.c167 * import/export the syncobj's current fence from/to a &sync_file.
196 #include <linux/sync_file.h>
764 struct sync_file *sync_file; in drm_syncobj_export_sync_file() local
774 sync_file = sync_file_create(fence); in drm_syncobj_export_sync_file()
778 if (!sync_file) { in drm_syncobj_export_sync_file()
783 fd_install(fd, sync_file->file); in drm_syncobj_export_sync_file()
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/
H A Dmsm_gem_submit.c8 #include <linux/sync_file.h>
968 struct sync_file *sync_file = sync_file_create(submit->user_fence); in msm_ioctl_gem_submit() local
969 if (!sync_file) { in msm_ioctl_gem_submit()
972 fd_install(out_fence_fd, sync_file->file); in msm_ioctl_gem_submit()
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Dfence.c12 #include <linux/sync_file.h>
/kernel/linux/linux-5.10/tools/testing/selftests/sync/
H A Dsync.c42 #include <linux/sync_file.h>

Completed in 33 milliseconds

12