Home
last modified time | relevance | path

Searched refs:mul_u64_u32_div (Results 1 – 20 of 20) sorted by relevance

/linux/arch/x86/include/asm/
H A Ddiv64.h99 static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 div) in mul_u64_u32_div() function
103 #define mul_u64_u32_div mul_u64_u32_div macro
/linux/drivers/pwm/
H A Dpwm-xilinx.c116 period_cycles = mul_u64_u32_div(period_cycles, rate, NSEC_PER_SEC); in xilinx_pwm_apply()
123 duty_cycles = mul_u64_u32_div(duty_cycles, rate, NSEC_PER_SEC); in xilinx_pwm_apply()
H A Dpwm-rz-mtu3.c333 period_cycles = mul_u64_u32_div(state->period, rz_mtu3_pwm->rate, in rz_mtu3_pwm_config()
352 duty_cycles = mul_u64_u32_div(state->duty_cycle, rz_mtu3_pwm->rate, in rz_mtu3_pwm_config()
/linux/include/linux/
H A Dmath64.h256 #ifndef mul_u64_u32_div
257 static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor) in mul_u64_u32_div() function
/linux/arch/x86/kvm/
H A Di8254.c122 d = mul_u64_u32_div(t, KVM_PIT_FREQ, NSEC_PER_SEC); in pit_get_count()
149 d = mul_u64_u32_div(t, KVM_PIT_FREQ, NSEC_PER_SEC); in pit_get_out()
332 interval = mul_u64_u32_div(val, NSEC_PER_SEC, KVM_PIT_FREQ); in create_pit_timer()
H A Dhyperv.c1132 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
H A Dlapic.c1994 ns_remaining_new = mul_u64_u32_div(ns_remaining_old, in update_target_expiration()
H A Dx86.c2451 ratio = mul_u64_u32_div(1ULL << kvm_caps.tsc_scaling_ratio_frac_bits, in set_tsc_khz()
/linux/drivers/iio/dac/
H A Dltc2664.c159 return mul_u64_u32_div(4800, fs, st->rfsadj_ohms); in ltc2672_scale_get()
161 return mul_u64_u32_div(LTC2672_SCALE_MULTIPLIER(span), fs, st->rfsadj_ohms); in ltc2672_scale_get()
/linux/drivers/gpu/drm/xe/
H A Dxe_gt_idle.c93 cur_residency = mul_u64_u32_div(cur_residency, gtidle->residency_multiplier, 1e6); in get_residency_ms()
H A Dxe_guc_submit.c912 #define ADJUST_FIVE_PERCENT(__t) mul_u64_u32_div(__t, 105, 100)
/linux/drivers/hwmon/
H A Dltc2992.c618 *val = mul_u64_u32_div(reg_val, LTC2992_VADC_UV_LSB * LTC2992_IADC_NANOV_LSB, in ltc2992_get_power()
628 reg_val = mul_u64_u32_div(val, st->r_sense_uohm[channel] * 1000, in ltc2992_set_power()
/linux/drivers/accel/qaic/
H A Dqaic_timesync.c18 #define QAIC_CONV_QTIMER_TO_US(qtimer) (mul_u64_u32_div(qtimer, 10, 192))
/linux/drivers/i2c/busses/
H A Di2c-rzv2m.c115 trf_pclks = mul_u64_u32_div(pclk_hz, trf_ns, NSEC_PER_SEC); in rzv2m_i2c_clock_calculate()
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rc6.c855 return mul_u64_u32_div(time_hw, mul, div); in intel_rc6_residency_ns()
/linux/fs/ufs/
H A Dsuper.c1222 uspi->s_root_blocks = mul_u64_u32_div(uspi->s_dsize, in ufs_fill_super()
1230 uspi->s_space_to_time = mul_u64_u32_div(uspi->s_dsize, in ufs_fill_super()
/linux/drivers/iio/adc/
H A Dad4695.c747 mul_u64_u32_div(val2, 1 << 16, in ad4695_write_raw()
/linux/drivers/media/pci/intel/ipu6/
H A Dipu6-isys-video.c783 pixel_rate = mul_u64_u32_div(link_freq, lanes * 2, bpp); in ipu6_isys_configure_stream_watermark()
/linux/kernel/time/
H A Dtimekeeping.c1161 corr_real = mul_u64_u32_div in adjust_historical_crosststamp()
/linux/arch/x86/events/intel/
H A Dcore.c2646 return mul_u64_u32_div(slots, val, 0xff); in icl_get_metrics_event_value()