| /linux/drivers/dma-buf/ |
| A D | sync_file.c | 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() 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 D | sync_debug.c | 36 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 D | sync_debug.h | 71 void sync_file_debug_add(struct sync_file *fence); 72 void sync_file_debug_remove(struct sync_file *fence);
|
| A D | sw_sync.c | 371 struct sync_file *sync_file; in sw_sync_ioctl_create_fence() local 388 sync_file = sync_file_create(&pt->base); in sw_sync_ioctl_create_fence() 390 if (!sync_file) { in sw_sync_ioctl_create_fence() 397 fput(sync_file->file); in sw_sync_ioctl_create_fence() 402 fd_install(fd, sync_file->file); in sw_sync_ioctl_create_fence()
|
| A D | Makefile | 6 obj-$(CONFIG_SYNC_FILE) += sync_file.o
|
| A D | dma-buf.c | 358 struct sync_file *sync_file; in dma_buf_export_sync_file() local 382 sync_file = sync_file_create(fence); in dma_buf_export_sync_file() 386 if (!sync_file) { in dma_buf_export_sync_file() 397 fd_install(fd, sync_file->file); in dma_buf_export_sync_file() 402 fput(sync_file->file); in dma_buf_export_sync_file()
|
| A D | Kconfig | 18 Documentation/driver-api/sync_file.rst.
|
| /linux/Documentation/driver-api/ |
| A D | sync_file.rst | 8 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 D | index.rst | 139 sync_file
|
| A D | dma-buf.rst | 225 .. kernel-doc:: drivers/dma-buf/sync_file.c 228 .. kernel-doc:: include/linux/sync_file.h 234 .. kernel-doc:: include/uapi/linux/sync_file.h
|
| /linux/include/linux/ |
| A D | sync_file.h | 35 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/drivers/gpu/drm/virtio/ |
| A D | virtgpu_submit.c | 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->file); in virtio_gpu_install_out_fence_fd()
|
| /linux/drivers/gpu/drm/etnaviv/ |
| A D | etnaviv_gem_submit.c | 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()
|
| /linux/drivers/gpu/drm/ |
| A D | drm_atomic_uapi.c | 1153 struct sync_file *sync_file; member 1167 fence_state->sync_file = sync_file_create(fence); in setup_out_fence() 1168 if (!fence_state->sync_file) in setup_out_fence() 1312 fence_state[i].sync_file->file); in complete_signaling() 1335 if (fence_state[i].sync_file) in complete_signaling() 1336 fput(fence_state[i].sync_file->file); in complete_signaling()
|
| A D | drm_syncobj.c | 772 struct sync_file *sync_file; in drm_syncobj_export_sync_file() local 782 sync_file = sync_file_create(fence); in drm_syncobj_export_sync_file() 786 if (!sync_file) { in drm_syncobj_export_sync_file() 791 fd_install(fd, sync_file->file); in drm_syncobj_export_sync_file()
|
| /linux/Documentation/translations/zh_CN/driver-api/ |
| A D | index.rst | 114 * sync_file
|
| /linux/drivers/gpu/drm/msm/ |
| A D | msm_gem_submit.c | 872 struct sync_file *sync_file = sync_file_create(submit->user_fence); in msm_ioctl_gem_submit() local 873 if (!sync_file) { in msm_ioctl_gem_submit() 876 fd_install(out_fence_fd, sync_file->file); in msm_ioctl_gem_submit()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_cs.c | 1565 struct sync_file *sync_file; in amdgpu_cs_fence_to_handle_ioctl() local 1601 sync_file = sync_file_create(fence); in amdgpu_cs_fence_to_handle_ioctl() 1603 if (!sync_file) { in amdgpu_cs_fence_to_handle_ioctl() 1608 fd_install(fd, sync_file->file); in amdgpu_cs_fence_to_handle_ioctl()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_execbuffer.c | 3197 static struct sync_file * 3200 struct sync_file *out_fence = NULL; in eb_composite_fence_create() 3244 static struct sync_file * 3248 struct sync_file *out_fence = NULL; in eb_fences_add() 3306 static struct sync_file * 3310 struct sync_file *out_fence = NULL; in eb_requests_create() 3361 struct sync_file *out_fence = NULL; in i915_gem_do_execbuffer()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_execbuf.c | 4103 struct sync_file *sync_file = NULL; in vmw_execbuf_process() local 4247 sync_file = sync_file_create(&fence->base); in vmw_execbuf_process() 4248 if (!sync_file) { in vmw_execbuf_process() 4261 if (sync_file) { in vmw_execbuf_process() 4264 fput(sync_file->file); in vmw_execbuf_process() 4268 fd_install(out_fence_fd, sync_file->file); in vmw_execbuf_process()
|
| /linux/ |
| A D | MAINTAINERS | 22336 F: Documentation/driver-api/sync_file.rst 22340 F: include/linux/sync_file.h 22341 F: include/uapi/linux/sync_file.h
|