Home
last modified time | relevance | path

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

/trueos/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; \
/trueos/sys/ofed/include/linux/
HDktime.h39 #define NSEC_PER_SEC 1000000000L macro
76 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
97 return (ktime_t) { .tv64 = (s64)secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set()
179 res.tv.nsec += NSEC_PER_SEC; in ktime_sub()
204 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add()
205 res.tv64 += (u32)-NSEC_PER_SEC; in ktime_add()
286 return (s64) kt.tv.sec * NSEC_PER_SEC + kt.tv.nsec; in ktime_to_ns()
/trueos/lib/libdispatch/dispatch/
HDtime.h36 #ifdef NSEC_PER_SEC
37 #undef NSEC_PER_SEC
48 #define NSEC_PER_SEC 1000000000ull macro
/trueos/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()
/trueos/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.h286 #ifdef NSEC_PER_SEC
287 #undef NSEC_PER_SEC
295 #define NSEC_PER_SEC 1000000000ull macro
HDqueue.c3139 if (leeway > 60 * NSEC_PER_SEC) leeway = 60 * NSEC_PER_SEC; in dispatch_after_f()
4123 const int64_t timeout = 5ull * NSEC_PER_SEC; in _dispatch_worker_thread()
HDsource.c1288 #define NSEC_PER_FRAME (NSEC_PER_SEC/60) in _dispatch_source_set_interval()
/trueos/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()
/trueos/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()
/trueos/lib/libdispatch/src/shims/
HDtime.h131 return (ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in _dispatch_absolute_time()
/trueos/lib/libdispatch/private/
HDprivate.h131 dispatch_time(DISPATCH_TIME_NOW, (t) * NSEC_PER_SEC)
/trueos/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()
/trueos/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()
/trueos/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.c871 …dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delta * NSEC_PER_SEC), dispatch_get_main_queue(), … in trigger_aslmanager()
HDdbserver.c552 …dispatch_source_set_timer(timer_src, dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC / 2), DISPATCH_… in db_save_message()
/trueos/lib/libmach/mach/
HDmach_misc.c195 return (tp.tv_sec*NSEC_PER_SEC + tp.tv_nsec); in mach_absolute_time()
/trueos/sys/ofed/drivers/infiniband/ulp/sdp/
HDsdp_dbg.h58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
/trueos/lib/libasl/
HDasl_fd.c187 dispatch_group_wait(read_source_group, dispatch_time(DISPATCH_TIME_NOW, 3LL * NSEC_PER_SEC)); in redirect_atexit()
/trueos/sbin/launchd/
HDcore.c3680 job_log(j, LOG_PERF, "Last instance wall time: %06f", (double)rt / (double)NSEC_PER_SEC); in job_reap()
3752 td_sec = td / NSEC_PER_SEC; in job_reap()
3753 td_usec = (td % NSEC_PER_SEC) / NSEC_PER_USEC; in job_reap()
4245 td /= NSEC_PER_SEC; in job_callback_timer()
4468 td /= NSEC_PER_SEC; in job_start()