Lines Matching refs:NSEC_PER_SEC
480 while (nsec >= NSEC_PER_SEC) { in set_normalized_timespec64()
487 nsec -= NSEC_PER_SEC; in set_normalized_timespec64()
492 nsec += NSEC_PER_SEC; in set_normalized_timespec64()
512 ts.tv_sec = div_u64_rem(nsec, NSEC_PER_SEC, &rem); in ns_to_timespec64()
520 ts.tv_sec = -div_u64_rem(-nsec - 1, NSEC_PER_SEC, &rem) - 1; in ns_to_timespec64()
521 ts.tv_nsec = NSEC_PER_SEC - rem - 1; in ns_to_timespec64()
613 NSEC_PER_SEC, &rem); in jiffies_to_timespec64()
623 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t()
630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
654 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t()
668 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
676 #if (NSEC_PER_SEC % USER_HZ) == 0 in nsec_to_clock_t()
677 return div_u64(x, NSEC_PER_SEC / USER_HZ); in nsec_to_clock_t()
679 return div_u64(x * USER_HZ / 512, NSEC_PER_SEC / 512); in nsec_to_clock_t()
686 return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ); in nsec_to_clock_t()
692 #if !(NSEC_PER_SEC % HZ) in jiffies64_to_nsecs()
693 return (NSEC_PER_SEC / HZ) * j; in jiffies64_to_nsecs()
725 #if (NSEC_PER_SEC % HZ) == 0 in nsecs_to_jiffies64()
727 return div_u64(n, NSEC_PER_SEC / HZ); in nsecs_to_jiffies64()
730 return div_u64(n * HZ / 512, NSEC_PER_SEC / 512); in nsecs_to_jiffies64()
736 return div_u64(n * 9, (9ull * NSEC_PER_SEC + HZ / 2) / HZ); in nsecs_to_jiffies64()