Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
H A Dltc4282.c504 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_word()
509 *val = DIV64_U64_ROUND_CLOSEST(temp_2, in ltc4282_read_power_word()
527 *val = DIV64_U64_ROUND_CLOSEST(temp * MICRO, in ltc4282_read_power_byte()
562 *val = DIV64_U64_ROUND_CLOSEST(temp, U16_MAX * (u64)st->rsense); in ltc4282_read_energy()
626 power = DIV64_U64_ROUND_CLOSEST(temp, in ltc4282_write_power_byte()
641 code = DIV64_U64_ROUND_CLOSEST(temp * val, in ltc4282_write_power_word()
645 code = DIV64_U64_ROUND_CLOSEST(temp_2, temp); in ltc4282_write_power_word()
/linux/fs/ceph/
H A Ddebugfs.c134 _sq = _total > 0 ? DIV64_U64_ROUND_CLOSEST(sq, _total) : 0; \
217 avg = total > 0 ? DIV64_U64_ROUND_CLOSEST(sum, total) : 0; in metrics_size_show()
/linux/drivers/gpu/drm/i915/gvt/
H A Ddisplay.c590 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in setup_virtual_dp_monitor()
627 …vblank_timer->period = DIV64_U64_ROUND_CLOSEST(NSEC_PER_SEC * MSEC_PER_SEC, vblank_timer->vrefresh… in vgpu_update_vblank_emulation()
H A Dhandlers.c708 …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/include/linux/
H A Dmath64.h380 #define DIV64_U64_ROUND_CLOSEST(dividend, divisor) \ macro
/linux/drivers/pwm/
H A Dpwm-imx-tpm.c129 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
/linux/drivers/clk/sophgo/
H A Dclk-cv18xx-pll.c215 rate += DIV64_U64_ROUND_CLOSEST(dividend, factor); in fpll_calc_rate()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_snps_hdmi_pll.c106 DIV64_U64_ROUND_CLOSEST(DIV_ROUND_DOWN_ULL(adjusted_vco_clk1, curve_2_scaled1), in get_ana_cp_int_prop()
/linux/drivers/powercap/
H A Ddtpm.c96 child->weight = DIV64_U64_ROUND_CLOSEST( in __dtpm_rebalance_weight()
/linux/drivers/clk/renesas/
H A Drcar-gen3-cpg.c221 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
H A Drcar-gen4-cpg.c326 mult = DIV64_U64_ROUND_CLOSEST(rate * 32ULL * zclk->fixed_div, in cpg_z_clk_set_rate()
/linux/drivers/iio/dac/
H A Dadi-axi-dac.c318 raw = DIV64_U64_ROUND_CLOSEST((u64)freq * BIT(16), sample_rate); in __axi_dac_frequency_set()
/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c258 timer = DIV64_U64_ROUND_CLOSEST((u64)usec * clk_rate, in axienet_calc_cr()
283 *usec = DIV64_U64_ROUND_CLOSEST(timer * XAXIDMA_DELAY_SCALE, clk_rate); in axienet_coalesce_params()
/linux/drivers/iio/adc/
H A Dad4130.c889 DIV64_U64_ROUND_CLOSEST(dividend, divisor); in ad4130_freq_to_fs()
/linux/drivers/gpu/drm/bridge/
H A Dsamsung-dsim.c222 #define PS_TO_CYCLE(ps, hz) DIV64_U64_ROUND_CLOSEST(((ps) * (hz)), 1000000000000ULL)
/linux/block/
H A Dblk-iocost.c3066 unsigned vp10k = DIV64_U64_ROUND_CLOSEST( in ioc_pd_stat()