Home
last modified time | relevance | path

Searched refs:sync_fd (Results 1 – 2 of 2) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/uevent/
Duevent_filtering.c78 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/
Dbrw_sync.c63 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 …]