Searched refs:DIV64_U64_ROUND_CLOSEST (Results 1 – 14 of 14) sorted by relevance
/linux-6.6.21/fs/ceph/ |
D | debugfs.c | 136 _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-6.6.21/drivers/gpu/drm/i915/gt/ |
D | selftest_rps.c | 682 (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()
|
/linux-6.6.21/include/linux/ |
D | math64.h | 314 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ macro
|
/linux-6.6.21/drivers/pwm/ |
D | pwm-sifive.c | 159 frac = DIV64_U64_ROUND_CLOSEST(num, state->period); in pwm_sifive_apply()
|
D | pwm-imx-tpm.c | 127 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | display.c | 574 …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()
|
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()
|
/linux-6.6.21/drivers/clk/renesas/ |
D | rcar-gen4-cpg.c | 247 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
|
D | rcar-gen3-cpg.c | 227 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
|
/linux-6.6.21/drivers/powercap/ |
D | dtpm.c | 96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight()
|
/linux-6.6.21/drivers/iio/adc/ |
D | ad4130.c | 851 DIV64_U64_ROUND_CLOSEST(dividend, divisor); in ad4130_freq_to_fs()
|
/linux-6.6.21/drivers/gpu/drm/bridge/ |
D | samsung-dsim.c | 224 #define PS_TO_CYCLE(ps, hz) DIV64_U64_ROUND_CLOSEST(((ps) * (hz)), 1000000000000ULL)
|
/linux-6.6.21/drivers/net/ethernet/xilinx/ |
D | xilinx_axienet_main.c | 220 result = DIV64_U64_ROUND_CLOSEST((u64)coalesce_usec * clk_rate, in axienet_usec_to_timer()
|
/linux-6.6.21/block/ |
D | blk-iocost.c | 3046 unsigned vp10k = DIV64_U64_ROUND_CLOSEST( in ioc_pd_stat()
|