Home
last modified time | relevance | path

Searched refs:txpower (Results 1 – 25 of 63) sorted by relevance

123

/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dradio.c1781 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 …]
H A Dradio.h56 void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower);
59 u16 txpower);
H A Dphy.c1755 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()
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2800lib.c4063 s8 txpower) in rt2800_txpower_to_dev() argument
4067 txpower = rt2x00_get_field8(txpower, EEPROM_TXPOWER_ALC); in rt2800_txpower_to_dev()
4070 return clamp_t(s8, txpower, MIN_G_TXPOWER, MAX_G_TXPOWER); in rt2800_txpower_to_dev()
4074 return clamp_t(s8, txpower, MIN_A_TXPOWER_3593, in rt2800_txpower_to_dev()
4077 return clamp_t(s8, txpower, MIN_A_TXPOWER, MAX_A_TXPOWER); in rt2800_txpower_to_dev()
4720 u8 txpower, int delta) in rt2800_compensate_txpower() argument
4729 return min_t(u8, txpower, 0xc); in rt2800_compensate_txpower()
4732 return min_t(u8, txpower, 0xf); in rt2800_compensate_txpower()
4757 eirp_txpower = eirp_txpower_criterion + (txpower - criterion) + in rt2800_compensate_txpower()
4765 txpower = max(0, txpower + delta - reg_limit); in rt2800_compensate_txpower()
[all …]
H A Drt73usb.c746 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()
H A Drt61pci.c774 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()
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmcu.h519 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()
H A Dmt7915.h479 int mt7915_mcu_get_txpower_sku(struct mt7915_phy *phy, s8 *txpower, int len);
480 int mt7915_mcu_set_txpower_frame_min(struct mt7915_phy *phy, s8 txpower);
483 struct ieee80211_sta *sta, s8 txpower);
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945.c1386 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 …]
/openbmc/linux/net/wireless/
H A Dwext-compat.c935 if ((data->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in cfg80211_wext_siwtxpower()
937 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_siwtxpower()
944 if (!data->txpower.disabled) { in cfg80211_wext_siwtxpower()
947 if (data->txpower.fixed) { in cfg80211_wext_siwtxpower()
952 if (data->txpower.value < 0) in cfg80211_wext_siwtxpower()
954 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
962 if (data->txpower.value < 0) { in cfg80211_wext_siwtxpower()
965 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
990 if ((data->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in cfg80211_wext_giwtxpower()
992 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_giwtxpower()
[all …]
/openbmc/linux/drivers/net/wireless/silabs/wfx/
H A Dscan.c81 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()
/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dar9002_mac.c284 | 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()
H A Dcommon.h89 u16 new_txpow, u16 *txpower);
H A Dxmit.c1210 int txpower = fi->tx_power; in ath_get_rate_txpower() local
1225 txpower += power_ht40delta; in ath_get_rate_txpower()
1230 txpower -= 2 * AR9287_PWR_TABLE_OFFSET_DB; in ath_get_rate_txpower()
1236 txpower -= 2 * power_offset; in ath_get_rate_txpower()
1240 txpower -= 2; in ath_get_rate_txpower()
1242 txpower = max(txpower, 0); in ath_get_rate_txpower()
1243 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower()
1341 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, in ath_buf_set_rate()
1372 info->txpower[i] = ath_get_rate_txpower(sc, bf, rix, false, in ath_buf_set_rate()
2143 u8 txpower; in setup_frame_info() local
[all …]
H A Dar9003_mac.c104 | 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()
H A Dcommon.c368 u16 new_txpow, u16 *txpower) in ath9k_cmn_update_txpow() argument
376 *txpower = reg->max_power_level; in ath9k_cmn_update_txpow()
H A Dchannel.c120 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()
H A Dmain.c243 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()
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dradiotap.h7 u8 txpower; member
/openbmc/linux/drivers/net/wireless/ath/carl9170/
H A Dtx.c712 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()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dphy.c2605 u8 txpower = 0; in _rtl8821ae_get_txpower_index() local
2620 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8821ae_get_txpower_index()
2622 txpower = rtlefuse->txpwrlevel_ht40_1s[path][index]; in _rtl8821ae_get_txpower_index()
2628 txpower += rtlefuse->txpwr_legacyhtdiff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2633 txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2636 txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; in _rtl8821ae_get_txpower_index()
2640 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2643 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index()
2648 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2652 txpower += rtlefuse->txpwr_ht40diff[path][TX_2S]; in _rtl8821ae_get_txpower_index()
[all …]
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmcu.c396 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()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dphy.c948 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 …]
/openbmc/linux/include/uapi/linux/
H A Dwireless.h916 struct iw_param txpower; /* default transmit power */ member
1034 __s32 txpower[IW_MAX_TXPOWER]; /* list, in bps */ member
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c632 int ret, txpower = -1; in ath12k_mac_txpower_recalc() local
638 if (arvif->txpower <= 0) in ath12k_mac_txpower_recalc()
641 if (txpower == -1) in ath12k_mac_txpower_recalc()
642 txpower = arvif->txpower; in ath12k_mac_txpower_recalc()
644 txpower = min(txpower, arvif->txpower); in ath12k_mac_txpower_recalc()
647 if (txpower == -1) in ath12k_mac_txpower_recalc()
651 txpower = min_t(u32, max_t(u32, ar->min_tx_power, txpower), in ath12k_mac_txpower_recalc()
655 txpower / 2); in ath12k_mac_txpower_recalc()
658 ar->txpower_limit_2g != txpower) { in ath12k_mac_txpower_recalc()
661 txpower, ar->pdev->pdev_id); in ath12k_mac_txpower_recalc()
[all …]

123