Home
last modified time | relevance | path

Searched refs:NSEC_PER_SEC (Results 1 – 11 of 11) 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.c166 #define NSEC_PER_SEC 1000000000 in get_monotonic() macro
184 tp->tv_sec = nano / NSEC_PER_SEC; in get_monotonic()
185 rem = nano % NSEC_PER_SEC; in get_monotonic()
188 rem += NSEC_PER_SEC; in get_monotonic()
/external/linux-tools-perf/
Dperf.h161 #ifndef NSEC_PER_SEC
162 # define NSEC_PER_SEC 1000000000ULL macro
/external/compiler-rt/lib/asan/tests/
Dasan_mac_test_helpers.mm142 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
167 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
184 dispatch_time(DISPATCH_TIME_NOW, 1LL * NSEC_PER_SEC);
/external/libnfc-nci/src/gki/ulinux/
Dgki_ulinux.c54 #define NSEC_PER_SEC (1000*NANOSEC_PER_MILLISEC) macro
677 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
679 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
680 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
/external/libnfc-nci/halimpl/bcm2079x/gki/ulinux/
Dgki_ulinux.c55 #define NSEC_PER_SEC (1000*NANOSEC_PER_MILLISEC) macro
699 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
701 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
702 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
/external/bluetooth/bluedroid/gki/ulinux/
Dgki_ulinux.c68 #define NSEC_PER_SEC (1000*NANOSEC_PER_MILLISEC) macro
934 if (abstime.tv_nsec > NSEC_PER_SEC) in GKI_wait()
936 abstime.tv_sec += (abstime.tv_nsec / NSEC_PER_SEC); in GKI_wait()
937 abstime.tv_nsec = abstime.tv_nsec % NSEC_PER_SEC; in GKI_wait()
/external/mdnsresponder/Clients/
Ddns-sd.c619 …_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC), in myTimerCallBack()
620 (uint64_t)timeOut * NSEC_PER_SEC, 0); in myTimerCallBack()
653 …_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC), in reg_reply()
654 (uint64_t)timeOut * NSEC_PER_SEC, 0); in reg_reply()
839 …_source_set_timer(timer_source, dispatch_time(DISPATCH_TIME_NOW, (uint64_t)timeOut * NSEC_PER_SEC), in HandleEvents()
840 (uint64_t)timeOut * NSEC_PER_SEC, 0); in HandleEvents()
/external/chromium_org/third_party/WebKit/Source/wtf/
DFastMalloc.cpp1641 uint64_t scavengeDelayInNanoseconds = kScavengeDelayInSeconds * NSEC_PER_SEC; in initializeScavenger()