/linux-6.6.21/tools/include/linux/ |
D | math64.h | 22 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) in mul_u64_u32_shr() function 46 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) in mul_u64_u32_shr() function
|
/linux-6.6.21/include/linux/ |
D | math64.h | 163 #ifndef mul_u64_u32_shr 164 static __always_inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() function 179 #ifndef mul_u64_u32_shr 180 static __always_inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) in mul_u64_u32_shr() function
|
/linux-6.6.21/drivers/gpu/drm/i915/ |
D | i915_hwmon.c | 101 return mul_u64_u32_shr(reg_value, scale_factor, nshift); in hwm_field_read_and_scale() 150 *energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY, in hwm_energy() 180 out = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in hwm_power1_max_interval_show() 215 max_win = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w); in hwm_power1_max_interval_store() 386 min = mul_u64_u32_shr(min, SF_POWER, hwmon->scl_shift_power); in hwm_power_max_read() 388 max = mul_u64_u32_shr(max, SF_POWER, hwmon->scl_shift_power); in hwm_power_max_read() 476 *val = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval), in hwm_power_read() 593 *val = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval), in hwm_curr_read()
|
/linux-6.6.21/arch/x86/kernel/cpu/ |
D | vmware.c | 150 ns = mul_u64_u32_shr(rdtsc(), vmware_cyc2ns.cyc2ns_mul, in vmware_sched_clock() 163 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul, in vmware_cyc2ns_setup() 241 return mul_u64_u32_shr(clock, vmware_cyc2ns.cyc2ns_mul, in vmware_steal_clock()
|
/linux-6.6.21/kernel/sched/ |
D | pelt.c | 53 val = mul_u64_u32_shr(val, runnable_avg_yN_inv[local_n], 32); in decay_load()
|
D | fair.c | 305 return mul_u64_u32_shr(delta_exec, fact, shift); in __calc_delta()
|
/linux-6.6.21/drivers/iio/accel/ |
D | adxl355_core.c | 281 odr = mul_u64_u32_shr(adxl355_odr_table[data->odr][0], MEGA, 0) + in adxl355_fill_3db_frequency_table() 286 div = div64_u64_rem(mul_u64_u32_shr(odr, multiplier, 0), in adxl355_fill_3db_frequency_table()
|
/linux-6.6.21/arch/x86/kernel/ |
D | tsc.c | 130 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in __cycles_2_ns() 172 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift); in __set_cyc2ns_scale()
|
/linux-6.6.21/drivers/perf/ |
D | riscv_pmu.c | 66 ns = mul_u64_u32_shr(rd->epoch_cyc, rd->mult, rd->shift); in arch_perf_update_userpage()
|
D | arm_pmuv3.c | 1410 ns = mul_u64_u32_shr(rd->epoch_cyc, rd->mult, rd->shift); in device_initcall()
|
/linux-6.6.21/tools/lib/perf/ |
D | mmap.c | 515 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift); in perf_mmap__read_self()
|
/linux-6.6.21/kernel/time/ |
D | clocksource.c | 855 nsec = mul_u64_u32_shr(delta, suspend_clocksource->mult, in clocksource_stop_suspend_timing()
|
/linux-6.6.21/drivers/clk/renesas/ |
D | rzg2l-cpg.c | 706 rate = mul_u64_u32_shr(parent_rate, (MDIV(val1) << 16) + KDIV(val1), in rzg2l_cpg_pll_clk_recalc_rate()
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | handlers.c | 687 …new_rate = DIV64_U64_ROUND_CLOSEST(mul_u64_u32_shr(pixel_clk, MSEC_PER_SEC, 0), mul_u32_u32(htotal… in vgpu_update_refresh_rate()
|