Home
last modified time | relevance | path

Searched refs:DIV64_U64_ROUND_CLOSEST (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/hwmon/
A Dltc4282.c513 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_word()
518 *val = DIV64_U64_ROUND_CLOSEST(temp_2, in ltc4282_read_power_word()
536 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_byte()
571 *val = DIV64_U64_ROUND_CLOSEST(temp, U16_MAX * (u64)st->rsense); in ltc4282_read_energy()
633 power = DIV64_U64_ROUND_CLOSEST(temp, in ltc4282_write_power_byte()
648 code = DIV64_U64_ROUND_CLOSEST(temp * val, in ltc4282_write_power_word()
652 code = DIV64_U64_ROUND_CLOSEST(temp_2, temp); in ltc4282_write_power_word()
/linux/fs/ceph/
A Ddebugfs.c136 _sq = _total > 0 ? DIV64_U64_ROUND_CLOSEST(sq, _total) : 0; \
219 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metrics_size_show()
/linux/drivers/gpu/drm/i915/gt/
A Dselftest_rps.c684 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_cs()
709 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * count, in live_rps_frequency_cs()
822 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_srm()
847 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * count, in live_rps_frequency_srm()
/linux/include/linux/
A Dmath64.h323 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ macro
/linux/drivers/pwm/
A Dpwm-sifive.c159 frac = DIV64_U64_ROUND_CLOSEST(num, state->period); in pwm_sifive_apply()
A Dpwm-imx-tpm.c129 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
/linux/drivers/gpu/drm/i915/gvt/
A Ddisplay.c581 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in setup_virtual_dp_monitor()
618 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in vgpu_update_vblank_emulation()
A Dhandlers.c693 …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()
/linux/drivers/clk/sophgo/
A Dclk-cv18xx-pll.c215 rate += DIV64_U64_ROUND_CLOSEST(dividend, factor); in fpll_calc_rate()
/linux/drivers/powercap/
A Ddtpm.c96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight()
/linux/drivers/clk/renesas/
A Drcar-gen3-cpg.c227 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
A Drcar-gen4-cpg.c330 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
/linux/drivers/iio/dac/
A Dadi-axi-dac.c267 raw = DIV64_U64_ROUND_CLOSEST((u64)freq * BIT(16), sample_rate); in __axi_dac_frequency_set()
/linux/drivers/iio/adc/
A Dad4130.c851 DIV64_U64_ROUND_CLOSEST(dividend, divisor); in ad4130_freq_to_fs()
/linux/drivers/gpu/drm/bridge/
A Dsamsung-dsim.c225 #define PS_TO_CYCLE(ps, hz) DIV64_U64_ROUND_CLOSEST(((ps) * (hz)), 1000000000000ULL)
/linux/drivers/net/ethernet/xilinx/
A Dxilinx_axienet_main.c240 result = DIV64_U64_ROUND_CLOSEST((u64)coalesce_usec * clk_rate, in axienet_usec_to_timer()
/linux/block/
A Dblk-iocost.c3052 unsigned vp10k = DIV64_U64_ROUND_CLOSEST( in ioc_pd_stat()

Completed in 60 milliseconds