Searched refs:mul_u64_u32_shr (Results 1 - 16 of 16) sorted by relevance

/linux-master/tools/include/linux/
H A Dmath64.h22 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) function
46 static inline u64 mul_u64_u32_shr(u64 a, u32 b, unsigned int shift) function
/linux-master/include/linux/
H A Dmath64.h163 #ifndef mul_u64_u32_shr
164 static __always_inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) function
168 #endif /* mul_u64_u32_shr */
179 #ifndef mul_u64_u32_shr
180 static __always_inline u64 mul_u64_u32_shr(u64 a, u32 mul, unsigned int shift) function
194 #endif /* mul_u64_u32_shr */
/linux-master/drivers/gpu/drm/xe/
H A Dxe_hwmon.c167 *value = mul_u64_u32_shr(reg_val, SF_POWER, hwmon->scl_shift_power);
171 min = mul_u64_u32_shr(min, SF_POWER, hwmon->scl_shift_power);
173 max = mul_u64_u32_shr(max, SF_POWER, hwmon->scl_shift_power);
218 *value = mul_u64_u32_shr(reg_val, SF_POWER, hwmon->scl_shift_power);
236 * the hwmon API. Using x86_64 128 bit arithmetic (see mul_u64_u32_shr()),
257 *energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY,
296 out = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w);
334 max_win = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w);
445 *value = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval),
/linux-master/arch/x86/kernel/cpu/
H A Dvmware.c150 ns = mul_u64_u32_shr(rdtsc(), vmware_cyc2ns.cyc2ns_mul,
163 d->cyc2ns_offset = mul_u64_u32_shr(tsc_now, d->cyc2ns_mul,
241 return mul_u64_u32_shr(clock, vmware_cyc2ns.cyc2ns_mul,
/linux-master/drivers/gpu/drm/i915/
H A Di915_hwmon.c102 return mul_u64_u32_shr(reg_value, scale_factor, nshift);
120 * the hwmon API. Using x86_64 128 bit arithmetic (see mul_u64_u32_shr()),
151 *energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY,
182 out = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w);
217 max_win = mul_u64_u32_shr(tau4, SF_TIME, hwmon->scl_shift_time + x_w);
388 min = mul_u64_u32_shr(min, SF_POWER, hwmon->scl_shift_power);
390 max = mul_u64_u32_shr(max, SF_POWER, hwmon->scl_shift_power);
477 *val = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval),
594 *val = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval),
/linux-master/kernel/sched/
H A Dpelt.c53 val = mul_u64_u32_shr(val, runnable_avg_yN_inv[local_n], 32);
H A Dfair.c290 return mul_u64_u32_shr(delta_exec, fact, shift);
/linux-master/drivers/iio/accel/
H A Dadxl355_core.c281 odr = mul_u64_u32_shr(adxl355_odr_table[data->odr][0], MEGA, 0) +
286 div = div64_u64_rem(mul_u64_u32_shr(odr, multiplier, 0),
/linux-master/tools/lib/perf/
H A Dmmap.c529 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift);
/linux-master/drivers/perf/
H A Driscv_pmu.c66 ns = mul_u64_u32_shr(rd->epoch_cyc, rd->mult, rd->shift);
H A Darm_pmuv3.c1463 ns = mul_u64_u32_shr(rd->epoch_cyc, rd->mult, rd->shift);
/linux-master/arch/x86/kernel/
H A Dtsc.c130 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift);
172 mul_u64_u32_shr(tsc_now, data.cyc2ns_mul, data.cyc2ns_shift);
/linux-master/drivers/regulator/
H A Dmax5970-regulator.c93 *val = mul_u64_u32_shr(*val, ddata->mon_rng, 10);
/linux-master/drivers/clk/renesas/
H A Drzg2l-cpg.c976 rate = mul_u64_u32_shr(parent_rate, (MDIV(val1) << 16) + KDIV(val1),
1008 rate = mul_u64_u32_shr(parent_rate, 4096 * nir + nfr, 12);
/linux-master/kernel/time/
H A Dclocksource.c853 nsec = mul_u64_u32_shr(delta, suspend_clocksource->mult,
/linux-master/drivers/gpu/drm/i915/gvt/
H A Dhandlers.c687 new_rate = DIV64_U64_ROUND_CLOSEST(mul_u64_u32_shr(pixel_clk, MSEC_PER_SEC, 0), mul_u32_u32(htotal + 1, vtotal + 1));

Completed in 269 milliseconds