Home
last modified time | relevance | path

Searched refs:qdbm (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_hal.h224 int wlc_phy_txpower_get(struct brcms_phy_pub *ppi, uint *qdbm, bool *override);
225 int wlc_phy_txpower_set(struct brcms_phy_pub *ppi, uint qdbm, bool override);
Dphy_cmn.c1301 int wlc_phy_txpower_get(struct brcms_phy_pub *ppi, uint *qdbm, bool *override) in wlc_phy_txpower_get() argument
1305 *qdbm = pi->tx_user_target[0]; in wlc_phy_txpower_get()
1361 int wlc_phy_txpower_set(struct brcms_phy_pub *ppi, uint qdbm, bool override) in wlc_phy_txpower_set() argument
1366 if (qdbm > 127) in wlc_phy_txpower_set()
1370 pi->tx_user_target[i] = (u8) qdbm; in wlc_phy_txpower_set()
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c2140 u32 qdbm = 127; in brcmf_cfg80211_set_tx_power() local
2156 qdbm = MBM_TO_DBM(4 * mbm); in brcmf_cfg80211_set_tx_power()
2157 if (qdbm > 127) in brcmf_cfg80211_set_tx_power()
2158 qdbm = 127; in brcmf_cfg80211_set_tx_power()
2159 qdbm |= WL_TXPWR_OVERRIDE; in brcmf_cfg80211_set_tx_power()
2172 err = brcmf_fil_iovar_int_set(ifp, "qtxpower", qdbm); in brcmf_cfg80211_set_tx_power()
2177 brcmf_dbg(TRACE, "Exit %d (qdbm)\n", qdbm & ~WL_TXPWR_OVERRIDE); in brcmf_cfg80211_set_tx_power()
2188 s32 qdbm = 0; in brcmf_cfg80211_get_tx_power() local
2195 err = brcmf_fil_iovar_int_get(vif->ifp, "qtxpower", &qdbm); in brcmf_cfg80211_get_tx_power()
2200 *dbm = (qdbm & ~WL_TXPWR_OVERRIDE) / 4; in brcmf_cfg80211_get_tx_power()
[all …]
/Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dmain.c7630 uint qdbm; in brcms_c_set_tx_power() local
7633 qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); in brcms_c_set_tx_power()
7634 return wlc_phy_txpower_set(wlc->band->pi, qdbm, false); in brcms_c_set_tx_power()
7639 uint qdbm; in brcms_c_get_tx_power() local
7642 wlc_phy_txpower_get(wlc->band->pi, &qdbm, &override); in brcms_c_get_tx_power()
7645 return (int)(qdbm / BRCMS_TXPWR_DB_FACTOR); in brcms_c_get_tx_power()