| /NextBSD/sys/compat/linuxkpi/common/include/linux/ |
| HD | time.h | 32 #define NSEC_PER_SEC 1000000000L macro 49 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 50 rem = nsec % NSEC_PER_SEC; in ns_to_timeval() 53 rem += NSEC_PER_SEC; in ns_to_timeval() 62 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 91 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns() 106 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec() 107 rem = nsec % NSEC_PER_SEC; in ns_to_timespec() 110 rem += NSEC_PER_SEC; in ns_to_timespec()
|
| HD | jiffies.h | 73 (((u64)hz * ts->tv_nsec + NSEC_PER_SEC - 1) / NSEC_PER_SEC); in timespec_to_jiffies()
|
| HD | ktime.h | 46 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) 81 ktime_t retval = { (s64)secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set()
|
| /NextBSD/sys/sys/mach/ |
| HD | clock_types.h | 90 #ifdef NSEC_PER_SEC 91 #undef NSEC_PER_SEC 101 #define NSEC_PER_SEC 1000000000ll /* nanoseconds per second */ macro 103 ((t)->tv_nsec < 0 || (t)->tv_nsec >= NSEC_PER_SEC) 113 if (((t1)->tv_nsec += (t2)->tv_nsec) >= NSEC_PER_SEC) { \ 114 (t1)->tv_nsec -= NSEC_PER_SEC; \ 124 (t1)->tv_nsec += NSEC_PER_SEC; \
|
| /NextBSD/lib/libdispatch/dispatch/ |
| HD | time.h | 36 #ifdef NSEC_PER_SEC 37 #undef NSEC_PER_SEC 48 #define NSEC_PER_SEC 1000000000ull macro
|
| /NextBSD/usr.sbin/notifyd/ |
| HD | timer.c | 297 trigger = dispatch_walltime(NULL, (t->start - now) * NSEC_PER_SEC); in timer_oneshot() 298 dispatch_source_set_timer(t->t_src, trigger, NSEC_PER_SEC, 0); in timer_oneshot() 356 trigger = dispatch_walltime(NULL, (t->start - now) * NSEC_PER_SEC); in timer_clock() 357 dispatch_source_set_timer(t->t_src, trigger, freq_sec * NSEC_PER_SEC, 0); in timer_clock() 404 trigger = dispatch_walltime(NULL, (next - now) * NSEC_PER_SEC); in timer_calendar() 405 dispatch_source_set_timer(t->t_src, trigger, NSEC_PER_SEC, 0); in timer_calendar() 425 …ch_source_set_timer(t->t_src, dispatch_walltime(NULL, (x - _now) * NSEC_PER_SEC), NSEC_PER_SEC, 0); in timer_calendar()
|
| /NextBSD/lib/libdispatch/src/ |
| HD | time.c | 30 dispatch_assert(sizeof(NSEC_PER_SEC) == 8); in _dispatch_get_nanoseconds() 32 return (uint64_t)now.tv_sec * NSEC_PER_SEC + in _dispatch_get_nanoseconds() 63 _dispatch_host_time_data.frac = (long double)NSEC_PER_SEC / in _dispatch_get_host_time_init()
|
| HD | semaphore.c | 334 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 335 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 346 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 347 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_semaphore_wait_slow() 559 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_group_wait_slow() 560 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_group_wait_slow() 571 _timeout.tv_sec = (typeof(_timeout.tv_sec))(nsec / NSEC_PER_SEC); in _dispatch_group_wait_slow() 572 _timeout.tv_nsec = (typeof(_timeout.tv_nsec))(nsec % NSEC_PER_SEC); in _dispatch_group_wait_slow()
|
| HD | internal.h | 288 #ifdef NSEC_PER_SEC 289 #undef NSEC_PER_SEC 297 #define NSEC_PER_SEC 1000000000ull macro
|
| /NextBSD/sys/dev/drm2/ |
| HD | drm_os_freebsd.c | 39 #define NSEC_PER_SEC 1000000000L macro 44 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns() 60 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval() 61 rem = nsec % NSEC_PER_SEC; in ns_to_timeval() 64 rem += NSEC_PER_SEC; in ns_to_timeval()
|
| /NextBSD/contrib/compiler-rt/lib/asan/tests/ |
| HD | asan_mac_test_helpers.mm | 146 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC); 169 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC); 186 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
|
| /NextBSD/usr.bin/notifyutil/ |
| HD | notifyutil.c | 443 …ource_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 10), NSEC_PER_SEC / 10,… in do_register() 463 …ource_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 10), NSEC_PER_SEC / 10,… in do_register()
|
| /NextBSD/lib/libdispatch/src/shims/ |
| HD | time.h | 131 return (ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in _dispatch_absolute_time()
|
| /NextBSD/lib/libdispatch/private/ |
| HD | private.h | 131 dispatch_time(DISPATCH_TIME_NOW, (t) * NSEC_PER_SEC)
|
| /NextBSD/crypto/heimdal/kdc/ |
| HD | announce.c | 105 t = dispatch_time(DISPATCH_TIME_NOW, 5ull * NSEC_PER_SEC); in retry_timer() 106 dispatch_source_set_timer(s, t, 0, NSEC_PER_SEC); in retry_timer()
|
| /NextBSD/usr.sbin/asl/ |
| HD | bsd_out.c | 511 …dispatch_source_set_timer(r->dup_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * global.bsd… in _bsd_send() 736 …mer(bsd_idle_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * CLOSE_ON_IDLE_SEC), NSEC_PER_S… in bsd_out_init()
|
| HD | syslogd.c | 734 … dispatch_time(DISPATCH_TIME_NOW, global.mark_time * NSEC_PER_SEC), global.mark_time * NSEC_PER_SE… in main()
|
| HD | asl_action.c | 1370 …dispatch_source_set_timer(checkpoint_timer, dispatch_walltime(&midnight, 0), NSEC_PER_SEC * SEC_PE… in _start_cycling() 1515 …dispatch_source_set_timer(f_data->dup_timer, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC * globa… in _act_file_final()
|
| HD | daemon.c | 872 …dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delta * NSEC_PER_SEC), dispatch_get_main_queue(), … in trigger_aslmanager()
|
| /NextBSD/crypto/heimdal/lib/ipc/ |
| HD | common.c | 129 timeout = (uint64_t)t * NSEC_PER_SEC; in heim_ipc_semaphore_wait()
|
| HD | server.c | 75 timeoutvalue * NSEC_PER_SEC), in set_timer() 76 timeoutvalue * NSEC_PER_SEC, 1000000); in set_timer()
|
| /NextBSD/lib/libmach/mach/ |
| HD | mach_misc.c | 195 return (tp.tv_sec*NSEC_PER_SEC + tp.tv_nsec); in mach_absolute_time()
|
| /NextBSD/sys/ofed/drivers/infiniband/ulp/sdp/ |
| HD | sdp_dbg.h | 58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
|
| /NextBSD/contrib/wpa/src/utils/ |
| HD | os_unix.c | 117 t->sec = nano / NSEC_PER_SEC; in os_get_reltime() 118 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()
|
| /NextBSD/lib/libasl/ |
| HD | asl_fd.c | 187 dispatch_group_wait(read_source_group, dispatch_time(DISPATCH_TIME_NOW, 3LL * NSEC_PER_SEC)); in redirect_atexit()
|