Searched refs:NSEC_PER_SEC (Results 1 – 11 of 11) sorted by relevance
/external/kernel-headers/original/linux/ |
D | jiffies.h | 210 #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 …]
|
D | ktime.h | 60 #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()
|
D | time.h | 36 #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/ |
D | common.c | 166 #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/ |
D | perf.h | 161 #ifndef NSEC_PER_SEC 162 # define NSEC_PER_SEC 1000000000ULL macro
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_mac_test_helpers.mm | 142 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/ |
D | gki_ulinux.c | 54 #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/ |
D | gki_ulinux.c | 55 #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/ |
D | gki_ulinux.c | 68 #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/ |
D | dns-sd.c | 619 …_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/ |
D | FastMalloc.cpp | 1641 uint64_t scavengeDelayInNanoseconds = kScavengeDelayInSeconds * NSEC_PER_SEC; in initializeScavenger()
|