Home
last modified time | relevance | path

Searched refs:mul_u64_u64_div_u64 (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/arch/x86/include/asm/
Ddiv64.h81 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/
Ddiv64.c196 #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/
Dpwm-mtk-disp.c123 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()
Dpwm-sunplus.c91 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()
Dpwm-brcmstb.c125 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()
Dpwm-lpc18xx-sct.c159 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()
Dpwm-bcm-kona.c125 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()
Dpwm-renesas-tpu.c267 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()
Dpwm-clps711x.c56 val = mul_u64_u64_div_u64(state->duty_cycle, 0xf, state->period); in clps711x_pwm_apply()
Dpwm-imx1.c87 p = mul_u64_u64_div_u64(max, duty_ns, period_ns); in pwm_imx1_config()
Dpwm-pxa.c87 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config()
Dpwm-tegra.c171 rate = mul_u64_u64_div_u64(pc->clk_rate, period_ns, in tegra_pwm_config()
/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dptp.c52 adjustment = mul_u64_u64_div_u64(incvalue, (u64)delta, in e1000e_phc_adjfine()
/linux-6.1.9/include/linux/
Dmath64.h285 u64 mul_u64_u64_div_u64(u64 a, u64 mul, u64 div);
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c465 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/
Dptp_qoriq.c198 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine()
/linux-6.1.9/kernel/sched/
Dcputime.c593 stime = mul_u64_u64_div_u64(stime, rtime, stime + utime); in cputime_adjust()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c360 diff = mul_u64_u64_div_u64(freq, (u64)scaled_ppm, in i40e_ptp_adjfine()
/linux-6.1.9/drivers/net/ethernet/intel/igb/
Digb_ptp.c208 rate = mul_u64_u64_div_u64(incvalue, (u64)scaled_ppm, in igb_ptp_adjfine_82576()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_ptp.c1463 diff = mul_u64_u64_div_u64(incval, (u64)scaled_ppm, in ice_ptp_adjfine()
/linux-6.1.9/block/
Dblk-throttle.c786 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed()