• Home
  • Raw
  • Download

Lines Matching refs:nsec

460 struct timespec ns_to_timespec(const s64 nsec)  in ns_to_timespec()  argument
465 if (!nsec) in ns_to_timespec()
468 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec()
485 struct timeval ns_to_timeval(const s64 nsec) in ns_to_timeval() argument
487 struct timespec ts = ns_to_timespec(nsec); in ns_to_timeval()
497 struct __kernel_old_timeval ns_to_kernel_old_timeval(const s64 nsec) in ns_to_kernel_old_timeval() argument
499 struct timespec64 ts = ns_to_timespec64(nsec); in ns_to_kernel_old_timeval()
523 void set_normalized_timespec64(struct timespec64 *ts, time64_t sec, s64 nsec) in set_normalized_timespec64() argument
525 while (nsec >= NSEC_PER_SEC) { in set_normalized_timespec64()
531 asm("" : "+rm"(nsec)); in set_normalized_timespec64()
532 nsec -= NSEC_PER_SEC; in set_normalized_timespec64()
535 while (nsec < 0) { in set_normalized_timespec64()
536 asm("" : "+rm"(nsec)); in set_normalized_timespec64()
537 nsec += NSEC_PER_SEC; in set_normalized_timespec64()
541 ts->tv_nsec = nsec; in set_normalized_timespec64()
551 struct timespec64 ns_to_timespec64(const s64 nsec) in ns_to_timespec64() argument
556 if (!nsec) in ns_to_timespec64()
559 ts.tv_sec = div_s64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64()
629 __timespec64_to_jiffies(u64 sec, long nsec) in __timespec64_to_jiffies() argument
631 nsec = nsec + TICK_NSEC - 1; in __timespec64_to_jiffies()
635 nsec = 0; in __timespec64_to_jiffies()
638 (((u64)nsec * NSEC_CONVERSION) >> in __timespec64_to_jiffies()
644 __timespec_to_jiffies(unsigned long sec, long nsec) in __timespec_to_jiffies() argument
646 return __timespec64_to_jiffies((u64)sec, nsec); in __timespec_to_jiffies()