Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 25 of 29) sorted by relevance

12

/NextBSD/sys/compat/linuxkpi/common/include/linux/
HDtime.h32 #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()
HDjiffies.h73 (((u64)hz * ts->tv_nsec + NSEC_PER_SEC - 1) / NSEC_PER_SEC); in timespec_to_jiffies()
HDktime.h46 #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/
HDclock_types.h90 #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/
HDtime.h36 #ifdef NSEC_PER_SEC
37 #undef NSEC_PER_SEC
48 #define NSEC_PER_SEC 1000000000ull macro
/NextBSD/usr.sbin/notifyd/
HDtimer.c297 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/
HDtime.c30 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()
HDsemaphore.c334 _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()
HDinternal.h288 #ifdef NSEC_PER_SEC
289 #undef NSEC_PER_SEC
297 #define NSEC_PER_SEC 1000000000ull macro
/NextBSD/sys/dev/drm2/
HDdrm_os_freebsd.c39 #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/
HDasan_mac_test_helpers.mm146 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/
HDnotifyutil.c443 …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/
HDtime.h131 return (ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in _dispatch_absolute_time()
/NextBSD/lib/libdispatch/private/
HDprivate.h131 dispatch_time(DISPATCH_TIME_NOW, (t) * NSEC_PER_SEC)
/NextBSD/crypto/heimdal/kdc/
HDannounce.c105 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/
HDbsd_out.c511 …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()
HDsyslogd.c734 … dispatch_time(DISPATCH_TIME_NOW, global.mark_time * NSEC_PER_SEC), global.mark_time * NSEC_PER_SE… in main()
HDasl_action.c1370 …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()
HDdaemon.c872 …dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delta * NSEC_PER_SEC), dispatch_get_main_queue(), … in trigger_aslmanager()
/NextBSD/crypto/heimdal/lib/ipc/
HDcommon.c129 timeout = (uint64_t)t * NSEC_PER_SEC; in heim_ipc_semaphore_wait()
HDserver.c75 timeoutvalue * NSEC_PER_SEC), in set_timer()
76 timeoutvalue * NSEC_PER_SEC, 1000000); in set_timer()
/NextBSD/lib/libmach/mach/
HDmach_misc.c195 return (tp.tv_sec*NSEC_PER_SEC + tp.tv_nsec); in mach_absolute_time()
/NextBSD/sys/ofed/drivers/infiniband/ulp/sdp/
HDsdp_dbg.h58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
/NextBSD/contrib/wpa/src/utils/
HDos_unix.c117 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/
HDasl_fd.c187 dispatch_group_wait(read_source_group, dispatch_time(DISPATCH_TIME_NOW, 3LL * NSEC_PER_SEC)); in redirect_atexit()

12