Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A 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 …]
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);
H A Dmain.h640 bool mute, struct txpwr_limits *txpwr);
/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 Dmt7925.h256 struct mt7925_txpwr *txpwr);
H A Dmcu.h86 struct mt7925_txpwr txpwr; member
H A Dmcu.c1949 int mt7925_get_txpwr_info(struct mt792x_dev *dev, u8 band_idx, struct mt7925_txpwr *txpwr) in mt7925_get_txpwr_info() argument
1969 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()
H A Dmcu.h74 struct mt7921_txpwr txpwr; member
H A Dmcu.c1099 int mt7921_get_txpwr_info(struct mt792x_dev *dev, struct mt7921_txpwr *txpwr) in mt7921_get_txpwr_info() argument
1115 memcpy(txpwr, &event->txpwr, sizeof(event->txpwr)); in mt7921_get_txpwr_info()
H A Dmt7921.h278 int mt7921_get_txpwr_info(struct mt792x_dev *dev, struct mt7921_txpwr *txpwr);
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A 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 …]
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.c1439 u16 txpwr, reg; in rtl8187_probe() local
1515 &txpwr); in rtl8187_probe()
1516 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1517 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1521 &txpwr); in rtl8187_probe()
1522 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1523 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
1589 &txpwr); in rtl8187_probe()
1590 (*channel++).hw_value = txpwr & 0xFF; in rtl8187_probe()
1591 (*channel++).hw_value = txpwr >> 8; in rtl8187_probe()
[all …]
/linux/drivers/net/wireless/realtek/rtw89/
H A Dsar.c463 s16 tmp, txpwr, instant_txpwr = 0; in rtw89_tas_track() local
484 txpwr = instant_txpwr * env->ifs_clm_tx_ratio; in rtw89_tas_track()
485 tas->total_txpwr += txpwr - tas->txpwr_history[tas->cur_idx]; in rtw89_tas_track()
486 tas->txpwr_history[tas->cur_idx] = txpwr; in rtw89_tas_track()
489 instant_txpwr, env->ifs_clm_tx_ratio, txpwr); in rtw89_tas_track()
/linux/sound/soc/codecs/
H A Dwm8804.c165 unsigned int txpwr; in txsrc_put() local
174 txpwr = snd_soc_component_read(component, WM8804_PWRDN) & 0x4; in txsrc_put()
183 snd_soc_component_update_bits(component, WM8804_PWRDN, 0x4, txpwr); in txsrc_put()
/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/mediatek/mt76/mt7915/
H A Ddebugfs.c958 len += scnprintf(buf + len, sz - len, " %6d", txpwr[offs]); \
978 s8 txpwr[MT7915_SKU_RATE_NUM]; in mt7915_rate_txpower_get() local
990 ret = mt7915_mcu_get_txpower_sku(phy, txpwr, sizeof(txpwr)); in mt7915_rate_txpower_get()
H A Dmain.c1250 s16 txpower = sta->deflink.txpwr.power; in mt7915_sta_set_txpwr()
1253 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) in mt7915_sta_set_txpwr()
/linux/drivers/net/wireless/marvell/mwifiex/
H A 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/drivers/net/wireless/quantenna/qtnfmac/
H A Dqlink.h858 __le32 txpwr; member
1222 __le32 txpwr; member
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c5039 s16 txpwr; in ath11k_mac_op_sta_set_txpwr() local
5041 if (sta->deflink.txpwr.type == NL80211_TX_POWER_AUTOMATIC) { in ath11k_mac_op_sta_set_txpwr()
5042 txpwr = 0; in ath11k_mac_op_sta_set_txpwr()
5044 txpwr = sta->deflink.txpwr.power; in ath11k_mac_op_sta_set_txpwr()
5045 if (!txpwr) in ath11k_mac_op_sta_set_txpwr()
5049 if (txpwr > ATH11K_TX_POWER_MAX_VAL || txpwr < ATH11K_TX_POWER_MIN_VAL) in ath11k_mac_op_sta_set_txpwr()
5055 WMI_PEER_USE_FIXED_PWR, txpwr); in ath11k_mac_op_sta_set_txpwr()

12