Searched refs:DIV_ROUND_CLOSEST (Results 1 – 14 of 14) sorted by relevance
| /src/sys/dev/clk/xilinx/ |
| H A D | zynqmp_clk_div.c | 41 #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 D | tegra210_cpufreq.c | 167 #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 D | jh7110_clk.c | 43 #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 D | tegra124_cpufreq.c | 210 #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 D | math.h | 51 #define DIV_ROUND_CLOSEST(x, divisor) (((x) + ((divisor) / 2)) / (divisor)) macro
|
| /src/sys/arm64/rockchip/ |
| H A D | rk_i2s.c | 131 #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 D | drm_os_freebsd.h | 226 #define DIV_ROUND_CLOSEST(n,d) (((n) + (d) / 2) / (d)) macro
|
| /src/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | init.c | 91 val = DIV_ROUND_CLOSEST(clamp_val(val, 60 * 1000, 130 * 1000), 1000); in mt7915_thermal_temp_store()
|
| /src/sys/contrib/dev/rtw89/ |
| H A D | rtw8852c.c | 1119 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 D | rtw8852b_common.c | 629 pwrofst = max(DIV_ROUND_CLOSEST(ext_loss_avg, 4) + 16, EDCCA_PWROFST_DEFAULT); in rtw8852bt_ext_loss_avg_update()
|
| H A D | rtw8922a.c | 1264 sco = DIV_ROUND_CLOSEST(1 << 18, central_freq); in rtw8922a_ctrl_ch()
|
| /src/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | init.c | 136 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 D | phy_n.c | 17746 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 D | rtw8822c.c | 3941 tmp_gs = DIV_ROUND_CLOSEST(tmp_gs, 10); in rtw8822c_dpk_cal_gs()
|