/linux-6.1.9/arch/x86/include/asm/ |
D | div64.h | 81 static inline u64 mul_u64_u64_div_u64(u64 a, u64 mul, u64 div) in mul_u64_u64_div_u64() function 91 #define mul_u64_u64_div_u64 mul_u64_u64_div_u64 macro 95 return mul_u64_u64_div_u64(a, mul, div); in mul_u64_u32_div()
|
/linux-6.1.9/lib/math/ |
D | div64.c | 196 #ifndef mul_u64_u64_div_u64 197 u64 mul_u64_u64_div_u64(u64 a, u64 b, u64 c) in mul_u64_u64_div_u64() function 235 EXPORT_SYMBOL(mul_u64_u64_div_u64);
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-mtk-disp.c | 123 clk_div = mul_u64_u64_div_u64(state->period, rate, NSEC_PER_SEC) >> in mtk_disp_pwm_apply() 134 period = mul_u64_u64_div_u64(state->period, rate, div); in mtk_disp_pwm_apply() 138 high_width = mul_u64_u64_div_u64(state->duty_cycle, rate, div); in mtk_disp_pwm_apply()
|
D | pwm-sunplus.c | 91 dd_freq = mul_u64_u64_div_u64(clk_rate, state->period, (u64)SP7021_PWM_FREQ_SCALER in sunplus_pwm_apply() 116 duty = mul_u64_u64_div_u64(state->duty_cycle, clk_rate, in sunplus_pwm_apply()
|
D | pwm-brcmstb.c | 125 pc = mul_u64_u64_div_u64(period_ns, rate, NSEC_PER_SEC); in brcmstb_pwm_config() 126 dc = mul_u64_u64_div_u64(duty_ns + 1, rate, NSEC_PER_SEC); in brcmstb_pwm_config()
|
D | pwm-lpc18xx-sct.c | 159 val = mul_u64_u64_div_u64(period_ns, lpc18xx_pwm->clk_rate, NSEC_PER_SEC); in lpc18xx_pwm_config_period() 181 val = mul_u64_u64_div_u64(duty_ns, lpc18xx_pwm->clk_rate, NSEC_PER_SEC); in lpc18xx_pwm_config_duty() 398 mul_u64_u64_div_u64(NSEC_PER_SEC, LPC18XX_PWM_TIMER_MAX, lpc18xx_pwm->clk_rate); in lpc18xx_pwm_probe()
|
D | pwm-bcm-kona.c | 125 pc = mul_u64_u64_div_u64(rate, period_ns, div); in kona_pwmc_config() 126 dc = mul_u64_u64_div_u64(rate, duty_ns, div); in kona_pwmc_config()
|
D | pwm-renesas-tpu.c | 267 period = mul_u64_u64_div_u64(clk_rate, period_ns, NSEC_PER_SEC); in tpu_pwm_config() 305 duty = mul_u64_u64_div_u64(clk_rate, duty_ns, in tpu_pwm_config()
|
D | pwm-clps711x.c | 56 val = mul_u64_u64_div_u64(state->duty_cycle, 0xf, state->period); in clps711x_pwm_apply()
|
D | pwm-imx1.c | 87 p = mul_u64_u64_div_u64(max, duty_ns, period_ns); in pwm_imx1_config()
|
D | pwm-pxa.c | 87 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config()
|
D | pwm-tegra.c | 171 rate = mul_u64_u64_div_u64(pc->clk_rate, period_ns, in tegra_pwm_config()
|
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 52 adjustment = mul_u64_u64_div_u64(incvalue, (u64)delta, in e1000e_phc_adjfine()
|
/linux-6.1.9/include/linux/ |
D | math64.h | 285 u64 mul_u64_u64_div_u64(u64 a, u64 mul, u64 div);
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 465 diff = mul_u64_u64_div_u64(incval, scaled_ppm, in ixgbe_ptp_adjfine_82599() 514 rate = mul_u64_u64_div_u64(IXGBE_X550_BASE_PERIOD, scaled_ppm, in ixgbe_ptp_adjfine_X550()
|
/linux-6.1.9/drivers/ptp/ |
D | ptp_qoriq.c | 198 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine()
|
/linux-6.1.9/kernel/sched/ |
D | cputime.c | 593 stime = mul_u64_u64_div_u64(stime, rtime, stime + utime); in cputime_adjust()
|
/linux-6.1.9/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 360 diff = mul_u64_u64_div_u64(freq, (u64)scaled_ppm, in i40e_ptp_adjfine()
|
/linux-6.1.9/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 208 rate = mul_u64_u64_div_u64(incvalue, (u64)scaled_ppm, in igb_ptp_adjfine_82576()
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_ptp.c | 1463 diff = mul_u64_u64_div_u64(incval, (u64)scaled_ppm, in ice_ptp_adjfine()
|
/linux-6.1.9/block/ |
D | blk-throttle.c | 786 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed()
|