Home
last modified time | relevance | path

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

12

/linux-6.1.9/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()
/linux-6.1.9/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.h166 s8 mt76x02_tx_get_txpwr_adj(struct mt76x02_dev *dev, s8 txpwr,
169 void mt76x02_tx_set_txpwr_auto(struct mt76x02_dev *dev, s8 txpwr);
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Ddebugfs.c202 txpwr.data[TXPWR_USER].rate, \
203 ARRAY_SIZE(txpwr.data[TXPWR_USER].rate)); \
205 txpwr.data[TXPWR_EEPROM].rate, \
206 ARRAY_SIZE(txpwr.data[TXPWR_EEPROM].rate)); \
208 txpwr.data[TXPWR_MAC].rate, \
209 ARRAY_SIZE(txpwr.data[TXPWR_MAC].rate)); \
216 struct mt7921_txpwr txpwr; in mt7921_txpwr() local
220 ret = mt7921_get_txpwr_info(dev, &txpwr); in mt7921_txpwr()
226 seq_printf(s, "Tx power table (channel %d)\n", txpwr.ch); in mt7921_txpwr()
Dmcu.h85 struct mt7921_txpwr txpwr; member
Dmcu.c918 int mt7921_get_txpwr_info(struct mt7921_dev *dev, struct mt7921_txpwr *txpwr) in mt7921_get_txpwr_info() argument
934 memcpy(txpwr, &event->txpwr, sizeof(event->txpwr)); in mt7921_get_txpwr_info()
Dmt7921.h437 int mt7921_get_txpwr_info(struct mt7921_dev *dev, struct mt7921_txpwr *txpwr);
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/realtek/rtl818x/rtl8187/
Ddev.c1434 u16 txpwr, reg; in rtl8187_probe() local
1510 &txpwr); in rtl8187_probe()
1511 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1512 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1516 &txpwr); in rtl8187_probe()
1517 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1518 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1584 &txpwr); in rtl8187_probe()
1585 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1586 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
[all …]
/linux-6.1.9/sound/soc/codecs/
Dwm8804.c166 unsigned int txpwr; in txsrc_put() local
175 txpwr = snd_soc_component_read(component, WM8804_PWRDN) & 0x4; in txsrc_put()
184 snd_soc_component_update_bits(component, WM8804_PWRDN, 0x4, txpwr); in txsrc_put()
/linux-6.1.9/drivers/net/wireless/realtek/rtl818x/rtl8180/
Ddev.c1689 u16 txpwr; in rtl8180_eeprom_read() local
1691 &txpwr); in rtl8180_eeprom_read()
1692 priv->channels[i].hw_value = txpwr & 0xFF; in rtl8180_eeprom_read()
1693 priv->channels[i + 1].hw_value = txpwr >> 8; in rtl8180_eeprom_read()
1699 u16 txpwr; in rtl8180_eeprom_read() local
1700 eeprom_93cx6_read(&eeprom, 0x20 + (i >> 1), &txpwr); in rtl8180_eeprom_read()
1701 priv->channels[i].hw_value |= (txpwr & 0xFF) << 8; in rtl8180_eeprom_read()
1702 priv->channels[i + 1].hw_value |= txpwr & 0xFF00; in rtl8180_eeprom_read()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c186 char txpwr[] = {"marvell,00_txpwrlimit"}; in mwifiex_dnld_txpwr_table() local
188 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table()
189 mwifiex_dnld_dt_cfgdata(priv, priv->adapter->dt_node, txpwr); in mwifiex_dnld_txpwr_table()
/linux-6.1.9/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()
/linux-6.1.9/net/mac80211/
Dtrace.h889 __field(s16, txpwr)
897 __entry->txpwr = sta->deflink.txpwr.power;
898 __entry->type = sta->deflink.txpwr.type;
904 __entry->txpwr, __entry->type
Dcfg.c1724 link_sta->pub->txpwr.type = params->txpwr.type; in sta_link_apply_parameters()
1725 if (params->txpwr.type == NL80211_TX_POWER_LIMITED) in sta_link_apply_parameters()
1726 link_sta->pub->txpwr.power = params->txpwr.power; in sta_link_apply_parameters()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dmac.c4711 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local
4713 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr()
4714 txpwr = 0; in ath11k_mac_op_sta_set_txpwr()
4716 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr()
4717 if (!txpwr) in ath11k_mac_op_sta_set_txpwr()
4721 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr()
4727 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dmac.c6848 s16 txpwr; in ath10k_sta_set_txpwr() local
6850 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath10k_sta_set_txpwr()
6851 txpwr = 0; in ath10k_sta_set_txpwr()
6853 txpwr = sta->deflink.txpwr.power; in ath10k_sta_set_txpwr()
6854 if (!txpwr) in ath10k_sta_set_txpwr()
6858 if (txpwr > ATH10K_TX_POWER_MAX_VAL || txpwr < ATH10K_TX_POWER_MIN_VAL) in ath10k_sta_set_txpwr()
6864 ar->wmi.peer_param->use_fixed_power, txpwr); in ath10k_sta_set_txpwr()
/linux-6.1.9/include/net/
Dmac80211.h2210 struct ieee80211_sta_txpwr txpwr; member
/linux-6.1.9/net/wireless/
Dnl80211.c6929 struct sta_txpwr *txpwr, in nl80211_parse_sta_txpower_setting() argument
6942 txpwr->type = nla_get_u8(info->attrs[idx]); in nl80211_parse_sta_txpower_setting()
6944 if (txpwr->type == NL80211_TX_POWER_LIMITED) { in nl80211_parse_sta_txpower_setting()
6948 txpwr->power = nla_get_s16(info->attrs[idx]); in nl80211_parse_sta_txpower_setting()
7083 &params.link_sta_params.txpwr, in nl80211_set_station()
7257 &params.link_sta_params.txpwr, in nl80211_new_station()
16005 err = nl80211_parse_sta_txpower_setting(info, &params.txpwr, in nl80211_add_mod_link_station()

12