/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/ |
D | 5-1.c | 50 struct timespec abs_timeout; in fn_wr_1() local 62 abs_timeout.tv_sec = currsec1 + TIMEOUT; in fn_wr_1() 63 abs_timeout.tv_nsec = 0; in fn_wr_1() 66 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn_wr_1() 95 struct timespec abs_timeout; in fn_wr_2() local 106 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_wr_2() 107 abs_timeout.tv_nsec = 0; in fn_wr_2() 110 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn_wr_2()
|
D | 2-1.c | 51 struct timespec abs_timeout; in fn() local 55 if (clock_gettime(CLOCK_REALTIME, &abs_timeout) != 0) { in fn() 64 abs_timeout.tv_sec -= TIMEOUT; in fn() 67 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in fn()
|
D | 6-1.c | 75 struct timespec abs_timeout; in th_fn() local 89 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 90 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 94 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in th_fn()
|
D | 6-2.c | 84 struct timespec abs_timeout; in th_fn() local 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 99 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 104 rc = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); in th_fn()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
D | 5-1.c | 43 struct timespec abs_timeout; in fn_rd_1() local 55 abs_timeout.tv_sec = currsec1 + TIMEOUT; in fn_rd_1() 56 abs_timeout.tv_nsec = 0; in fn_rd_1() 59 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd_1() 88 struct timespec abs_timeout; in fn_rd_2() local 100 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_rd_2() 101 abs_timeout.tv_nsec = 0; in fn_rd_2() 104 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd_2()
|
D | 6-1.c | 75 struct timespec abs_timeout; in th_fn() local 89 abs_timeout.tv_sec = before_wait.tv_sec; in th_fn() 90 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 91 abs_timeout.tv_sec += TIMEOUT; in th_fn() 95 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in th_fn()
|
D | 2-1.c | 50 struct timespec abs_timeout; in fn_rd() local 57 abs_timeout.tv_sec = currsec1 - TIMEOUT; in fn_rd() 58 abs_timeout.tv_nsec = 0; in fn_rd() 61 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in fn_rd()
|
D | 6-2.c | 84 struct timespec abs_timeout; in th_fn() local 98 abs_timeout.tv_sec = before_wait.tv_sec + TIMEOUT; in th_fn() 99 abs_timeout.tv_nsec = before_wait.tv_usec * 1000; in th_fn() 104 rc = pthread_rwlock_timedrdlock(&rwlock, &abs_timeout); in th_fn()
|
/third_party/musl/porting/linux/user/src/thread/ |
D | pthread_mutex_lock_timeout_np.c | 24 struct timespec abs_timeout; in pthread_mutex_lock_timeout_np() local 25 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_mutex_lock_timeout_np() 26 return pthread_mutex_timedlock_monotonic_np(mutex_interface, &abs_timeout); in pthread_mutex_lock_timeout_np()
|
D | pthread_cond_timeout_np.c | 22 struct timespec abs_timeout; in pthread_cond_timeout_np() local 23 __absolute_timespec_from_timespec(&abs_timeout, &ts, CLOCK_MONOTONIC); in pthread_cond_timeout_np() 24 return pthread_cond_timedwait_monotonic_np(cond, mutex, &abs_timeout); in pthread_cond_timeout_np()
|
D | pthread_mutex_clocklock.c | 19 const struct timespec* abs_timeout) in pthread_mutex_clocklock() argument 28 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock() 31 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_clocklock()
|
D | pthread_cond_clockwait.c | 19 clockid_t clock_id, const struct timespec *abs_timeout) in pthread_cond_clockwait() argument 27 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait() 30 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_clockwait()
|
D | pthread_mutex_timedlock_monotonic_np.c | 18 …_mutex_timedlock_monotonic_np(pthread_mutex_t* mutex_interface, const struct timespec* abs_timeout) in pthread_mutex_timedlock_monotonic_np() argument 24 return __pthread_mutex_timedlock(mutex_interface, abs_timeout); in pthread_mutex_timedlock_monotonic_np()
|
D | pthread_cond_timedwait_monotonic_np.c | 19 const struct timespec *abs_timeout) in pthread_cond_timedwait_monotonic_np() argument 25 return __pthread_cond_timedwait(cond, mutex, abs_timeout); in pthread_cond_timedwait_monotonic_np()
|
/third_party/mesa3d/src/gallium/drivers/v3d/ |
D | v3d_fence.c | 96 uint64_t abs_timeout = os_time_get_absolute_timeout(timeout_ns); in v3d_fence_wait() local 97 if (abs_timeout == OS_TIMEOUT_INFINITE) in v3d_fence_wait() 98 abs_timeout = INT64_MAX; in v3d_fence_wait() 100 ret = drmSyncobjWait(screen->fd, &syncobj, 1, abs_timeout, 0, NULL); in v3d_fence_wait()
|
/third_party/mesa3d/src/util/ |
D | os_time.c | 120 int64_t time, abs_timeout; in os_time_get_absolute_timeout() local 127 abs_timeout = time + (int64_t)timeout; in os_time_get_absolute_timeout() 130 if (abs_timeout < time) in os_time_get_absolute_timeout() 133 return abs_timeout; in os_time_get_absolute_timeout()
|
D | u_queue.h | 168 int64_t abs_timeout); 181 int64_t abs_timeout) in util_queue_fence_wait_timeout() argument 186 if (abs_timeout == (int64_t)OS_TIMEOUT_INFINITE) { in util_queue_fence_wait_timeout() 191 return _util_queue_fence_wait_timeout(fence, abs_timeout); in util_queue_fence_wait_timeout()
|
D | u_queue.c | 113 bool timeout, int64_t abs_timeout) in do_futex_fence_wait() argument 117 ts.tv_sec = abs_timeout / (1000*1000*1000); in do_futex_fence_wait() 118 ts.tv_nsec = abs_timeout % (1000*1000*1000); in do_futex_fence_wait() 147 int64_t abs_timeout) in _util_queue_fence_wait_timeout() argument 149 return do_futex_fence_wait(fence, true, abs_timeout); in _util_queue_fence_wait_timeout() 175 int64_t abs_timeout) in _util_queue_fence_wait_timeout() argument 181 int64_t rel = abs_timeout - os_time_get_nano(); in _util_queue_fence_wait_timeout() 188 ts.tv_sec += abs_timeout / (1000*1000*1000); in _util_queue_fence_wait_timeout() 189 ts.tv_nsec += abs_timeout % (1000*1000*1000); in _util_queue_fence_wait_timeout()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | waiter.cc | 177 struct timespec abs_timeout; in Wait() local 179 abs_timeout = t.MakeAbsTimespec(); in Wait() 197 const int err = pthread_cond_timedwait(&cv_, &mu_, &abs_timeout); in Wait() 250 struct timespec abs_timeout; in Wait() local 252 abs_timeout = t.MakeAbsTimespec(); in Wait() 279 if (sem_timedwait(&sem_, &abs_timeout) == 0) break; in Wait()
|
/third_party/ltp/include/ |
D | tst_timer.h | 275 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in libc_mq_timedsend() argument 277 return mq_timedsend(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout); in libc_mq_timedsend() 281 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in sys_mq_timedsend() argument 284 abs_timeout); in sys_mq_timedsend() 288 size_t msg_len, unsigned int msg_prio, void *abs_timeout) in sys_mq_timedsend64() argument 291 msg_prio, abs_timeout); in sys_mq_timedsend64() 295 size_t msg_len, unsigned int *msg_prio, void *abs_timeout) in libc_mq_timedreceive() argument 297 return mq_timedreceive(mqdes, msg_ptr, msg_len, msg_prio, abs_timeout); in libc_mq_timedreceive() 301 size_t msg_len, unsigned int *msg_prio, void *abs_timeout) in sys_mq_timedreceive() argument 304 msg_prio, abs_timeout); in sys_mq_timedreceive() [all …]
|
D | time64_variants.h | 47 unsigned int msg_prio, void *abs_timeout); 49 unsigned int *msg_prio, void *abs_timeout);
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
D | mq_timedreceive01.c | 157 void *abs_timeout; in do_test() local 179 abs_timeout = bad_addr; in do_test() 181 abs_timeout = tst_ts_get(tc->rq); in do_test() 183 TEST(tv->mqt_receive(*tc->fd, rmsg, len, &prio, abs_timeout)); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/ |
D | mq_timedsend01.c | 170 void *msg_ptr, *abs_timeout; in do_test() local 195 abs_timeout = bad_addr; in do_test() 197 abs_timeout = tst_ts_get(tc->rq); in do_test() 199 TEST(tv->mqt_send(*tc->fd, msg_ptr, tc->len, tc->prio, abs_timeout)); in do_test()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_bo.c | 525 int64_t abs_timeout; in lima_bo_wait() local 528 abs_timeout = 0; in lima_bo_wait() 530 abs_timeout = os_time_get_absolute_timeout(timeout_ns); in lima_bo_wait() 532 if (abs_timeout == OS_TIMEOUT_INFINITE) in lima_bo_wait() 533 abs_timeout = INT64_MAX; in lima_bo_wait() 538 .timeout_ns = abs_timeout, in lima_bo_wait()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_bo_sync.c | 75 anv_get_relative_timeout(uint64_t abs_timeout) in anv_get_relative_timeout() argument 89 if (abs_timeout < now) in anv_get_relative_timeout() 92 uint64_t rel_timeout = abs_timeout - now; in anv_get_relative_timeout()
|