Home
last modified time | relevance | path

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

/external/kernel-headers/original/linux/
Djiffies.h210 #if !((((NSEC_PER_SEC << 2) / TICK_NSEC) << (SEC_JIFFIE_SC - 2)) & 0x80000000)
216 #define SEC_CONVERSION ((unsigned long)((((u64)NSEC_PER_SEC << SEC_JIFFIE_SC) +\
239 (long)((u64)((u64)MAX_JIFFY_OFFSET * TICK_NSEC) / NSEC_PER_SEC)
242 (SH_DIV((MAX_JIFFY_OFFSET >> SEC_JIFFIE_SC) * TICK_NSEC, NSEC_PER_SEC, 1) - 1)
335 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SEC, &value->tv_nsec); in jiffies_to_timespec()
375 value->tv_sec = div_long_long_rem(nsec, NSEC_PER_SEC, &tv_usec); in jiffies_to_timeval()
385 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t()
389 do_div(tmp, (NSEC_PER_SEC / USER_HZ)); in jiffies_to_clock_t()
416 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t()
425 do_div(x, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
[all …]
Dktime.h60 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
81 return (ktime_t) { .tv64 = (s64)secs * NSEC_PER_SEC + (s64)nsecs }; in ktime_set()
156 res.tv.nsec += NSEC_PER_SEC; in ktime_sub()
181 if (res.tv.nsec >= NSEC_PER_SEC) in ktime_add()
182 res.tv64 += (u32)-NSEC_PER_SEC; in ktime_add()
253 return (u64) kt.tv.sec * NSEC_PER_SEC + kt.tv.nsec; in ktime_to_ns()
Dtime.h36 #define NSEC_PER_SEC 1000000000L macro
89 (((ts)->tv_sec >= 0) && (((unsigned long) (ts)->tv_nsec) < NSEC_PER_SEC))
131 return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
143 return ((s64) tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
171 while(unlikely(ns >= NSEC_PER_SEC)) { in timespec_add_ns()
172 ns -= NSEC_PER_SEC; in timespec_add_ns()
/external/dhcpcd/
Dcommon.c217 #define NSEC_PER_SEC 1000000000 in get_monotonic() macro
235 tp->tv_sec = nano / NSEC_PER_SEC; in get_monotonic()
236 rem = nano % NSEC_PER_SEC; in get_monotonic()
239 rem += NSEC_PER_SEC; in get_monotonic()
/external/webkit/JavaScriptCore/wtf/
DFastMalloc.cpp1494 …h_time_t startTime = dispatch_time(DISPATCH_TIME_NOW, kScavengeTimerDelayInSeconds * NSEC_PER_SEC); in initializeScavenger()
1495 …dispatch_source_set_timer(m_scavengeTimer, startTime, kScavengeTimerDelayInSeconds * NSEC_PER_SEC,… in initializeScavenger()