Home
last modified time | relevance | path

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

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dtime.h33 #define NSEC_PER_SEC 1000000000L macro
57 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
58 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()
61 rem += NSEC_PER_SEC; in ns_to_timeval()
70 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
97 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns()
112 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec()
113 rem = nsec % NSEC_PER_SEC; in ns_to_timespec()
116 rem += NSEC_PER_SEC; in ns_to_timespec()
H A Dktime.h40 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
113 ktime_t retval = {(s64) secs * NSEC_PER_SEC + (s64) nsecs}; in ktime_set()
H A Dsched.h212 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in local_clock()
H A Dsched.h212 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in local_clock()
H A Dsched.h212 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in local_clock()
/freebsd/sys/dev/drm2/
H A Ddrm_os_freebsd.c35 #define NSEC_PER_SEC 1000000000L macro
40 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
56 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
57 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()
60 rem += NSEC_PER_SEC; in ns_to_timeval()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dtime.h86 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in gethrtime()
/freebsd/crypto/heimdal/kdc/
H A Dannounce.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()
/freebsd/crypto/heimdal/lib/ipc/
H A Dcommon.c129 timeout = (uint64_t)t * NSEC_PER_SEC; in heim_ipc_semaphore_wait()
H A Dserver.c75 timeoutvalue * NSEC_PER_SEC), in set_timer()
76 timeoutvalue * NSEC_PER_SEC, 1000000); in set_timer()
/freebsd/sys/dev/qat/qat_common/
H A Dadf_clock.c123 delta.tv_sec * NSEC_PER_SEC + delta.tv_nsec + (NSEC_PER_USEC / 2); in measure_clock()
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_dbg.h58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_alias_GUID.c316 rec->time_to_run = ktime_get_ns() + 1 * NSEC_PER_SEC; in aliasguid_query_handler()
423 resched_delay_sec * NSEC_PER_SEC; in aliasguid_query_handler()
717 div_u64((low_record_time - curr_time), NSEC_PER_SEC); in get_low_record_time_index()
/freebsd/contrib/wpa/src/utils/
H A Dos_unix.c131 t->sec = nano / NSEC_PER_SEC; in os_get_reltime()
132 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()