/linux/arch/x86/include/asm/ |
H A D | div64.h | 99 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 D | pwm-xilinx.c | 116 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 D | pwm-rz-mtu3.c | 333 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 D | math64.h | 256 #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 D | i8254.c | 122 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 D | hyperv.c | 1132 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
|
H A D | lapic.c | 1994 ns_remaining_new = mul_u64_u32_div(ns_remaining_old, in update_target_expiration()
|
H A D | x86.c | 2451 ratio = mul_u64_u32_div(1ULL << kvm_caps.tsc_scaling_ratio_frac_bits, in set_tsc_khz()
|
/linux/drivers/iio/dac/ |
H A D | ltc2664.c | 159 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 D | xe_gt_idle.c | 93 cur_residency = mul_u64_u32_div(cur_residency, gtidle->residency_multiplier, 1e6); in get_residency_ms()
|
H A D | xe_guc_submit.c | 912 #define ADJUST_FIVE_PERCENT(__t) mul_u64_u32_div(__t, 105, 100)
|
/linux/drivers/hwmon/ |
H A D | ltc2992.c | 618 *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 D | qaic_timesync.c | 18 #define QAIC_CONV_QTIMER_TO_US(qtimer) (mul_u64_u32_div(qtimer, 10, 192))
|
/linux/drivers/i2c/busses/ |
H A D | i2c-rzv2m.c | 115 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 D | intel_rc6.c | 855 return mul_u64_u32_div(time_hw, mul, div); in intel_rc6_residency_ns()
|
/linux/fs/ufs/ |
H A D | super.c | 1222 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 D | ad4695.c | 747 mul_u64_u32_div(val2, 1 << 16, in ad4695_write_raw()
|
/linux/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-isys-video.c | 783 pixel_rate = mul_u64_u32_div(link_freq, lanes * 2, bpp); in ipu6_isys_configure_stream_watermark()
|
/linux/kernel/time/ |
H A D | timekeeping.c | 1161 corr_real = mul_u64_u32_div in adjust_historical_crosststamp()
|
/linux/arch/x86/events/intel/ |
H A D | core.c | 2646 return mul_u64_u32_div(slots, val, 0xff); in icl_get_metrics_event_value()
|