Home
last modified time | relevance | path

Searched refs:NS_PER_S (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/platform/stm32/
Drtc.c27 #ifndef NS_PER_S
28 #define NS_PER_S UINT64_C(1000000000) macro
173 } else if (delay > (NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX)) { in rtcSetWakeupTimer()
174 delay = NS_PER_S * 2 * RTC_WKUP_DOWNCOUNT_MAX; in rtcSetWakeupTimer()
204 if (RTC_VALID_DELAY_FOR_PERIOD(delay, NS_PER_S)) in rtcSetWakeupTimer()
208 periodNs = NS_PER_S; in rtcSetWakeupTimer()
209 periodNsRecip = U64_RECIPROCAL_CALCULATE(NS_PER_S); in rtcSetWakeupTimer()
279 …return (time_s * NS_PER_S) + U64_DIV_BY_CONST_U16(((RTC_PREDIV_S - ssr) * NS_PER_S), (RTC_PREDIV_S… in rtcGetTime()
/device/google/marlin/camera/QCamera2/stack/mm-camera-test/src/
Dcam_semaphore_tests.cpp25 #define NS_PER_S 1000000000 macro
33 if (ts.tv_nsec >= NS_PER_S) { in timespec_add_ms()
35 ts.tv_nsec -= NS_PER_S; in timespec_add_ms()
43 return (int64_t)(ts_end.tv_sec - 1 - ts_start.tv_sec) * NS_PER_S + in time_diff()
44 ts_end.tv_nsec + NS_PER_S - ts_start.tv_nsec; in time_diff()
/device/generic/goldfish/ril/
Datchannel.c90 #define NS_PER_S 1000000000 macro
100 if (p_ts->tv_nsec >= NS_PER_S) { in setTimespecRelative()
102 p_ts->tv_nsec -= NS_PER_S; in setTimespecRelative()