Lines Matching refs:ts
363 void set_normalized_timespec(struct timespec *ts, time_t sec, s64 nsec) in set_normalized_timespec() argument
380 ts->tv_sec = sec; in set_normalized_timespec()
381 ts->tv_nsec = nsec; in set_normalized_timespec()
393 struct timespec ts; in ns_to_timespec() local
399 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec()
401 ts.tv_sec--; in ns_to_timespec()
404 ts.tv_nsec = rem; in ns_to_timespec()
406 return ts; in ns_to_timespec()
418 struct timespec ts = ns_to_timespec(nsec); in ns_to_timeval() local
421 tv.tv_sec = ts.tv_sec; in ns_to_timeval()
422 tv.tv_usec = (suseconds_t) ts.tv_nsec / 1000; in ns_to_timeval()
443 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
460 ts->tv_sec = sec; in set_normalized_timespec64()
461 ts->tv_nsec = nsec; in set_normalized_timespec64()
473 struct timespec64 ts; in ns_to_timespec64() local
479 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64()
481 ts.tv_sec--; in ns_to_timespec64()
484 ts.tv_nsec = rem; in ns_to_timespec64()
486 return ts; in ns_to_timespec64()