Home
last modified time | relevance | path

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

/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
HDtime.h33 #define NSEC_PER_SEC 1000000000L macro
55 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
56 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()
59 rem += NSEC_PER_SEC; in ns_to_timeval()
68 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
95 return ((ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec); in timespec_to_ns()
110 ts.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timespec()
111 rem = nsec % NSEC_PER_SEC; in ns_to_timespec()
114 rem += NSEC_PER_SEC; in ns_to_timespec()
HDjiffies.h76 (((u64)hz * ts->tv_nsec + NSEC_PER_SEC - 1) / NSEC_PER_SEC); in timespec_to_jiffies()
HDktime.h40 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
107 ktime_t retval = {(s64) secs * NSEC_PER_SEC + (s64) nsecs}; in ktime_set()
HDsched.h209 return ((uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec); in local_clock()
/freebsd-13-stable/sys/dev/drm2/
HDdrm_os_freebsd.c37 #define NSEC_PER_SEC 1000000000L macro
42 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
58 tv.tv_sec = nsec / NSEC_PER_SEC; in ns_to_timeval()
59 rem = nsec % NSEC_PER_SEC; in ns_to_timeval()
62 rem += NSEC_PER_SEC; in ns_to_timeval()
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
HDtime.h114 return (((hrtime_t)ts.tv_sec * NSEC_PER_SEC) + ts.tv_nsec); in gethrtime()
/freebsd-13-stable/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()
/freebsd-13-stable/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()
/freebsd-13-stable/sys/ofed/drivers/infiniband/ulp/sdp/
HDsdp_dbg.h58 return tv.tv_sec * NSEC_PER_SEC + tv.tv_nsec; in current_nsec()
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/
HDmlx4_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-13-stable/contrib/wpa/src/utils/
HDos_unix.c126 t->sec = nano / NSEC_PER_SEC; in os_get_reltime()
127 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()