Lines Matching refs:tv_nsec
38 base->tv_nsec = 0; in z_impl___posix_clock_get_base()
71 base.tv_nsec = 0; in clock_gettime()
89 ts->tv_nsec = (int32_t) k_ticks_to_ns_floor32(nremainder); in clock_gettime()
92 ts->tv_nsec += base.tv_nsec; in clock_gettime()
93 if (ts->tv_nsec >= NSEC_PER_SEC) { in clock_gettime()
95 ts->tv_nsec -= NSEC_PER_SEC; in clock_gettime()
116 .tv_nsec = NSEC_PER_SEC / CONFIG_SYS_CLOCK_TICKS_PER_SEC, in clock_getres()
141 if (tp->tv_nsec < 0 || tp->tv_nsec >= NSEC_PER_SEC) { in clock_settime()
147 int64_t delta = (int64_t)NSEC_PER_SEC * tp->tv_sec + tp->tv_nsec in clock_settime()
151 base.tv_nsec = delta % NSEC_PER_SEC; in clock_settime()
214 if ((rqtp->tv_sec < 0) || (rqtp->tv_nsec < 0) || (rqtp->tv_nsec >= NSEC_PER_SEC)) { in __z_clock_nanosleep()
220 ns = rqtp->tv_nsec + NSEC_PER_SEC + in __z_clock_nanosleep()
223 ns = (uint64_t)rqtp->tv_sec * NSEC_PER_SEC + rqtp->tv_nsec; in __z_clock_nanosleep()
230 ns -= rt_clock_base.tv_sec * NSEC_PER_SEC + rt_clock_base.tv_nsec; in __z_clock_nanosleep()
250 rmtp->tv_nsec = 0; in __z_clock_nanosleep()
283 tv->tv_usec = ts.tv_nsec / NSEC_PER_USEC; in gettimeofday()