Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_rps.c682 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_cs()
707 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * count, in live_rps_frequency_cs()
820 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * max.count, in live_rps_frequency_srm()
845 (int)DIV64_U64_ROUND_CLOSEST(100 * min.freq * count, in live_rps_frequency_srm()
/openbmc/linux/fs/ceph/
H 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()
/openbmc/linux/include/linux/
H A Dmath64.h314 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ macro
/openbmc/linux/drivers/pwm/
H A Dpwm-sifive.c159 frac = DIV64_U64_ROUND_CLOSEST(num, state->period); in pwm_sifive_apply()
H A Dpwm-imx-tpm.c129 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Ddisplay.c574 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in setup_virtual_dp_monitor()
611 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in vgpu_update_vblank_emulation()
H A Dhandlers.c687 …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()
/openbmc/linux/drivers/clk/renesas/
H A Drcar-gen4-cpg.c247 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
H A Drcar-gen3-cpg.c227 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
/openbmc/linux/drivers/powercap/
H A Ddtpm.c96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dsamsung-dsim.c224 #define PS_TO_CYCLE(ps, hz) DIV64_U64_ROUND_CLOSEST(((ps) * (hz)), 1000000000000ULL)
/openbmc/linux/drivers/iio/adc/
H A Dad4130.c851 DIV64_U64_ROUND_CLOSEST(dividend, divisor); in ad4130_freq_to_fs()
/openbmc/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c220 result = DIV64_U64_ROUND_CLOSEST((u64)coalesce_usec * clk_rate, in axienet_usec_to_timer()
/openbmc/linux/block/
H A Dblk-iocost.c3059 unsigned vp10k = DIV64_U64_ROUND_CLOSEST( in ioc_pd_stat()