Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/mediatek/mt76/
H A 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()
H A Dmt76x02.h180 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr,
183 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Ddebugfs.c86 txpwr->rate, \
87 ARRAY_SIZE(txpwr->rate), \
92 mt7925_eht_txpwr(struct seq_file *s, struct mt7925_txpwr *txpwr, u8 band_idx) in mt7925_eht_txpwr() argument
121 struct mt7925_txpwr *txpwr = NULL; in mt7925_txpwr() local
125 txpwr = devm_kmalloc(dev->mt76.dev, sizeof(*txpwr), GFP_KERNEL); in mt7925_txpwr()
127 if (!txpwr) in mt7925_txpwr()
131 ret = mt7925_get_txpwr_info(dev, band_idx, txpwr); in mt7925_txpwr()
174 mt7925_eht_txpwr(s, txpwr, band_idx); in mt7925_txpwr()
177 devm_kfree(dev->mt76.dev, txpwr); in mt7925_txpwr()
H A Dmcu.h86 struct mt7925_txpwr txpwr; member
H A Dmcu.c2015 int mt7925_get_txpwr_info(struct mt792x_dev *dev, u8 band_idx, struct mt7925_txpwr *txpwr) in mt7925_get_txpwr_info() argument
2035 memcpy(txpwr, &event->txpwr, sizeof(event->txpwr)); in mt7925_get_txpwr_info()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Ddebugfs.c80 txpwr.data[TXPWR_USER].rate, \
81 ARRAY_SIZE(txpwr.data[TXPWR_USER].rate)); \
83 txpwr.data[TXPWR_EEPROM].rate, \
84 ARRAY_SIZE(txpwr.data[TXPWR_EEPROM].rate)); \
86 txpwr.data[TXPWR_MAC].rate, \
87 ARRAY_SIZE(txpwr.data[TXPWR_MAC].rate)); \
94 struct mt7921_txpwr txpwr; in mt7921_txpwr() local
98 ret = mt7921_get_txpwr_info(dev, &txpwr); in mt7921_txpwr()
104 seq_printf(s, "Tx power table (channel %d)\n", txpwr.ch); in mt7921_txpwr()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_cmn.c1412 wlc_phy_txpower_reg_limit_calc(struct brcms_phy *pi, struct txpwr_limits *txpwr, in wlc_phy_txpower_reg_limit_calc() argument
1421 pi->txpwr_limit[rate1] = txpwr->cck[rate2]; in wlc_phy_txpower_reg_limit_calc()
1425 pi->txpwr_limit[rate1] = txpwr->ofdm[rate2]; in wlc_phy_txpower_reg_limit_calc()
1433 txpwr_ptr1 = txpwr->mcs_20_siso; in wlc_phy_txpower_reg_limit_calc()
1434 txpwr_ptr2 = txpwr->ofdm; in wlc_phy_txpower_reg_limit_calc()
1439 txpwr_ptr1 = txpwr->mcs_20_cdd; in wlc_phy_txpower_reg_limit_calc()
1440 txpwr_ptr2 = txpwr->ofdm_cdd; in wlc_phy_txpower_reg_limit_calc()
1445 txpwr_ptr1 = txpwr->mcs_40_siso; in wlc_phy_txpower_reg_limit_calc()
1446 txpwr_ptr2 = txpwr->ofdm_40_siso; in wlc_phy_txpower_reg_limit_calc()
1452 txpwr_ptr1 = txpwr->mcs_40_cdd; in wlc_phy_txpower_reg_limit_calc()
[all …]
H A 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()
/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A Ddev.c1440 u16 txpwr, reg; in rtl8187_probe() local
1516 &txpwr); in rtl8187_probe()
1517 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1518 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1522 &txpwr); in rtl8187_probe()
1523 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1524 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1590 &txpwr); in rtl8187_probe()
1591 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1592 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dsar.c633 u64 instant_txpwr, txpwr; in rtw89_tas_history_update() local
641 txpwr = instant_txpwr * 100; in rtw89_tas_history_update()
644 txpwr = instant_txpwr * tx_ratio; in rtw89_tas_history_update()
647 tas->total_txpwr += txpwr - tas->txpwr_history[tas->txpwr_head_idx]; in rtw89_tas_history_update()
654 tas->txpwr_history[tas->txpwr_tail_idx] = txpwr; in rtw89_tas_history_update()
659 rtw89_linear_to_db_quarter(div_u64(txpwr, PERCENT))); in rtw89_tas_history_update()
H A Dphy.c3551 s16 txpwr; in rtw89_phy_c2h_rfk_log_tas_pwr() local
3558 txpwr = (s16)le16_to_cpu(rf_tas->txpwr_history[i]); in rtw89_phy_c2h_rfk_log_tas_pwr()
3559 linear += rtw89_db_quarter_to_linear(txpwr); in rtw89_phy_c2h_rfk_log_tas_pwr()
3562 "tas: index: %u, txpwr: %d\n", i, txpwr); in rtw89_phy_c2h_rfk_log_tas_pwr()
H A Dfw.h4107 struct __rtw89_fw_txpwr_element txpwr; member
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dchannel.h42 struct txpwr_limits *txpwr);
H A Dpub.h324 int brcms_c_set_tx_power(struct brcms_c_info *wlc, int txpwr);
/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Ddev.c1694 u16 txpwr; in rtl8180_eeprom_read() local
1696 &txpwr); in rtl8180_eeprom_read()
1697 priv->channels[i].hw_value = txpwr & 0xFF; in rtl8180_eeprom_read()
1698 priv->channels[i + 1].hw_value = txpwr >> 8; in rtl8180_eeprom_read()
1704 u16 txpwr; in rtl8180_eeprom_read() local
1705 eeprom_93cx6_read(&eeprom, 0x20 + (i >> 1), &txpwr); in rtl8180_eeprom_read()
1706 priv->channels[i].hw_value |= (txpwr & 0xFF) << 8; in rtl8180_eeprom_read()
1707 priv->channels[i + 1].hw_value |= txpwr & 0xFF00; in rtl8180_eeprom_read()
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dqlink.h858 __le32 txpwr; member
1222 __le32 txpwr; member
/linux/net/mac80211/
H A Dtrace.h963 __field(s16, txpwr)
971 __entry->txpwr = sta->deflink.txpwr.power;
972 __entry->type = sta->deflink.txpwr.type;
978 __entry->txpwr, __entry->type
H A Dcfg.c2004 link_sta->pub->txpwr.type = params->txpwr.type; in sta_link_apply_parameters()
2005 if (params->txpwr.type == NL80211_TX_POWER_LIMITED) in sta_link_apply_parameters()
2006 link_sta->pub->txpwr.power = params->txpwr.power; in sta_link_apply_parameters()
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmain.c1314 s16 txpower = sta->deflink.txpwr.power; in mt7915_sta_set_txpwr()
1317 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) in mt7915_sta_set_txpwr()
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c5049 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local
5051 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr()
5052 txpwr = 0; in ath11k_mac_op_sta_set_txpwr()
5054 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr()
5055 if (!txpwr) in ath11k_mac_op_sta_set_txpwr()
5059 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr()
5065 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()
/linux/drivers/net/wireless/ath/ath10k/
H A Dmac.c6879 s16 txpwr; in ath10k_sta_set_txpwr() local
6881 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath10k_sta_set_txpwr()
6882 txpwr = 0; in ath10k_sta_set_txpwr()
6884 txpwr = sta->deflink.txpwr.power; in ath10k_sta_set_txpwr()
6885 if (!txpwr) in ath10k_sta_set_txpwr()
6889 if (txpwr > ATH10K_TX_POWER_MAX_VAL || txpwr < ATH10K_TX_POWER_MIN_VAL) in ath10k_sta_set_txpwr()
6895 ar->wmi.peer_param->use_fixed_power, txpwr); in ath10k_sta_set_txpwr()
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c7124 s16 txpwr; in ath12k_mac_op_sta_set_txpwr() local
7134 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath12k_mac_op_sta_set_txpwr()
7135 txpwr = 0; in ath12k_mac_op_sta_set_txpwr()
7137 txpwr = sta->deflink.txpwr.power; in ath12k_mac_op_sta_set_txpwr()
7138 if (!txpwr) { in ath12k_mac_op_sta_set_txpwr()
7144 if (txpwr > ATH12K_TX_POWER_MAX_VAL || txpwr < ATH12K_TX_POWER_MIN_VAL) { in ath12k_mac_op_sta_set_txpwr()
7152 WMI_PEER_USE_FIXED_PWR, txpwr); in ath12k_mac_op_sta_set_txpwr()
/linux/include/net/
H A Dmac80211.h2464 struct ieee80211_sta_txpwr txpwr; member
H A Dcfg80211.h1697 struct sta_txpwr txpwr; member
/linux/net/wireless/
H A Dnl80211.c7954 struct sta_txpwr *txpwr, in nl80211_parse_sta_txpower_setting() argument
7967 txpwr->type = nla_get_u8(info->attrs[idx]); in nl80211_parse_sta_txpower_setting()
7969 if (txpwr->type == NL80211_TX_POWER_LIMITED) { in nl80211_parse_sta_txpower_setting()
7973 txpwr->power = nla_get_s16(info->attrs[idx]); in nl80211_parse_sta_txpower_setting()
8114 &params.link_sta_params.txpwr, in nl80211_set_station()
8296 &params.link_sta_params.txpwr, in nl80211_new_station()
17080 err = nl80211_parse_sta_txpower_setting(info, &params.txpwr, in nl80211_add_mod_link_station()

12