/external/linux-kselftest/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 78 int sync_fd) in uevent_listener() argument 148 ret = write_nointr(sync_fd, &sync_add, sizeof(sync_add)); in uevent_listener() 149 close(sync_fd); in uevent_listener() 242 bool expect_uevent, int sync_fd) in do_test() argument 294 if (uevent_listener(post_flags, expect_uevent, sync_fd) < 0) in do_test() 300 ret = read_nointr(sync_fd, &wait_val, sizeof(wait_val)); in do_test() 351 int ret, sync_fd; in TEST() local 376 sync_fd = eventfd(0, EFD_CLOEXEC); in TEST() 377 ASSERT_GE(sync_fd, 0); in TEST() 388 ret = do_test(0, 0, true, sync_fd); in TEST() [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_sync.c | 63 int sync_fd; member 88 fence->sync_fd = -1; in brw_fence_init() 102 if (fence->sync_fd != -1) in brw_fence_finish() 103 close(fence->sync_fd); in brw_fence_finish() 161 if (fence->sync_fd == -1) { in brw_fence_insert_locked() 165 if (intel_batchbuffer_flush_fence(brw, -1, &fence->sync_fd) < 0) in brw_fence_insert_locked() 167 assert(fence->sync_fd != -1); in brw_fence_insert_locked() 177 if (intel_batchbuffer_flush_fence(brw, fence->sync_fd, NULL) < 0) in brw_fence_insert_locked() 221 assert(fence->sync_fd != -1); in brw_fence_has_completed_locked() 223 if (sync_wait(fence->sync_fd, 0) == -1) in brw_fence_has_completed_locked() [all …]
|
/external/mesa3d/src/freedreno/vulkan/ |
D | tu_wsi_display.c | 277 int sync_fd = tu_syncobj_to_fd(device, fence); in tu_RegisterDeviceEventEXT() local 278 if (sync_fd >= 0) { in tu_RegisterDeviceEventEXT() 284 sync_fd); in tu_RegisterDeviceEventEXT() 286 close(sync_fd); in tu_RegisterDeviceEventEXT() 313 int sync_fd = tu_syncobj_to_fd(device, fence); in tu_RegisterDisplayEventEXT() local 314 if (sync_fd >= 0) { in tu_RegisterDisplayEventEXT() 321 sync_fd); in tu_RegisterDisplayEventEXT() 323 close(sync_fd); in tu_RegisterDisplayEventEXT()
|
D | tu_drm.c | 505 sync_import(VkDevice _device, struct tu_syncobj *sync, bool temporary, bool sync_fd, int fd) in sync_import() argument 510 if (!sync_fd) { in sync_import() 557 sync_export(VkDevice _device, struct tu_syncobj *sync, bool sync_fd, int *p_fd) in sync_export() argument 563 .flags = COND(sync_fd, DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE), in sync_export()
|
/external/mesa3d/src/gallium/drivers/iris/ |
D | iris_fence.c | 427 sync_merge_fd(int sync_fd, int new_fd) in sync_merge_fd() argument 429 if (sync_fd == -1) in sync_merge_fd() 433 return sync_fd; in sync_merge_fd() 441 gen_ioctl(sync_fd, SYNC_IOC_MERGE, &args); in sync_merge_fd() 443 close(sync_fd); in sync_merge_fd()
|
/external/libdrm/tests/amdgpu/ |
D | syncobj_tests.c | 217 int r, sync_fd; in amdgpu_syncobj_timeline_test() local 275 &sync_fd); in amdgpu_syncobj_timeline_test() 278 18, sync_fd); in amdgpu_syncobj_timeline_test()
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_display.h | 147 int sync_fd); 156 int sync_fd);
|
D | wsi_common_display.c | 1558 int sync_fd) in wsi_display_fence_alloc() argument 1569 if (sync_fd >= 0) { in wsi_display_fence_alloc() 1570 int ret = drmSyncobjFDToHandle(wsi->fd, sync_fd, &fence->syncobj); in wsi_display_fence_alloc() 2521 int sync_fd) in wsi_register_device_event() argument 2533 int sync_fd) in wsi_register_display_event() argument 2543 fence = wsi_display_fence_alloc(device, wsi_device, display, allocator, sync_fd); in wsi_register_display_event()
|
/external/mesa3d/docs/relnotes/ |
D | 20.1.4.rst | 82 - anv: properly handle fence import of sync_fd = -1
|
D | 20.3.0.rst | 4664 - turnip: Close sync_fd only if it is a valid file descriptor.
|
D | 20.2.0.rst | 3115 - anv: properly handle fence import of sync_fd = -1
|