Home
last modified time | relevance | path

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

123

/linux/drivers/net/wireless/ralink/rt2x00/
A Drt2800lib.c3979 char txpower) in rt2800_txpower_to_dev() argument
3983 txpower = rt2x00_get_field8(txpower, EEPROM_TXPOWER_ALC); in rt2800_txpower_to_dev()
4640 txpower = max(0, txpower + delta - reg_limit); in rt2800_compensate_txpower()
4668 u8 txpower; in rt2800_config_txpower_rt3593() local
4698 txpower, delta); in rt2800_config_txpower_rt3593()
4709 txpower, delta); in rt2800_config_txpower_rt3593()
4720 txpower, delta); in rt2800_config_txpower_rt3593()
4731 txpower, delta); in rt2800_config_txpower_rt3593()
4990 txpower); in rt2800_config_txpower_rt3593()
4999 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/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/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/net/wireless/
A Dwext-compat.c897 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_siwtxpower()
904 if (!data->txpower.disabled) { in cfg80211_wext_siwtxpower()
907 if (data->txpower.fixed) { in cfg80211_wext_siwtxpower()
912 if (data->txpower.value < 0) in cfg80211_wext_siwtxpower()
914 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
922 if (data->txpower.value < 0) { in cfg80211_wext_siwtxpower()
925 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
952 if (data->txpower.flags & IW_TXPOW_RANGE) in cfg80211_wext_giwtxpower()
965 data->txpower.fixed = 1; in cfg80211_wext_giwtxpower()
967 data->txpower.value = val; in cfg80211_wext_giwtxpower()
[all …]
/linux/drivers/staging/wfx/
A Dscan.c82 if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower) in send_scan_req()
83 hif_set_output_power(wvif, wvif->vif->bss_conf.txpower); in send_scan_req()
/linux/drivers/net/wireless/ath/ath9k/
A Dar9002_mac.c284 | 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()
A Dxmit.c1147 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()
2084 u8 txpower; in setup_frame_info() local
2103 if (vif->bss_conf.txpower == INT_MIN) in setup_frame_info()
2105 txpower = 2 * vif->bss_conf.txpower; in setup_frame_info()
2111 txpower = sc->cur_chan->cur_txpower; in setup_frame_info()
[all …]
A Dar9003_mac.c104 | 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()
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 Dcommon.h91 u16 new_txpow, u16 *txpower);
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()
A Dmain.c244 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/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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
A Dphy.c2616 u8 txpower = 0; in _rtl8821ae_get_txpower_index() local
2631 txpower = rtlefuse->txpwrlevel_cck[path][index]; in _rtl8821ae_get_txpower_index()
2644 txpower += rtlefuse->txpwr_ht20diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2647 txpower += rtlefuse->txpwr_ht20diff[path][TX_2S]; in _rtl8821ae_get_txpower_index()
2651 txpower += rtlefuse->txpwr_ht40diff[path][TX_1S]; in _rtl8821ae_get_txpower_index()
2721 txpower -= powerdiff_byrate; in _rtl8821ae_get_txpower_index()
2723 txpower += powerdiff_byrate; in _rtl8821ae_get_txpower_index()
2728 txpower += rtlpriv->dm.remnant_cck_idx; in _rtl8821ae_get_txpower_index()
2730 if (txpower > MAX_POWER_INDEX) in _rtl8821ae_get_txpower_index()
2731 txpower = MAX_POWER_INDEX; in _rtl8821ae_get_txpower_index()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
A Ddebugfs.c476 s8 txpower[MT7915_SKU_RATE_NUM], *buf; in mt7915_rate_txpower_show() local
480 mt7915_mcu_get_txpower_sku(phy, txpower, sizeof(txpower)); in mt7915_rate_txpower_show()
481 for (i = 0, buf = txpower; i < ARRAY_SIZE(mt7915_sku_group_len); i++) { in mt7915_rate_txpower_show()
/linux/drivers/net/wireless/marvell/libertas/
A Dradiotap.h7 u8 txpower; member
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
A Dmcu.c397 u8 txpower[21]; in mt7603_mcu_set_channel() member
424 for (i = 0; i < ARRAY_SIZE(req.txpower); i++) in mt7603_mcu_set_channel()
425 req.txpower[i] = tx_power; in mt7603_mcu_set_channel()
/linux/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/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/Documentation/devicetree/bindings/net/wireless/
A Dmediatek,mt76.yaml101 "^txpower-[256]g$":
189 txpower-5g {
/linux/drivers/net/wireless/ath/ath11k/
A Dmac.c578 int ret, txpower = -1; in ath11k_mac_txpower_recalc() local
584 if (arvif->txpower <= 0) in ath11k_mac_txpower_recalc()
587 if (txpower == -1) in ath11k_mac_txpower_recalc()
588 txpower = arvif->txpower; in ath11k_mac_txpower_recalc()
590 txpower = min(txpower, arvif->txpower); in ath11k_mac_txpower_recalc()
593 if (txpower == -1) in ath11k_mac_txpower_recalc()
597 txpower = min_t(u32, max_t(u32, ar->min_tx_power, txpower), in ath11k_mac_txpower_recalc()
601 txpower / 2); in ath11k_mac_txpower_recalc()
627 txpower / 2, param, ret); in ath11k_mac_txpower_recalc()
2941 arvif->txpower = info->txpower; in ath11k_mac_op_bss_info_changed()
[all …]

Completed in 113 milliseconds

123