Lines Matching refs:x
621 clock_t jiffies_to_clock_t(unsigned long x) in jiffies_to_clock_t() argument
625 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
627 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
635 unsigned long clock_t_to_jiffies(unsigned long x) in clock_t_to_jiffies() argument
638 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies()
640 return x * (HZ / USER_HZ); in clock_t_to_jiffies()
643 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies()
647 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
652 u64 jiffies_64_to_clock_t(u64 x) in jiffies_64_to_clock_t() argument
656 x = div_u64(x * USER_HZ, HZ); in jiffies_64_to_clock_t()
658 x = div_u64(x, HZ / USER_HZ); in jiffies_64_to_clock_t()
668 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
670 return x; in jiffies_64_to_clock_t()
674 u64 nsec_to_clock_t(u64 x) in nsec_to_clock_t() argument
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()