/linux-6.12.1/drivers/net/wireless/broadcom/b43legacy/ |
D | radio.c | 1781 static u16 b43legacy_get_txgain_base_band(u16 txpower) in b43legacy_get_txgain_base_band() argument 1785 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_base_band() 1787 if (txpower >= 54) in b43legacy_get_txgain_base_band() 1789 else if (txpower >= 49) in b43legacy_get_txgain_base_band() 1791 else if (txpower >= 44) in b43legacy_get_txgain_base_band() 1800 static u16 b43legacy_get_txgain_freq_power_amp(u16 txpower) in b43legacy_get_txgain_freq_power_amp() argument 1804 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_freq_power_amp() 1806 if (txpower >= 32) in b43legacy_get_txgain_freq_power_amp() 1808 else if (txpower >= 25) in b43legacy_get_txgain_freq_power_amp() 1810 else if (txpower >= 20) in b43legacy_get_txgain_freq_power_amp() [all …]
|
D | radio.h | 56 void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower); 59 u16 txpower);
|
D | phy.c | 1755 u16 txpower; in b43legacy_phy_xmitpower() local 1891 txpower = phy->txctl1; in b43legacy_phy_xmitpower() 1894 if (txpower == 0) { in b43legacy_phy_xmitpower() 1895 txpower = 3; in b43legacy_phy_xmitpower() 1904 } else if (radio_attenuation > 4 && txpower != 0) { in b43legacy_phy_xmitpower() 1905 txpower = 0; in b43legacy_phy_xmitpower() 1916 phy->txctl1 = txpower; in b43legacy_phy_xmitpower() 1926 radio_attenuation, txpower); in b43legacy_phy_xmitpower()
|
/linux-6.12.1/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.c | 4113 s8 txpower) in rt2800_txpower_to_dev() argument 4117 txpower = rt2x00_get_field8(txpower, EEPROM_TXPOWER_ALC); in rt2800_txpower_to_dev() 4120 return clamp_t(s8, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); in rt2800_txpower_to_dev() 4124 return clamp_t(s8, txpower, MIN_A_TXPOWER_3593, in rt2800_txpower_to_dev() 4127 return clamp_t(s8, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); in rt2800_txpower_to_dev() 4749 u8 txpower, int delta) in rt2800_compensate_txpower() argument 4758 return min_t(u8, txpower, 0xc); in rt2800_compensate_txpower() 4761 return min_t(u8, txpower, 0xf); in rt2800_compensate_txpower() 4786 eirp_txpower = eirp_txpower_criterion + (txpower - criterion) + in rt2800_compensate_txpower() 4794 txpower = max(0, txpower + delta - reg_limit); in rt2800_compensate_txpower() [all …]
|
D | rt73usb.c | 746 struct rf_channel *rf, const int txpower) in rt73usb_config_channel() argument 752 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt73usb_config_channel() 762 if (txpower > MAX_TXPOWER && txpower <= (MAX_TXPOWER + r94)) in rt73usb_config_channel() 763 r94 += txpower - MAX_TXPOWER; in rt73usb_config_channel() 764 else if (txpower < MIN_TXPOWER && txpower >= (MIN_TXPOWER - r94)) in rt73usb_config_channel() 765 r94 += txpower; in rt73usb_config_channel() 787 const int txpower) in rt73usb_config_txpower() argument 796 rt73usb_config_channel(rt2x00dev, &rf, txpower); in rt73usb_config_txpower()
|
D | rt61pci.c | 774 struct rf_channel *rf, const int txpower) in rt61pci_config_channel() argument 780 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt61pci_config_channel() 790 if (txpower > MAX_TXPOWER && txpower <= (MAX_TXPOWER + r94)) in rt61pci_config_channel() 791 r94 += txpower - MAX_TXPOWER; in rt61pci_config_channel() 792 else if (txpower < MIN_TXPOWER && txpower >= (MIN_TXPOWER - r94)) in rt61pci_config_channel() 793 r94 += txpower; in rt61pci_config_channel() 819 const int txpower) in rt61pci_config_txpower() argument 828 rt61pci_config_channel(rt2x00dev, &rf, txpower); in rt61pci_config_txpower()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mcu.h | 519 mt7915_get_power_bound(struct mt7915_phy *phy, s8 txpower) in mt7915_get_power_bound() argument 524 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7915_get_power_bound() 525 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7915_get_power_bound() 527 return txpower; in mt7915_get_power_bound()
|
D | mt7915.h | 484 int mt7915_mcu_get_txpower_sku(struct mt7915_phy *phy, s8 *txpower, int len); 485 int mt7915_mcu_set_txpower_frame_min(struct mt7915_phy *phy, s8 txpower); 488 struct ieee80211_sta *sta, s8 txpower);
|
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 1386 struct il3945_txpowertable_cmd txpower = { in il3945_send_tx_power() local 1398 txpower.band = (il->band == NL80211_BAND_5GHZ) ? 0 : 1; in il3945_send_tx_power() 1416 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1417 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power() 1420 le16_to_cpu(txpower.channel), txpower.band, in il3945_send_tx_power() 1421 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power() 1422 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power() 1427 txpower.power[i].tpc = ch_info->power_info[i].tpc; in il3945_send_tx_power() 1428 txpower.power[i].rate = il3945_rates[rate_idx].plcp; in il3945_send_tx_power() 1431 le16_to_cpu(txpower.channel), txpower.band, in il3945_send_tx_power() [all …]
|
/linux-6.12.1/net/wireless/ |
D | wext-compat.c | 914 if ((data->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in cfg80211_wext_siwtxpower() 916 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_siwtxpower() 923 if (!data->txpower.disabled) { in cfg80211_wext_siwtxpower() 926 if (data->txpower.fixed) { in cfg80211_wext_siwtxpower() 931 if (data->txpower.value < 0) in cfg80211_wext_siwtxpower() 933 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 941 if (data->txpower.value < 0) { in cfg80211_wext_siwtxpower() 944 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 969 if ((data->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in cfg80211_wext_giwtxpower() 971 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_giwtxpower() [all …]
|
/linux-6.12.1/drivers/net/wireless/ath/ath9k/ |
D | ar9002_mac.c | 284 | SM(i->txpower[0], AR_XmitPower0) in ar9002_set_txdesc() 311 WRITE_ONCE(ads->ds_ctl9, SM(i->txpower[1], AR_XmitPower1)); in ar9002_set_txdesc() 312 WRITE_ONCE(ads->ds_ctl10, SM(i->txpower[2], AR_XmitPower2)); in ar9002_set_txdesc() 313 WRITE_ONCE(ads->ds_ctl11, SM(i->txpower[3], AR_XmitPower3)); in ar9002_set_txdesc()
|
D | common.h | 89 u16 new_txpow, u16 *txpower);
|
D | xmit.c | 1209 int txpower = fi->tx_power; in ath_get_rate_txpower() local 1224 txpower += power_ht40delta; in ath_get_rate_txpower() 1229 txpower -= 2 * AR9287_PWR_TABLE_OFFSET_DB; in ath_get_rate_txpower() 1235 txpower -= 2 * power_offset; in ath_get_rate_txpower() 1239 txpower -= 2; in ath_get_rate_txpower() 1241 txpower = max(txpower, 0); in ath_get_rate_txpower() 1242 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower() 1340 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, in ath_buf_set_rate() 1371 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, false, in ath_buf_set_rate() 2148 u8 txpower; in setup_frame_info() local [all …]
|
D | ar9003_mac.c | 104 | SM(i->txpower[0], AR_XmitPower0) in ar9003_set_txdesc() 156 WRITE_ONCE(ads->ctl20, SM(i->txpower[1], AR_XmitPower1)); in ar9003_set_txdesc() 157 WRITE_ONCE(ads->ctl21, SM(i->txpower[2], AR_XmitPower2)); in ar9003_set_txdesc() 158 WRITE_ONCE(ads->ctl22, SM(i->txpower[3], AR_XmitPower3)); in ar9003_set_txdesc()
|
D | common.c | 368 u16 new_txpow, u16 *txpower) in ath9k_cmn_update_txpow() argument 376 *txpower = reg->max_power_level; in ath9k_cmn_update_txpow()
|
D | channel.c | 120 ctx->txpower = ATH_TXPOWER_MAX; in ath_chanctx_init() 916 sc->offchannel.chan.txpower = vif->bss_conf.txpower; in ath_offchannel_next() 920 sc->offchannel.chan.txpower = vif->bss_conf.txpower; in ath_offchannel_next() 1349 ctx->txpower = ATH_TXPOWER_MAX; in ath9k_offchannel_init()
|
D | main.c | 243 sc->cur_chan->txpower, in ath_complete_reset() 1280 if (vif->bss_conf.txpower == INT_MIN) in ath9k_tpc_vif_iter() 1283 if (*power < vif->bss_conf.txpower) in ath9k_tpc_vif_iter() 1284 *power = vif->bss_conf.txpower; in ath9k_tpc_vif_iter() 1296 power = (vif) ? vif->bss_conf.txpower : -1; in ath9k_set_txpower() 1305 sc->cur_chan->txpower = 2 * power; in ath9k_set_txpower() 1306 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); in ath9k_set_txpower() 1935 vif->addr, bss_conf->txpower, bss_conf->txpower_type); in ath9k_bss_info_changed()
|
/linux-6.12.1/drivers/net/wireless/marvell/libertas/ |
D | radiotap.h | 7 u8 txpower; member
|
/linux-6.12.1/drivers/net/wireless/ath/carl9170/ |
D | tx.c | 712 u8 *txpower; in carl9170_tx_rate_tpc_chains() local 725 txpower = ar->power_2G_ht40; in carl9170_tx_rate_tpc_chains() 727 txpower = ar->power_5G_ht40; in carl9170_tx_rate_tpc_chains() 730 txpower = ar->power_2G_ht20; in carl9170_tx_rate_tpc_chains() 732 txpower = ar->power_5G_ht20; in carl9170_tx_rate_tpc_chains() 736 *tpc += txpower[idx & 7]; in carl9170_tx_rate_tpc_chains() 740 txpower = ar->power_2G_cck; in carl9170_tx_rate_tpc_chains() 742 txpower = ar->power_2G_ofdm; in carl9170_tx_rate_tpc_chains() 744 txpower = ar->power_5G_leg; in carl9170_tx_rate_tpc_chains() 749 *tpc += txpower[(rate->hw_value & 0x30) >> 4]; in carl9170_tx_rate_tpc_chains()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | mcu.h | 813 mt7996_get_power_bound(struct mt7996_phy *phy, s8 txpower) in mt7996_get_power_bound() argument 818 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7996_get_power_bound() 819 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7996_get_power_bound() 821 return txpower; in mt7996_get_power_bound()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 2592 u8 txpower = 0; in _rtl8821ae_get_txpower_index() local 2607 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8821ae_get_txpower_index() 2609 txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; in _rtl8821ae_get_txpower_index() 2615 txpower += rtlefuse->txpwr_legacyhtdiff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2620 txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2623 txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() 2627 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2630 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() 2635 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2639 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mcu.c | 396 u8 txpower[21]; in mt7603_mcu_set_channel() member 423 for (i = 0; i < ARRAY_SIZE(req.txpower); i++) in mt7603_mcu_set_channel() 424 req.txpower[i] = tx_power; in mt7603_mcu_set_channel()
|
/linux-6.12.1/drivers/net/wireless/silabs/wfx/ |
D | scan.c | 81 if (req->channels[start_idx]->max_power != vif->bss_conf.txpower) in send_scan_req() 82 wfx_hif_set_output_power(wvif, vif->bss_conf.txpower); in send_scan_req()
|
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | phy.c | 948 u8 txpower = 0; in _rtl8723be_get_txpower_index() local 957 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8723be_get_txpower_index() 959 txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; in _rtl8723be_get_txpower_index() 966 txpower += rtlefuse->txpwr_legacyhtdiff[0][TX_1S]; in _rtl8723be_get_txpower_index() 970 txpower += rtlefuse->txpwr_ht20diff[0][TX_1S]; in _rtl8723be_get_txpower_index() 972 txpower += rtlefuse->txpwr_ht20diff[0][TX_2S]; in _rtl8723be_get_txpower_index() 975 txpower += rtlefuse->txpwr_ht40diff[0][TX_1S]; in _rtl8723be_get_txpower_index() 977 txpower += rtlefuse->txpwr_ht40diff[0][TX_2S]; in _rtl8723be_get_txpower_index() 985 txpower += power_diff_byrate; in _rtl8723be_get_txpower_index() 987 if (txpower > MAX_POWER_INDEX) in _rtl8723be_get_txpower_index() [all …]
|
/linux-6.12.1/include/uapi/linux/ |
D | wireless.h | 916 struct iw_param txpower; /* default transmit power */ member 1034 __s32 txpower[IW_MAX_TXPOWER]; /* list, in bps */ member
|