Lines Matching refs:tv_nsec
20 res->tv_nsec = 1000000; in clock_getres()
37 tp->tv_nsec = (time_ms % 1000) * 1000000; in clock_gettime()
41 tp->tv_nsec = (time_ms % 1000) * 1000000; in clock_gettime()
56 (tp->tv_nsec < 0) || (tp->tv_nsec >= 1000000000UL)) { in clock_settime()
61 time_ms = (tp->tv_sec * 1000) + (tp->tv_nsec / 1000000); in clock_settime()
76 if ((rqtp == NULL) || (rqtp->tv_sec < 0) || (rqtp->tv_nsec < 0) in clock_nanosleep()
77 || (rqtp->tv_nsec >= 1000000000UL)) { in clock_nanosleep()
92 time_ms = (rqtp->tv_sec - tp.tv_sec) * 1000 + (rqtp->tv_nsec - tp.tv_nsec) / 1000000; in clock_nanosleep()
100 time_ms = rqtp->tv_sec * 1000 + rqtp->tv_nsec / 1000000; in clock_nanosleep()
116 if ((rqtp == NULL) || (rqtp->tv_sec < 0) || (rqtp->tv_nsec < 0) in nanosleep()
117 || (rqtp->tv_nsec >= 1000000000UL)) { in nanosleep()
122 time_ms = (rqtp->tv_sec * 1000) + (rqtp->tv_nsec / 1000000); in nanosleep()
130 struct timespec tv = { .tv_sec = seconds, .tv_nsec = 0 }; in sleep()
142 .tv_nsec = (us % 1000000) * 1000 in usleep()