/external/linux-kselftest/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 37 #define NSEC_PER_SEC 1000000000LL macro 206 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 207 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 211 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 258 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset() 261 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset() 264 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset() 267 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset() 270 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset() 273 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset() [all …]
|
D | nsleep-lat.c | 29 #define NSEC_PER_SEC 1000000000ULL macro 82 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 83 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 92 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 94 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 104 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 161 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | mqueue-lat.c | 34 #define NSEC_PER_SEC 1000000000ULL macro 42 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 44 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
|
D | alarmtimer-suspend.c | 48 #define NSEC_PER_SEC 1000000000ULL macro 49 #define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */ 89 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 91 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 106 delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; in sigalarm()
|
D | raw_skew.c | 31 #define NSEC_PER_SEC 1000000000LL macro 48 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 55 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 56 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts() 127 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main()
|
D | nanosleep.c | 32 #define NSEC_PER_SEC 1000000000ULL macro 94 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 95 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 148 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | adjtick.c | 30 #define NSEC_PER_SEC 1000000000LL macro 46 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 53 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 54 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
D | leap-a-day.c | 53 #define NSEC_PER_SEC 1000000000ULL macro 74 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 75 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 165 target = timespec_add(now, NSEC_PER_SEC/2); in test_hrtimer_failure() 356 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
|
D | set-timer-lat.c | 48 #define NSEC_PER_SEC 1000000000ULL macro 90 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 92 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 106 delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; in sigalarm()
|
D | inconsistency-check.c | 34 #define NSEC_PER_SEC 1000000000ULL macro 134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
|
D | set-2038.c | 32 #define NSEC_PER_SEC 1000000000LL macro 35 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
|
/external/mesa3d/src/util/tests/timespec/ |
D | timespec_test.cpp | 35 a.tv_nsec = NSEC_PER_SEC - 1; in TEST() 53 EXPECT_EQ(r.tv_nsec, NSEC_PER_SEC - 1); in TEST() 62 EXPECT_EQ(timespec_to_nsec(&a), (NSEC_PER_SEC * 4ULL) + 4); in TEST() 98 a.tv_nsec = NSEC_PER_SEC - 1; in TEST() 102 EXPECT_EQ(NSEC_PER_SEC - 1, tv_nsec); in TEST() 122 a.tv_nsec = NSEC_PER_SEC - 1; in TEST() 131 timespec_add_nsec(&r, &a, (NSEC_PER_SEC * 2ULL)); in TEST() 133 EXPECT_EQ(NSEC_PER_SEC - 1, r.tv_nsec); in TEST() 135 timespec_add_nsec(&r, &a, (NSEC_PER_SEC * 2ULL) + 2); in TEST() 141 timespec_add_nsec(&r, &r, NSEC_PER_SEC + 10ULL); in TEST() [all …]
|
/external/mesa3d/src/util/ |
D | timespec.h | 40 #define NSEC_PER_SEC 1000000000 macro 55 if (r->tv_nsec > NSEC_PER_SEC) { in timespec_add() 57 r->tv_nsec -= NSEC_PER_SEC; in timespec_add() 76 r->tv_nsec += NSEC_PER_SEC; in timespec_sub() 90 r->tv_sec = a->tv_sec + (b / NSEC_PER_SEC); in timespec_add_nsec() 91 r->tv_nsec = a->tv_nsec + (b % NSEC_PER_SEC); in timespec_add_nsec() 93 if (r->tv_nsec >= NSEC_PER_SEC) { in timespec_add_nsec() 95 r->tv_nsec -= NSEC_PER_SEC; in timespec_add_nsec() 98 r->tv_nsec += NSEC_PER_SEC; in timespec_add_nsec() 124 return (uint64_t)a->tv_sec * NSEC_PER_SEC + a->tv_nsec; in timespec_to_nsec() [all …]
|
/external/mesa3d/src/vulkan/wsi/ |
D | wsi_common_queue.h | 105 #define NSEC_PER_SEC 1000000000 macro 119 uint32_t abs_nsec = now.tv_nsec + timeout % NSEC_PER_SEC; in wsi_queue_pull() 120 uint64_t abs_sec = now.tv_sec + (abs_nsec / NSEC_PER_SEC) + in wsi_queue_pull() 121 (timeout / NSEC_PER_SEC); in wsi_queue_pull() 122 abs_nsec %= NSEC_PER_SEC; in wsi_queue_pull()
|
/external/mesa3d/src/etnaviv/drm/ |
D | etnaviv_priv.h | 211 tv->tv_sec = t.tv_sec + ns / NSEC_PER_SEC; in get_abs_timeout() 212 tv->tv_nsec = t.tv_nsec + ns % NSEC_PER_SEC; in get_abs_timeout() 213 if (tv->tv_nsec >= NSEC_PER_SEC) { in get_abs_timeout() 214 tv->tv_nsec -= NSEC_PER_SEC; in get_abs_timeout()
|
/external/ltp/testcases/realtime/func/sched_jitter/ |
D | sched_jitter.c | 55 #define NSEC_PER_SEC 1000000000 macro 88 first = (unsigned long long)a.tv_sec * NSEC_PER_SEC + a.tv_nsec; in ts_sub() 89 second = (unsigned long long)b.tv_sec * NSEC_PER_SEC + b.tv_nsec; in ts_sub()
|
/external/ltp/include/lapi/ |
D | common_timers.h | 14 #ifndef NSEC_PER_SEC 15 #define NSEC_PER_SEC (1000000000L) macro
|
/external/libnetfilter_conntrack/include/internal/ |
D | internal.h | 75 #ifndef NSEC_PER_SEC 76 #define NSEC_PER_SEC 1000000000L macro
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_wait.c | 92 igt_spin_set_timeout(spin, NSEC_PER_SEC/2); in basic() 104 wait.timeout_ns = NSEC_PER_SEC / 2; /* 0.5s */ in basic() 115 igt_spin_set_timeout(spin, NSEC_PER_SEC/2); in basic() 116 wait.timeout_ns = NSEC_PER_SEC; /* 1.0s */ in basic()
|
/external/ltp/testcases/kernel/syscalls/clock_gettime/ |
D | leapsec01.c | 124 const struct timespec sleeptime = { 0, NSEC_PER_SEC / 2 }; in run_leapsec() 168 start.tv_sec += start.tv_nsec / NSEC_PER_SEC; in run_leapsec() 169 start.tv_nsec = start.tv_nsec % NSEC_PER_SEC; in run_leapsec()
|
/external/libusb/libusb/os/ |
D | threads_posix.c | 70 if (timeout.tv_nsec >= NSEC_PER_SEC) { in usbi_cond_timedwait() 71 timeout.tv_nsec -= NSEC_PER_SEC; in usbi_cond_timedwait()
|
/external/ltp/testcases/kernel/syscalls/clock_settime/ |
D | clock_settime02.c | 18 #define NSEC_PER_SEC (1000000000L) macro 47 .newtime.tv_nsec = NSEC_PER_SEC + 1,
|
/external/autotest/client/tests/signaltest/src/ |
D | signaltest.c | 37 #define NSEC_PER_SEC 1000000000 macro 74 while (ts->tv_nsec >= NSEC_PER_SEC) { in tsnorm() 75 ts->tv_nsec -= NSEC_PER_SEC; in tsnorm()
|
/external/igt-gpu-tools/lib/ |
D | igt_aux.c | 146 while (its.it_value.tv_nsec >= NSEC_PER_SEC) { in sig_ioctl() 147 its.it_value.tv_nsec -= NSEC_PER_SEC; in sig_ioctl() 205 __igt_sigiter.offset.tv_nsec += NSEC_PER_SEC; in igt_sigiter_start() 267 while (__igt_sigiter.offset.tv_nsec >= NSEC_PER_SEC) { in __igt_sigiter_continue() 268 __igt_sigiter.offset.tv_nsec -= NSEC_PER_SEC; in __igt_sigiter_continue() 1567 return hars_petruska_f54_1_random_unsafe() % (NSEC_PER_SEC / 1000); in delay() 1592 if (its.it_value.tv_nsec >= NSEC_PER_SEC) { in siglatency() 1593 its.it_value.tv_nsec -= NSEC_PER_SEC; in siglatency()
|
/external/mesa3d/src/broadcom/vulkan/ |
D | v3dv_limits.h | 26 #define NSEC_PER_SEC 1000000000ull macro
|