Home
last modified time | relevance | path

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

12

/linux/arch/x86/include/asm/
H A Ddiv64.h87 static inline u64 mul_u64_u64_div_u64(u64 a, u64 mul, u64 div) in mul_u64_u64_div_u64() function
97 #define mul_u64_u64_div_u64 mul_u64_u64_div_u64 macro
101 return mul_u64_u64_div_u64(a, mul, div); in mul_u64_u32_div()
/linux/lib/math/
H A Ddiv64.c186 #ifndef mul_u64_u64_div_u64
187 u64 mul_u64_u64_div_u64(u64 a, u64 b, u64 c) in mul_u64_u64_div_u64() function
268 EXPORT_SYMBOL(mul_u64_u64_div_u64);
H A Dtest_mul_u64_u64_div_u64.c77 u64 result = mul_u64_u64_div_u64(a, b, c); in test_init()
/linux/drivers/pwm/
H A Dpwm-apple.c56 on_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()
61 off_cycles = mul_u64_u64_div_u64(fpwm->clkrate, in apple_pwm_apply()
H A Dpwm-mtk-disp.c118 clk_div = mul_u64_u64_div_u64(state->period, rate, NSEC_PER_SEC) >> in mtk_disp_pwm_apply()
129 period = mul_u64_u64_div_u64(state->period, rate, div); in mtk_disp_pwm_apply()
133 high_width = mul_u64_u64_div_u64(state->duty_cycle, rate, div); in mtk_disp_pwm_apply()
H A Dpwm-ab8500.c77 div = min_t(u64, mul_u64_u64_div_u64(state->period, in ab8500_pwm_apply()
84 duty_steps = max_t(u64, mul_u64_u64_div_u64(state->duty_cycle, in ab8500_pwm_apply()
H A Dpwm-brcmstb.c124 pc = mul_u64_u64_div_u64(period_ns, rate, NSEC_PER_SEC); in brcmstb_pwm_config()
125 dc = mul_u64_u64_div_u64(duty_ns + 1, rate, NSEC_PER_SEC); in brcmstb_pwm_config()
H A Dpwm-axi-pwmgen.c69 period_cnt = mul_u64_u64_div_u64(state->period, ddata->clk_rate_hz, NSEC_PER_SEC); in axi_pwmgen_apply()
80 duty_cnt = mul_u64_u64_div_u64(state->duty_cycle, ddata->clk_rate_hz, NSEC_PER_SEC); in axi_pwmgen_apply()
H A Dpwm-lpc18xx-sct.c158 val = mul_u64_u64_div_u64(period_ns, lpc18xx_pwm->clk_rate, NSEC_PER_SEC); in lpc18xx_pwm_config_period()
180 val = mul_u64_u64_div_u64(duty_ns, lpc18xx_pwm->clk_rate, NSEC_PER_SEC); in lpc18xx_pwm_config_duty()
384 mul_u64_u64_div_u64(NSEC_PER_SEC, LPC18XX_PWM_TIMER_MAX, lpc18xx_pwm->clk_rate); in lpc18xx_pwm_probe()
H A 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()
H A Dpwm-bcm-kona.c124 pc = mul_u64_u64_div_u64(rate, period_ns, div); in kona_pwmc_config()
125 dc = mul_u64_u64_div_u64(rate, duty_ns, div); in kona_pwmc_config()
H A Dpwm-microchip-core.c145 duty_steps = mul_u64_u64_div_u64(state->duty_cycle, clk_rate, tmp); in mchp_core_pwm_calc_duty()
211 tmp = mul_u64_u64_div_u64(state->period, clk_rate, NSEC_PER_SEC); in mchp_core_pwm_calc_period()
H A Dpwm-clps711x.c55 val = mul_u64_u64_div_u64(state->duty_cycle, 0xf, state->period); in clps711x_pwm_apply()
H A Dpwm-renesas-tpu.c265 period = mul_u64_u64_div_u64(clk_rate, period_ns, NSEC_PER_SEC); in tpu_pwm_config()
303 duty = mul_u64_u64_div_u64(clk_rate, duty_ns, in tpu_pwm_config()
H A Dpwm-stm32.c339 prescaler = mul_u64_u64_div_u64(period_ns, clk_get_rate(priv->clk), in stm32_pwm_config()
344 prd = mul_u64_u64_div_u64(period_ns, clk_get_rate(priv->clk), in stm32_pwm_config()
368 dty = mul_u64_u64_div_u64(duty_ns, clk_get_rate(priv->clk), in stm32_pwm_config()
H A Dpwm-imx1.c88 p = mul_u64_u64_div_u64(max, duty_ns, period_ns); in pwm_imx1_config()
H A Dpwm-pxa.c93 dc = mul_u64_u64_div_u64(pv + 1, duty_ns, period_ns); in pxa_pwm_config()
H A Dpwm-meson.c179 cnt = mul_u64_u64_div_u64(fin_freq, period, NSEC_PER_SEC); in meson_pwm_calc()
194 duty_cnt = mul_u64_u64_div_u64(fin_freq, duty, NSEC_PER_SEC); in meson_pwm_calc()
H A Dpwm-tegra.c167 rate = mul_u64_u64_div_u64(pc->clk_rate, period_ns, in tegra_pwm_config()
/linux/include/linux/
H A Dptp_clock_kernel.h279 *diff = mul_u64_u64_div_u64(base, (u64)scaled_ppm, 1000000ULL << 16); in diff_by_scaled_ppm()
H A Dmath64.h285 u64 mul_u64_u64_div_u64(u64 a, u64 mul, u64 div);
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dptp.c74 diff = mul_u64_u64_div_u64(diff, data->scaled_freq, in iwl_mvm_ptp_get_adj_time()
/linux/drivers/ptp/
H A Dptp_qoriq.c223 diff = mul_u64_u64_div_u64(adj, scaled_ppm, 32768000000); in ptp_qoriq_adjfine()
/linux/kernel/sched/
H A Dcputime.c584 stime = mul_u64_u64_div_u64(stime, rtime, stime + utime); in cputime_adjust()
/linux/block/
H A Dblk-throttle.c575 return mul_u64_u64_div_u64(bps_limit, (u64)jiffy_elapsed, (u64)HZ); in calculate_bytes_allowed()

12