Home
last modified time | relevance | path

Searched refs:txpwr (Results 1 – 20 of 20) sorted by relevance

/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dchannel.c230 struct brcms_cm_info *wlc_cm, struct txpwr_limits *txpwr, in brcms_c_channel_min_txpower_limits_with_local_constraint() argument
237 txpwr->cck[j] = min(txpwr->cck[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
241 txpwr->ofdm[j] = min(txpwr->ofdm[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
245 txpwr->ofdm_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
246 min(txpwr->ofdm_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
250 txpwr->ofdm_40_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
251 min(txpwr->ofdm_40_siso[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
255 txpwr->ofdm_40_cdd[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
256 min(txpwr->ofdm_40_cdd[j], local_constraint_qdbm); in brcms_c_channel_min_txpower_limits_with_local_constraint()
260 txpwr->mcs_20_siso[j] = in brcms_c_channel_min_txpower_limits_with_local_constraint()
[all …]
Dchannel.h42 struct txpwr_limits *txpwr);
Dpub.h324 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
Dmain.h640 bool mute, struct txpwr_limits *txpwr);
Dmain.c3832 bool mute_tx, struct txpwr_limits *txpwr) in brcms_b_set_chanspec() argument
3863 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, in brcms_b_set_chanspec()
3868 wlc_phy_txpower_limit_set(wlc_hw->band->pi, txpwr, chanspec); in brcms_b_set_chanspec()
7575 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr) in brcms_c_set_tx_power() argument
7580 qdbm = min_t(uint, txpwr * BRCMS_TXPWR_DB_FACTOR, 0xff); in brcms_c_set_tx_power()
/drivers/net/wireless/mediatek/mt76/
Dmt76x02_txrx.c96 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr, s8 max_txpwr_adj) in mt76x02_tx_get_txpwr_adj() argument
98 txpwr = min_t(s8, txpwr, dev->txpower_conf); in mt76x02_tx_get_txpwr_adj()
99 txpwr -= (dev->target_power + dev->target_power_delta[0]); in mt76x02_tx_get_txpwr_adj()
100 txpwr = min_t(s8, txpwr, max_txpwr_adj); in mt76x02_tx_get_txpwr_adj()
104 else if (txpwr >= 0) in mt76x02_tx_get_txpwr_adj()
105 return min_t(s8, txpwr, 7); in mt76x02_tx_get_txpwr_adj()
107 return (txpwr < -16) ? 8 : (txpwr + 32) / 2; in mt76x02_tx_get_txpwr_adj()
110 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr) in mt76x02_tx_set_txpwr_auto() argument
114 txpwr_adj = mt76x02_tx_get_txpwr_adj(dev, txpwr, in mt76x02_tx_set_txpwr_auto()
Dmt76x02.h164 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr,
167 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
/drivers/net/wireless/mediatek/mt76/mt7921/
Ddebugfs.c203 txpwr.data[TXPWR_USER].rate, \
204 ARRAY_SIZE(txpwr.data[TXPWR_USER].rate)); \
206 txpwr.data[TXPWR_EEPROM].rate, \
207 ARRAY_SIZE(txpwr.data[TXPWR_EEPROM].rate)); \
209 txpwr.data[TXPWR_MAC].rate, \
210 ARRAY_SIZE(txpwr.data[TXPWR_MAC].rate)); \
217 struct mt7921_txpwr txpwr; in mt7921_txpwr() local
221 ret = mt7921_get_txpwr_info(dev, &txpwr); in mt7921_txpwr()
227 seq_printf(s, "Tx power table (channel %d)\n", txpwr.ch); in mt7921_txpwr()
Dmcu.h293 struct mt7921_txpwr txpwr; member
Dmcu.c1435 int mt7921_get_txpwr_info(struct mt7921_dev *dev, struct mt7921_txpwr *txpwr) in mt7921_get_txpwr_info() argument
1451 memcpy(txpwr, &event->txpwr, sizeof(event->txpwr)); in mt7921_get_txpwr_info()
Dmt7921.h386 int mt7921_get_txpwr_info(struct mt7921_dev *dev, struct mt7921_txpwr *txpwr);
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
Dphy_cmn.c1312 struct txpwr_limits *txpwr) in wlc_phy_txpower_target_set() argument
1318 &txpwr->cck[0], BRCMS_NUM_RATES_CCK); in wlc_phy_txpower_target_set()
1321 &txpwr->ofdm[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set()
1323 &txpwr->ofdm_cdd[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set()
1326 &txpwr->ofdm_40_siso[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set()
1328 &txpwr->ofdm_40_cdd[0], BRCMS_NUM_RATES_OFDM); in wlc_phy_txpower_target_set()
1331 &txpwr->mcs_20_siso[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set()
1333 &txpwr->mcs_20_cdd[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set()
1335 &txpwr->mcs_20_stbc[0], BRCMS_NUM_RATES_MCS_1_STREAM); in wlc_phy_txpower_target_set()
1337 &txpwr->mcs_20_mimo[0], BRCMS_NUM_RATES_MCS_2_STREAM); in wlc_phy_txpower_target_set()
[all …]
Dphy_lcn.c4795 s8 txpwr = 0; in wlc_phy_txpwr_srom_read_lcnphy() local
4824 txpwr = sprom->core_pwr_info[0].maxpwr_2g; in wlc_phy_txpwr_srom_read_lcnphy()
4825 pi->tx_srom_max_2g = txpwr; in wlc_phy_txpwr_srom_read_lcnphy()
4835 uint max_pwr_chan = txpwr; in wlc_phy_txpwr_srom_read_lcnphy()
4851 pi->tx_srom_max_rate_2g[i] = txpwr; in wlc_phy_txpwr_srom_read_lcnphy()
4854 pi->tx_srom_max_rate_2g[i] = txpwr - in wlc_phy_txpwr_srom_read_lcnphy()
4864 txpwr - ((offset_mcs & 0xf) * 2); in wlc_phy_txpwr_srom_read_lcnphy()
/drivers/net/wireless/realtek/rtl818x/rtl8187/
Ddev.c1433 u16 txpwr, reg; in rtl8187_probe() local
1509 &txpwr); in rtl8187_probe()
1510 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1511 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1515 &txpwr); in rtl8187_probe()
1516 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1517 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1583 &txpwr); in rtl8187_probe()
1584 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1585 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
[all …]
/drivers/net/wireless/realtek/rtl818x/rtl8180/
Ddev.c1688 u16 txpwr; in rtl8180_eeprom_read() local
1690 &txpwr); in rtl8180_eeprom_read()
1691 priv->channels[i].hw_value = txpwr & 0xFF; in rtl8180_eeprom_read()
1692 priv->channels[i + 1].hw_value = txpwr >> 8; in rtl8180_eeprom_read()
1698 u16 txpwr; in rtl8180_eeprom_read() local
1699 eeprom_93cx6_read(&eeprom, 0x20 + (i >> 1), &txpwr); in rtl8180_eeprom_read()
1700 priv->channels[i].hw_value |= (txpwr & 0xFF) << 8; in rtl8180_eeprom_read()
1701 priv->channels[i + 1].hw_value |= txpwr & 0xFF00; in rtl8180_eeprom_read()
/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c198 char txpwr[] = {"marvell,00_txpwrlimit"}; in mwifiex_dnld_txpwr_table() local
200 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table()
201 mwifiex_dnld_dt_cfgdata(priv, priv->adapter->dt_node, txpwr); in mwifiex_dnld_txpwr_table()
/drivers/net/wireless/quantenna/qtnfmac/
Dqlink.h858 __le32 txpwr; member
1222 __le32 txpwr; member
Dcommands.c2620 *dbm = MBM_TO_DBM(le32_to_cpu(resp->txpwr)); in qtnf_cmd_get_tx_power()
2647 cmd->txpwr = cpu_to_le32(mbm); in qtnf_cmd_set_tx_power()
/drivers/net/wireless/ath/ath11k/
Dmac.c3381 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local
3383 if (sta->txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr()
3384 txpwr = 0; in ath11k_mac_op_sta_set_txpwr()
3386 txpwr = sta->txpwr.power; in ath11k_mac_op_sta_set_txpwr()
3387 if (!txpwr) in ath11k_mac_op_sta_set_txpwr()
3391 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr()
3397 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()
/drivers/net/wireless/ath/ath10k/
Dmac.c6810 s16 txpwr; in ath10k_sta_set_txpwr() local
6812 if (sta->txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath10k_sta_set_txpwr()
6813 txpwr = 0; in ath10k_sta_set_txpwr()
6815 txpwr = sta->txpwr.power; in ath10k_sta_set_txpwr()
6816 if (!txpwr) in ath10k_sta_set_txpwr()
6820 if (txpwr > ATH10K_TX_POWER_MAX_VAL || txpwr < ATH10K_TX_POWER_MIN_VAL) in ath10k_sta_set_txpwr()
6826 ar->wmi.peer_param->use_fixed_power, txpwr); in ath10k_sta_set_txpwr()