Lines Matching refs:divisor
19 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument
21 *remainder = dividend % divisor; in div_u64_rem()
22 return dividend / divisor; in div_u64_rem()
28 static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder) in div_s64_rem() argument
30 *remainder = dividend % divisor; in div_s64_rem()
31 return dividend / divisor; in div_s64_rem()
37 static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder) in div64_u64_rem() argument
39 *remainder = dividend % divisor; in div64_u64_rem()
40 return dividend / divisor; in div64_u64_rem()
46 static inline u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() argument
48 return dividend / divisor; in div64_u64()
54 static inline s64 div64_s64(s64 dividend, s64 divisor) in div64_s64() argument
56 return dividend / divisor; in div64_s64()
65 static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder) in div_u64_rem() argument
67 *remainder = do_div(dividend, divisor); in div_u64_rem()
73 extern s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder);
77 extern u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder);
81 extern u64 div64_u64(u64 dividend, u64 divisor);
85 extern s64 div64_s64(s64 dividend, s64 divisor);
98 static inline u64 div_u64(u64 dividend, u32 divisor) in div_u64() argument
101 return div_u64_rem(dividend, divisor, &remainder); in div_u64()
109 static inline s64 div_s64(s64 dividend, s32 divisor) in div_s64() argument
112 return div_s64_rem(dividend, divisor, &remainder); in div_s64()
116 u32 iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder);
119 __iter_div_u64_rem(u64 dividend, u32 divisor, u64 *remainder) in __iter_div_u64_rem() argument
123 while (dividend >= divisor) { in __iter_div_u64_rem()
128 dividend -= divisor; in __iter_div_u64_rem()
229 static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor) in mul_u64_u32_div() argument
247 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
250 do_div(rl.ll, divisor); in mul_u64_u32_div()