Home
last modified time | relevance | path

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

/drivers/net/wireless/b43legacy/
Dradio.c1834 static u16 b43legacy_get_txgain_base_band(u16 txpower) in b43legacy_get_txgain_base_band() argument
1838 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_base_band()
1840 if (txpower >= 54) in b43legacy_get_txgain_base_band()
1842 else if (txpower >= 49) in b43legacy_get_txgain_base_band()
1844 else if (txpower >= 44) in b43legacy_get_txgain_base_band()
1853 static u16 b43legacy_get_txgain_freq_power_amp(u16 txpower) in b43legacy_get_txgain_freq_power_amp() argument
1857 B43legacy_WARN_ON(txpower > 63); in b43legacy_get_txgain_freq_power_amp()
1859 if (txpower >= 32) in b43legacy_get_txgain_freq_power_amp()
1861 else if (txpower >= 25) in b43legacy_get_txgain_freq_power_amp()
1863 else if (txpower >= 20) in b43legacy_get_txgain_freq_power_amp()
[all …]
Dradio.h69 void b43legacy_radio_set_txpower_a(struct b43legacy_wldev *dev, u16 txpower);
72 u16 txpower);
Dphy.c1778 u16 txpower; in b43legacy_phy_xmitpower() local
1914 txpower = phy->txctl1; in b43legacy_phy_xmitpower()
1917 if (txpower == 0) { in b43legacy_phy_xmitpower()
1918 txpower = 3; in b43legacy_phy_xmitpower()
1927 } else if (radio_attenuation > 4 && txpower != 0) { in b43legacy_phy_xmitpower()
1928 txpower = 0; in b43legacy_phy_xmitpower()
1939 phy->txctl1 = txpower; in b43legacy_phy_xmitpower()
1949 radio_attenuation, txpower); in b43legacy_phy_xmitpower()
/drivers/net/wireless/iwlwifi/
Diwl-3945.c1690 struct iwl3945_txpowertable_cmd txpower = { in iwl3945_hw_reg_send_txpower() local
1694 txpower.band = (priv->band == IEEE80211_BAND_5GHZ) ? 0 : 1; in iwl3945_hw_reg_send_txpower()
1716 txpower.power[i].tpc = ch_info->power_info[i].tpc; in iwl3945_hw_reg_send_txpower()
1717 txpower.power[i].rate = iwl3945_rates[rate_idx].plcp; in iwl3945_hw_reg_send_txpower()
1720 le16_to_cpu(txpower.channel), in iwl3945_hw_reg_send_txpower()
1721 txpower.band, in iwl3945_hw_reg_send_txpower()
1722 txpower.power[i].tpc.tx_gain, in iwl3945_hw_reg_send_txpower()
1723 txpower.power[i].tpc.dsp_atten, in iwl3945_hw_reg_send_txpower()
1724 txpower.power[i].rate); in iwl3945_hw_reg_send_txpower()
1729 txpower.power[i].tpc = ch_info->power_info[i].tpc; in iwl3945_hw_reg_send_txpower()
[all …]
/drivers/net/wireless/ath5k/
Dphy.c2392 u16 txpower, *rates; in ath5k_txpower_table() local
2396 txpower = AR5K_TUNE_DEFAULT_TXPOWER * 2; in ath5k_txpower_table()
2397 if (max_power > txpower) in ath5k_txpower_table()
2398 txpower = max_power > AR5K_TUNE_MAX_TXPOWER ? in ath5k_txpower_table()
2402 rates[i] = txpower; in ath5k_txpower_table()
2428 unsigned int txpower) in ath5k_hw_txpower() argument
2434 if (txpower > AR5K_TUNE_MAX_TXPOWER) { in ath5k_hw_txpower()
2435 ATH5K_ERR(ah->ah_sc, "invalid tx power: %u\n", txpower); in ath5k_hw_txpower()
2456 ath5k_txpower_table(ah, channel, txpower); in ath5k_hw_txpower()
Dath5k.h1279 …int ath5k_hw_txpower(struct ath5k_hw *ah, struct ieee80211_channel *channel, unsigned int txpower);
/drivers/net/wireless/
Drndis_wlan.c1126 range->txpower[0] = le32_to_cpu(tx_power); in rndis_iw_get_range()
1128 range->txpower[0] = get_bcm4320_power(priv); in rndis_iw_get_range()
1130 range->txpower[0] = get_bcm4320_power(priv); in rndis_iw_get_range()
2042 wrqu->txpower.flags = IW_TXPOW_MWATT; in rndis_iw_get_txpower()
2043 wrqu->txpower.value = le32_to_cpu(tx_power); in rndis_iw_get_txpower()
2044 wrqu->txpower.disabled = 0; in rndis_iw_get_txpower()
2046 wrqu->txpower.flags = IW_TXPOW_MWATT; in rndis_iw_get_txpower()
2047 wrqu->txpower.value = 0; in rndis_iw_get_txpower()
2048 wrqu->txpower.disabled = 1; in rndis_iw_get_txpower()
2051 devdbg(usbdev, "SIOCGIWTXPOW: %d", wrqu->txpower.value); in rndis_iw_get_txpower()
[all …]
Dwl3501_cs.c1770 wrqu->txpower.value = txpow; in wl3501_get_txpow()
1771 wrqu->txpower.disabled = 0; in wl3501_get_txpow()
1776 wrqu->txpower.fixed = 0; in wl3501_get_txpow()
1777 wrqu->txpower.flags = IW_TXPOW_MWATT; in wl3501_get_txpow()
Dairo.c6870 range->txpower[i] = le16_to_cpu(cap_rid.txPowerLevels[i]); in airo_get_range()
6871 if(range->txpower[i] == 0) in airo_get_range()
/drivers/net/wireless/libertas/
Dradiotap.h6 u8 txpower; member
Dwext.c685 memset(range->txpower, 0, sizeof(range->txpower)); in lbs_get_range()
687 range->txpower[0] = priv->txpower_min; in lbs_get_range()
688 range->txpower[1] = priv->txpower_max; in lbs_get_range()
/drivers/net/wireless/rt2x00/
Drt73usb.c761 struct rf_channel *rf, const int txpower) in rt73usb_config_channel() argument
767 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt73usb_config_channel()
778 if (txpower > MAX_TXPOWER && txpower <= (MAX_TXPOWER + r94)) in rt73usb_config_channel()
779 r94 += txpower - MAX_TXPOWER; in rt73usb_config_channel()
780 else if (txpower < MIN_TXPOWER && txpower >= (MIN_TXPOWER - r94)) in rt73usb_config_channel()
781 r94 += txpower; in rt73usb_config_channel()
803 const int txpower) in rt73usb_config_txpower() argument
812 rt73usb_config_channel(rt2x00dev, &rf, txpower); in rt73usb_config_txpower()
Drt61pci.c880 struct rf_channel *rf, const int txpower) in rt61pci_config_channel() argument
886 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt61pci_config_channel()
897 if (txpower > MAX_TXPOWER && txpower <= (MAX_TXPOWER + r94)) in rt61pci_config_channel()
898 r94 += txpower - MAX_TXPOWER; in rt61pci_config_channel()
899 else if (txpower < MIN_TXPOWER && txpower >= (MIN_TXPOWER - r94)) in rt61pci_config_channel()
900 r94 += txpower; in rt61pci_config_channel()
926 const int txpower) in rt61pci_config_txpower() argument
935 rt61pci_config_channel(rt2x00dev, &rf, txpower); in rt61pci_config_txpower()
Drt2500usb.c586 struct rf_channel *rf, const int txpower) in rt2500usb_config_channel() argument
591 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500usb_config_channel()
617 const int txpower) in rt2500usb_config_txpower() argument
622 rt2x00_set_field32(&rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500usb_config_txpower()
Drt2500pci.c467 struct rf_channel *rf, const int txpower) in rt2500pci_config_channel() argument
474 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500pci_config_channel()
536 const int txpower) in rt2500pci_config_txpower() argument
541 rt2x00_set_field32(&rf3, RF3_TXPOWER, TXPOWER_TO_DEV(txpower)); in rt2500pci_config_txpower()
Drt2400pci.c491 static void rt2400pci_config_txpower(struct rt2x00_dev *rt2x00dev, int txpower) in rt2400pci_config_txpower() argument
493 rt2400pci_bbp_write(rt2x00dev, 3, TXPOWER_TO_DEV(txpower)); in rt2400pci_config_txpower()
/drivers/net/wireless/ipw2x00/
Dipw2100.c6845 range->txpower[i] = level / 16; in ipw2100_wx_get_range()
7234 if (ipw_radio_kill_sw(priv, wrqu->txpower.disabled)) in ipw2100_wx_set_txpow()
7240 if ((wrqu->txpower.flags & IW_TXPOW_TYPE) != IW_TXPOW_DBM) in ipw2100_wx_set_txpow()
7243 if (wrqu->txpower.fixed == 0) in ipw2100_wx_set_txpow()
7246 if (wrqu->txpower.value < IPW_TX_POWER_MIN_DBM || in ipw2100_wx_set_txpow()
7247 wrqu->txpower.value > IPW_TX_POWER_MAX_DBM) in ipw2100_wx_set_txpow()
7250 value = wrqu->txpower.value; in ipw2100_wx_set_txpow()
7278 wrqu->txpower.disabled = (priv->status & STATUS_RF_KILL_MASK) ? 1 : 0; in ipw2100_wx_get_txpow()
7281 wrqu->txpower.fixed = 0; in ipw2100_wx_get_txpow()
7282 wrqu->txpower.value = IPW_TX_POWER_MAX_DBM; in ipw2100_wx_get_txpow()
[all …]
/drivers/net/wireless/hostap/
Dhostap_wlan.h714 int txpower; /* if txpower_type == PRISM2_TXPOWER_FIXED */ member
Dhostap_ioctl.c1568 local->txpower = rrq->value; in prism2_ioctl_siwtxpow()
1569 val = prism2_txpower_dBm_to_hfa386x(local->txpower); in prism2_ioctl_siwtxpow()
1610 rrq->value = local->txpower; in prism2_ioctl_giwtxpow()
/drivers/staging/at76_usb/
Dat76_usb.c2109 range->txpower[0] = 15; in at76_iw_handler_get_range()