Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/net/wireless/broadcom/b43legacy/
A Dradio.c1804 if (txpower >= 54) in b43legacy_get_txgain_base_band()
1823 if (txpower >= 32) in b43legacy_get_txgain_freq_power_amp()
1844 if (txpower >= 54) in b43legacy_get_txgain_dac()
1845 ret = txpower - 53; in b43legacy_get_txgain_dac()
1847 ret = txpower - 42; in b43legacy_get_txgain_dac()
1849 ret = txpower - 37; in b43legacy_get_txgain_dac()
1851 ret = txpower - 32; in b43legacy_get_txgain_dac()
1857 ret = txpower - 8; in b43legacy_get_txgain_dac()
1859 ret = txpower; in b43legacy_get_txgain_dac()
1872 txpower = clamp_val(txpower, 0, 63); in b43legacy_radio_set_txpower_a()
[all …]
A Dradio.h56 void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower);
59 u16 txpower);
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()
/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/
A Drt2800lib.c4040 s8 txpower) in rt2800_txpower_to_dev() argument
4044 txpower = rt2x00_get_field8(txpower, EEPROM_TXPOWER_ALC); in rt2800_txpower_to_dev()
4742 txpower = max(0, txpower + delta - reg_limit); in rt2800_compensate_txpower()
4770 u8 txpower; in rt2800_config_txpower_rt3593() local
4800 txpower, delta); in rt2800_config_txpower_rt3593()
4811 txpower, delta); in rt2800_config_txpower_rt3593()
4822 txpower, delta); in rt2800_config_txpower_rt3593()
4833 txpower, delta); in rt2800_config_txpower_rt3593()
5092 txpower); in rt2800_config_txpower_rt3593()
5101 txpower); in rt2800_config_txpower_rt3593()
[all …]
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()
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()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
A Dmcu.h521 mt7915_get_power_bound(struct mt7915_phy *phy, s8 txpower) in mt7915_get_power_bound() argument
526 txpower = mt76_get_sar_power(mphy, mphy->chandef.chan, txpower * 2); in mt7915_get_power_bound()
527 txpower -= mt76_tx_power_nss_delta(n_chains); in mt7915_get_power_bound()
529 return txpower; in mt7915_get_power_bound()
A Dmt7915.h535 int mt7915_mcu_get_txpower_sku(struct mt7915_phy *phy, s8 *txpower, int len);
536 int mt7915_mcu_set_txpower_frame_min(struct mt7915_phy *phy, s8 txpower);
539 struct ieee80211_sta *sta, s8 txpower);
/linux-6.3-rc2/drivers/net/wireless/intel/iwlegacy/
A D3945.c1386 struct il3945_txpowertable_cmd txpower = { in il3945_send_tx_power() local
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()
1431 le16_to_cpu(txpower.channel), txpower.band, in il3945_send_tx_power()
1432 txpower.power[i].tpc.tx_gain, in il3945_send_tx_power()
1433 txpower.power[i].tpc.dsp_atten, txpower.power[i].rate); in il3945_send_tx_power()
[all …]
/linux-6.3-rc2/net/wireless/
A Dwext-compat.c937 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()
992 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_giwtxpower()
1005 data->txpower.fixed = 1; in cfg80211_wext_giwtxpower()
1007 data->txpower.value = val; in cfg80211_wext_giwtxpower()
[all …]
/linux-6.3-rc2/drivers/net/wireless/silabs/wfx/
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()
/linux-6.3-rc2/drivers/net/wireless/marvell/libertas/
A Dradiotap.h7 u8 txpower; member
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/
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()
A Dcommon.h91 u16 new_txpow, u16 *txpower);
A Dxmit.c1188 int txpower = fi->tx_power; in ath_get_rate_txpower() local
1205 txpower += power_ht40delta; in ath_get_rate_txpower()
1210 txpower -= 2 * AR9287_PWR_TABLE_OFFSET_DB; in ath_get_rate_txpower()
1216 txpower -= 2 * power_offset; in ath_get_rate_txpower()
1220 txpower -= 2; in ath_get_rate_txpower()
1222 txpower = max(txpower, 0); in ath_get_rate_txpower()
2123 u8 txpower; in setup_frame_info() local
2142 if (vif->bss_conf.txpower == INT_MIN) in setup_frame_info()
2144 txpower = 2 * vif->bss_conf.txpower; in setup_frame_info()
2150 txpower = sc->cur_chan->cur_txpower; in setup_frame_info()
[all …]
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()
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()
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()
/linux-6.3-rc2/drivers/net/wireless/ath/carl9170/
A Dtx.c711 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()
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
A Dphy.c2604 u8 txpower = 0; in _rtl8821ae_get_txpower_index() local
2619 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8821ae_get_txpower_index()
2632 txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2635 txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; in _rtl8821ae_get_txpower_index()
2639 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2709 txpower -= powerdiff_byrate; in _rtl8821ae_get_txpower_index()
2711 txpower += powerdiff_byrate; in _rtl8821ae_get_txpower_index()
2716 txpower += rtlpriv->dm.remnant_cck_idx; in _rtl8821ae_get_txpower_index()
2718 if (txpower > MAX_POWER_INDEX) in _rtl8821ae_get_txpower_index()
2719 txpower = MAX_POWER_INDEX; in _rtl8821ae_get_txpower_index()
[all …]
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/
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()
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
A Dphy.c948 u8 txpower = 0; in _rtl8723be_get_txpower_index() local
957 txpower = rtlefuse->txpwrlevel_cck[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()
988 txpower = MAX_POWER_INDEX; in _rtl8723be_get_txpower_index()
[all …]
/linux-6.3-rc2/include/uapi/linux/
A Dwireless.h916 struct iw_param txpower; /* default transmit power */ member
1034 __s32 txpower[IW_MAX_TXPOWER]; /* list, in bps */ member
/linux-6.3-rc2/Documentation/devicetree/bindings/net/wireless/
A Dmediatek,mt76.yaml138 "^txpower-[256]g$":
226 txpower-5g {
/linux-6.3-rc2/drivers/net/wireless/ath/ath12k/
A Dmac.c611 int ret, txpower = -1; in ath12k_mac_txpower_recalc() local
617 if (arvif->txpower <= 0) in ath12k_mac_txpower_recalc()
620 if (txpower == -1) in ath12k_mac_txpower_recalc()
621 txpower = arvif->txpower; in ath12k_mac_txpower_recalc()
623 txpower = min(txpower, arvif->txpower); in ath12k_mac_txpower_recalc()
626 if (txpower == -1) in ath12k_mac_txpower_recalc()
630 txpower = min_t(u32, max_t(u32, ar->min_tx_power, txpower), in ath12k_mac_txpower_recalc()
634 txpower / 2); in ath12k_mac_txpower_recalc()
660 txpower / 2, param, ret); in ath12k_mac_txpower_recalc()
2459 arvif->txpower = info->txpower; in ath12k_mac_op_bss_info_changed()
[all …]

Completed in 125 milliseconds

123