Searched refs:mul_u64_u32_div (Results 1 – 14 of 14) sorted by relevance
/linux-6.6.21/arch/x86/include/asm/ |
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-6.6.21/include/linux/ |
D | math64.h | 260 #ifndef mul_u64_u32_div 261 static inline u64 mul_u64_u32_div(u64 a, u32 mul, u32 divisor) in mul_u64_u32_div() function
|
/linux-6.6.21/drivers/pwm/ |
D | pwm-xilinx.c | 121 period_cycles = mul_u64_u32_div(period_cycles, rate, NSEC_PER_SEC); in xilinx_pwm_apply() 128 duty_cycles = mul_u64_u32_div(duty_cycles, rate, NSEC_PER_SEC); in xilinx_pwm_apply()
|
D | pwm-rz-mtu3.c | 335 period_cycles = mul_u64_u32_div(state->period, rz_mtu3_pwm->rate, in rz_mtu3_pwm_config() 354 duty_cycles = mul_u64_u32_div(state->duty_cycle, rz_mtu3_pwm->rate, in rz_mtu3_pwm_config()
|
/linux-6.6.21/arch/x86/kvm/ |
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()
|
D | hyperv.c | 1132 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift), in compute_tsc_page_parameters()
|
D | lapic.c | 1981 ns_remaining_new = mul_u64_u32_div(ns_remaining_old, in update_target_expiration()
|
D | x86.c | 2455 ratio = mul_u64_u32_div(1ULL << kvm_caps.tsc_scaling_ratio_frac_bits, in set_tsc_khz()
|
/linux-6.6.21/drivers/hwmon/ |
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-6.6.21/drivers/i2c/busses/ |
D | i2c-rzv2m.c | 115 trf_pclks = mul_u64_u32_div(pclk_hz, trf_ns, NSEC_PER_SEC); in rzv2m_i2c_clock_calculate()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_rc6.c | 858 return mul_u64_u32_div(time_hw, mul, div); in intel_rc6_residency_ns()
|
/linux-6.6.21/fs/ufs/ |
D | super.c | 1221 uspi->s_root_blocks = mul_u64_u32_div(uspi->s_dsize, in ufs_fill_super() 1229 uspi->s_space_to_time = mul_u64_u32_div(uspi->s_dsize, in ufs_fill_super()
|
/linux-6.6.21/kernel/time/ |
D | timekeeping.c | 1159 corr_real = mul_u64_u32_div in adjust_historical_crosststamp()
|
/linux-6.6.21/arch/x86/events/intel/ |
D | core.c | 2581 return mul_u64_u32_div(slots, val, 0xff); in icl_get_metrics_event_value()
|