Home
last modified time | relevance | path

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

/src/sys/dev/clk/xilinx/
H A Dzynqmp_clk_div.c41 #define DIV_ROUND_CLOSEST(n, d) (((n) + (d) / 2) / (d)) macro
91 div = DIV_ROUND_CLOSEST(fparent, *fout); in zynqmp_clk_div_set_freq()
/src/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c167 #define DIV_ROUND_CLOSEST(val, div) (((val) + ((div) / 2)) / (div)) macro
199 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
200 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
/src/sys/dev/clk/starfive/
H A Djh7110_clk.c43 #define DIV_ROUND_CLOSEST(n, d) (((n) + (d) / 2) / (d)) macro
224 divisor = MIN(MAX(DIV_ROUND_CLOSEST(fin, *fout), 1UL), sc_clk->d_max); in jh7110_clk_set_freq()
/src/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c210 #define DIV_ROUND_CLOSEST(val, div) (((val) + ((div) / 2)) / (div)) macro
241 uv = DIV_ROUND_CLOSEST(ent->c2 * sc->speedo_value, scale); in freq_to_voltage()
242 uv = DIV_ROUND_CLOSEST((uv + ent->c1) * sc->speedo_value, scale) + in freq_to_voltage()
/src/sys/compat/linuxkpi/common/include/linux/
H A Dmath.h51 #define DIV_ROUND_CLOSEST(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) macro
/src/sys/arm64/rockchip/
H A Drk_i2s.c131 #define DIV_ROUND_CLOSEST(n,d) (((n) + (d) / 2) / (d)) macro
613 bus_clock_div = DIV_ROUND_CLOSEST(clk_freq, bus_clk_freq); in rk_i2s_dai_set_chanspeed()
/src/sys/dev/drm2/
H A Ddrm_os_freebsd.h226 #define DIV_ROUND_CLOSEST(n,d) (((n) + (d) / 2) / (d)) macro
/src/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dinit.c91 val = DIV_ROUND_CLOSEST(clamp_val(val, 60 * 1000, 130 * 1000), 1000); in mt7915_thermal_temp_store()
/src/sys/contrib/dev/rtw89/
H A Drtw8852c.c1119 sco = DIV_ROUND_CLOSEST(1 << 18, central_freq); in rtw8852c_ctrl_ch()
1139 sco = DIV_ROUND_CLOSEST(1 << 18, central_freq); in rtw8852c_ctrl_ch()
H A Drtw8852b_common.c629 pwrofst = max(DIV_ROUND_CLOSEST(ext_loss_avg, 4) + 16, EDCCA_PWROFST_DEFAULT); in rtw8852bt_ext_loss_avg_update()
H A Drtw8922a.c1264 sco = DIV_ROUND_CLOSEST(1 << 18, central_freq); in rtw8922a_ctrl_ch()
/src/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dinit.c136 val = DIV_ROUND_CLOSEST(clamp_val(val, 40 * 1000, 130 * 1000), 1000); in mt7996_thermal_temp_store()
/src/sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_n.c17746 pwr_est = max(DIV_ROUND_CLOSEST(4 * num, den), -8); in wlc_phy_txpwrctrl_pwr_setup_nphy()
26954 i_pwr = DIV_ROUND_CLOSEST(est[rx_core].i_pwr, num_samps); in wlc_phy_rxcal_gainctrl_nphy_rev5()
26955 q_pwr = DIV_ROUND_CLOSEST(est[rx_core].q_pwr, num_samps); in wlc_phy_rxcal_gainctrl_nphy_rev5()
27637 i_pwr = DIV_ROUND_CLOSEST(est[rx_core].i_pwr, in wlc_phy_cal_rxiq_nphy_rev2()
27639 q_pwr = DIV_ROUND_CLOSEST(est[rx_core].q_pwr, in wlc_phy_cal_rxiq_nphy_rev2()
/src/sys/contrib/dev/rtw88/
H A Drtw8822c.c3941 tmp_gs = DIV_ROUND_CLOSEST(tmp_gs, 10); in rtw8822c_dpk_cal_gs()