Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c2295 u32 qdbm = 127; in brcmf_cfg80211_set_tx_power() local
2311 qdbm = MBM_TO_DBM(4 * mbm); in brcmf_cfg80211_set_tx_power()
2312 if (qdbm > 127) in brcmf_cfg80211_set_tx_power()
2313 qdbm = 127; in brcmf_cfg80211_set_tx_power()
2314 qdbm |= WL_TXPWR_OVERRIDE; in brcmf_cfg80211_set_tx_power()
2327 err = brcmf_fil_iovar_int_set(ifp, "qtxpower", qdbm); in brcmf_cfg80211_set_tx_power()
2332 brcmf_dbg(TRACE, "Exit %d (qdbm)\n", qdbm & ~WL_TXPWR_OVERRIDE); in brcmf_cfg80211_set_tx_power()
2343 s32 qdbm = 0; in brcmf_cfg80211_get_tx_power() local
2350 err = brcmf_fil_iovar_int_get(vif->ifp, "qtxpower", &qdbm); in brcmf_cfg80211_get_tx_power()
2355 *dbm = (qdbm & ~WL_TXPWR_OVERRIDE) / 4; in brcmf_cfg80211_get_tx_power()
[all …]
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dmain.c7577 uint qdbm; in brcms_c_set_tx_power() local
7580 qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); in brcms_c_set_tx_power()
7581 return wlc_phy_txpower_set(wlc->band->pi, qdbm, false); in brcms_c_set_tx_power()
7586 uint qdbm; in brcms_c_get_tx_power() local
7589 wlc_phy_txpower_get(wlc->band->pi, &qdbm, &override); in brcms_c_get_tx_power()
7592 return (int)(qdbm / BRCMS_TXPWR_DB_FACTOR); in brcms_c_get_tx_power()