/drivers/net/wireless/ralink/rt2x00/ |
D | rt2800lib.c | 3966 char txpower) in rt2800_txpower_to_dev() argument 3970 txpower = rt2x00_get_field8(txpower, EEPROM_TXPOWER_ALC); in rt2800_txpower_to_dev() 3973 return clamp_t(char, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); in rt2800_txpower_to_dev() 3977 return clamp_t(char, txpower, MIN_A_TXPOWER_3593, in rt2800_txpower_to_dev() 3980 return clamp_t(char, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); in rt2800_txpower_to_dev() 4586 u8 txpower, int delta) in rt2800_compensate_txpower() argument 4595 return min_t(u8, txpower, 0xc); in rt2800_compensate_txpower() 4598 return min_t(u8, txpower, 0xf); in rt2800_compensate_txpower() 4623 eirp_txpower = eirp_txpower_criterion + (txpower - criterion) + in rt2800_compensate_txpower() 4631 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()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | radio.c | 1798 static u16 b43legacy_get_txgain_base_band(u16 txpower) in b43legacy_get_txgain_base_band() argument 1802 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_base_band() 1804 if (txpower >= 54) in b43legacy_get_txgain_base_band() 1806 else if (txpower >= 49) in b43legacy_get_txgain_base_band() 1808 else if (txpower >= 44) in b43legacy_get_txgain_base_band() 1817 static u16 b43legacy_get_txgain_freq_power_amp(u16 txpower) in b43legacy_get_txgain_freq_power_amp() argument 1821 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_freq_power_amp() 1823 if (txpower >= 32) in b43legacy_get_txgain_freq_power_amp() 1825 else if (txpower >= 25) in b43legacy_get_txgain_freq_power_amp() 1827 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()
|
/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 …]
|
/drivers/staging/wfx/ |
D | scan.c | 65 if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower) in send_scan_req() 66 hif_set_output_power(wvif, wvif->vif->bss_conf.txpower); in send_scan_req()
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9002_mac.c | 284 | SM(i->txpower[0], AR_XmitPower0) in ar9002_set_txdesc() 310 WRITE_ONCE(ads->ds_ctl9, SM(i->txpower[1], AR_XmitPower1)); in ar9002_set_txdesc() 311 WRITE_ONCE(ads->ds_ctl10, SM(i->txpower[2], AR_XmitPower2)); in ar9002_set_txdesc() 312 WRITE_ONCE(ads->ds_ctl11, SM(i->txpower[3], AR_XmitPower3)); in ar9002_set_txdesc()
|
D | xmit.c | 1147 int txpower = fi->tx_power; in ath_get_rate_txpower() local 1164 txpower += power_ht40delta; in ath_get_rate_txpower() 1169 txpower -= 2 * AR9287_PWR_TABLE_OFFSET_DB; in ath_get_rate_txpower() 1175 txpower -= 2 * power_offset; in ath_get_rate_txpower() 1179 txpower -= 2; in ath_get_rate_txpower() 1181 txpower = max(txpower, 0); in ath_get_rate_txpower() 1182 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower() 1280 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, in ath_buf_set_rate() 1311 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, false, in ath_buf_set_rate() 2084 u8 txpower; in setup_frame_info() local [all …]
|
D | ar9003_mac.c | 104 | SM(i->txpower[0], AR_XmitPower0) in ar9003_set_txdesc() 155 WRITE_ONCE(ads->ctl20, SM(i->txpower[1], AR_XmitPower1)); in ar9003_set_txdesc() 156 WRITE_ONCE(ads->ctl21, SM(i->txpower[2], AR_XmitPower2)); in ar9003_set_txdesc() 157 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 | common.h | 91 u16 new_txpow, u16 *txpower);
|
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 | 244 sc->cur_chan->txpower, in ath_complete_reset() 1286 if (vif->bss_conf.txpower == INT_MIN) in ath9k_tpc_vif_iter() 1289 if (*power < vif->bss_conf.txpower) in ath9k_tpc_vif_iter() 1290 *power = vif->bss_conf.txpower; in ath9k_tpc_vif_iter() 1302 power = (vif) ? vif->bss_conf.txpower : -1; in ath9k_set_txpower() 1311 sc->cur_chan->txpower = 2 * power; in ath9k_set_txpower() 1312 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); in ath9k_set_txpower() 1941 vif->addr, bss_conf->txpower, bss_conf->txpower_type); in ath9k_bss_info_changed()
|
D | ar9003_phy.c | 1824 static void ar9003_hw_tx99_set_txpower(struct ath_hw *ah, u8 txpower) in ar9003_hw_tx99_set_txpower() argument 1829 txpower = txpower <= MAX_RATE_POWER ? txpower : MAX_RATE_POWER; in ar9003_hw_tx99_set_txpower() 1831 p_pwr_array[i] = txpower; in ar9003_hw_tx99_set_txpower()
|
D | init.c | 269 sc->cur_chan->txpower = 2 * ah->curchan->chan->max_power; in ath9k_reg_notifier() 271 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); in ath9k_reg_notifier() 273 sc->cur_chan->txpower, in ath9k_reg_notifier()
|
/drivers/net/wireless/ath/carl9170/ |
D | tx.c | 711 u8 *txpower; in carl9170_tx_rate_tpc_chains() local 724 txpower = ar->power_2G_ht40; in carl9170_tx_rate_tpc_chains() 726 txpower = ar->power_5G_ht40; in carl9170_tx_rate_tpc_chains() 729 txpower = ar->power_2G_ht20; in carl9170_tx_rate_tpc_chains() 731 txpower = ar->power_5G_ht20; in carl9170_tx_rate_tpc_chains() 735 *tpc += txpower[idx & 7]; in carl9170_tx_rate_tpc_chains() 739 txpower = ar->power_2G_cck; in carl9170_tx_rate_tpc_chains() 741 txpower = ar->power_2G_ofdm; in carl9170_tx_rate_tpc_chains() 743 txpower = ar->power_5G_leg; in carl9170_tx_rate_tpc_chains() 748 *tpc += txpower[(rate->hw_value & 0x30) >> 4]; in carl9170_tx_rate_tpc_chains()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | phy.c | 2608 u8 txpower = 0; in _rtl8821ae_get_txpower_index() local 2623 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8821ae_get_txpower_index() 2625 txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; in _rtl8821ae_get_txpower_index() 2631 txpower += rtlefuse->txpwr_legacyhtdiff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2636 txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2639 txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() 2643 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2646 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() 2651 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index() 2655 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | radiotap.h | 7 u8 txpower; member
|
/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | debugfs.c | 319 s8 txpower[MT7915_SKU_RATE_NUM]; in mt7915_puts_rate_txpower() local 323 txpower[i] = DIV_ROUND_UP(txpower_cur + delta[i], 2); in mt7915_puts_rate_txpower() 335 txpower + idx, sku->len); in mt7915_puts_rate_txpower()
|
/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | mcu.c | 443 u8 txpower[21]; in mt7603_mcu_set_channel() member 470 for (i = 0; i < ARRAY_SIZE(req.txpower); i++) in mt7603_mcu_set_channel() 471 req.txpower[i] = tx_power; in mt7603_mcu_set_channel()
|
/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 …]
|
/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 588 int ret, txpower = -1; in ath11k_mac_txpower_recalc() local 594 if (arvif->txpower <= 0) in ath11k_mac_txpower_recalc() 597 if (txpower == -1) in ath11k_mac_txpower_recalc() 598 txpower = arvif->txpower; in ath11k_mac_txpower_recalc() 600 txpower = min(txpower, arvif->txpower); in ath11k_mac_txpower_recalc() 603 if (txpower == -1) in ath11k_mac_txpower_recalc() 607 txpower = min_t(u32, max_t(u32, ar->min_tx_power, txpower), in ath11k_mac_txpower_recalc() 611 txpower / 2); in ath11k_mac_txpower_recalc() 614 ar->txpower_limit_2g != txpower) { in ath11k_mac_txpower_recalc() 617 txpower, ar->pdev->pdev_id); in ath11k_mac_txpower_recalc() [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | phy.c | 3599 u8 txpower) in ath5k_hw_txpower() argument 3607 if (txpower > AR5K_TUNE_MAX_TXPOWER) { in ath5k_hw_txpower() 3608 ATH5K_ERR(ah, "invalid tx power: %u\n", txpower); in ath5k_hw_txpower() 3678 ath5k_setup_rate_powertable(ah, txpower, &rate_info, ee_mode); in ath5k_hw_txpower() 3724 ath5k_hw_set_txpower_limit(struct ath5k_hw *ah, u8 txpower) in ath5k_hw_set_txpower_limit() argument 3727 "changing txpower to %d\n", txpower); in ath5k_hw_set_txpower_limit() 3729 return ath5k_hw_txpower(ah, ah->ah_current_channel, txpower); in ath5k_hw_set_txpower_limit()
|