Home
last modified time | relevance | path

Searched refs:tx_ant (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_main.c267 static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, in mt76x2_set_antenna() argument
272 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
277 dev->chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
278 dev->mt76.antenna_mask = tx_ant; in mt76x2_set_antenna()
288 static int mt76x2_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, in mt76x2_get_antenna() argument
294 *tx_ant = dev->mt76.antenna_mask; in mt76x2_get_antenna()
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2x00mac.c728 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument
737 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna()
743 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna()
752 if (tx_ant == 3 && def->tx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna()
753 tx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna()
762 setup.tx = tx_ant; in rt2x00mac_set_antenna()
773 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument
782 *tx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna()
784 *tx_ant = active->tx; in rt2x00mac_get_antenna()
Drt2x00.h1477 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
1478 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/Linux-v4.19/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c708 ath5k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath5k_set_antenna() argument
712 if (tx_ant == 1 && rx_ant == 1) in ath5k_set_antenna()
714 else if (tx_ant == 2 && rx_ant == 2) in ath5k_set_antenna()
716 else if ((tx_ant & 3) == 3 && (rx_ant & 3) == 3) in ath5k_set_antenna()
725 ath5k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath5k_get_antenna() argument
731 *tx_ant = 1; *rx_ant = 1; break; in ath5k_get_antenna()
733 *tx_ant = 2; *rx_ant = 2; break; in ath5k_get_antenna()
735 *tx_ant = 3; *rx_ant = 3; break; in ath5k_get_antenna()
Dphy.c2300 u8 def_ant, tx_ant; in ath5k_hw_set_antenna_mode() local
2316 tx_ant = 0; in ath5k_hw_set_antenna_mode()
2325 tx_ant = 1; in ath5k_hw_set_antenna_mode()
2334 tx_ant = 2; in ath5k_hw_set_antenna_mode()
2343 tx_ant = 0; in ath5k_hw_set_antenna_mode()
2351 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode()
2359 tx_ant = 1; /* variable */ in ath5k_hw_set_antenna_mode()
2368 tx_ant = 2; in ath5k_hw_set_antenna_mode()
2379 ah->ah_tx_ant = tx_ant; in ath5k_hw_set_antenna_mode()
/Linux-v4.19/net/mac80211/
Dtrace.h1134 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1136 TP_ARGS(local, tx_ant, rx_ant, ret),
1140 __field(u32, tx_ant)
1147 __entry->tx_ant = tx_ant;
1154 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
1159 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1161 TP_ARGS(local, tx_ant, rx_ant, ret),
1165 __field(u32, tx_ant)
1172 __entry->tx_ant = tx_ant;
1179 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
Ddriver-ops.h651 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument
656 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
657 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
662 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument
667 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
668 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
Dcfg.c3381 static int ieee80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in ieee80211_set_antenna() argument
3388 return drv_set_antenna(local, tx_ant, rx_ant); in ieee80211_set_antenna()
3391 static int ieee80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in ieee80211_get_antenna() argument
3395 return drv_get_antenna(local, tx_ant, rx_ant); in ieee80211_get_antenna()
/Linux-v4.19/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1535 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument
1541 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna()
1544 tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1551 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1555 antenna = tx_ant ? ANTENNA_SEL_UFL : ANTENNA_SEL_INT; in rsi_mac80211_set_antenna()
1561 tx_ant ? "UFL" : "INT"); in rsi_mac80211_set_antenna()
1586 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument
1593 *tx_ant = (common->ant_in_use == ANTENNA_SEL_UFL) ? 1 : 0; in rsi_mac80211_get_antenna()
/Linux-v4.19/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c1828 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument
1835 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna()
1842 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna()
1845 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna()
1846 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna()
1849 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna()
1851 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna()
1859 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna()
1883 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna()
1891 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument
[all …]
Dioctl.h328 u32 tx_ant; member
Dsta_cmdresp.c468 priv->tx_ant = le16_to_cpu(ant_mimo->tx_ant_mode); in mwifiex_ret_rf_antenna()
478 priv->tx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
Dinit.c121 priv->tx_ant = 0; in mwifiex_init_priv()
Dsta_cmd.c320 tx_ant); in mwifiex_cmd_rf_antenna()
329 ant_siso->ant_mode = cpu_to_le16((u16)ant_cfg->tx_ant); in mwifiex_cmd_rf_antenna()
/Linux-v4.19/net/wireless/
Drdev-ops.h815 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument
818 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
819 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
825 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument
829 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
833 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Dmain.c2232 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument
2238 rx_ant |= tx_ant; in ath9k_set_antenna()
2240 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna()
2244 sc->ant_tx = tx_ant; in ath9k_set_antenna()
2255 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna()
2261 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument
2265 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
Dhtc_drv_main.c1841 static int ath9k_htc_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, in ath9k_htc_get_antenna() argument
1847 *tx_ant = pBase->txMask; in ath9k_htc_get_antenna()
1850 *tx_ant = 0; in ath9k_htc_get_antenna()
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/mvm/
Dscan.c205 u32 tx_ant; in iwl_mvm_scan_rate_n_flags() local
210 tx_ant = BIT(mvm->scan_last_antenna_idx) << RATE_MCS_ANT_POS; in iwl_mvm_scan_rate_n_flags()
214 tx_ant); in iwl_mvm_scan_rate_n_flags()
216 return cpu_to_le32(IWL_RATE_6M_PLCP | tx_ant); in iwl_mvm_scan_rate_n_flags()
/Linux-v4.19/drivers/staging/rtlwifi/phydm/
Dphydm.c132 u8 rx_ant = 0, tx_ant = 0; in phydm_init_trx_antenna_setting() local
136 tx_ant = (u8)odm_get_bb_reg(dm, ODM_REG(BB_TX_PATH, dm), in phydm_init_trx_antenna_setting()
138 dm->tx_ant_status = (tx_ant & 0xf); in phydm_init_trx_antenna_setting()
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c3244 u32 *tx_ant, u32 *rx_ant) in ath6kl_get_antenna() argument
3247 *tx_ant = ar->hw.tx_ant; in ath6kl_get_antenna()
3947 ar->hw.tx_ant = 0x3; /* mask, 2 antenna */ in ath6kl_cfg80211_init()
3952 ar->hw.tx_ant = 1; in ath6kl_cfg80211_init()
3956 wiphy->available_antennas_tx = ar->hw.tx_ant; in ath6kl_cfg80211_init()
Dcore.h785 u8 tx_ant; member
/Linux-v4.19/drivers/staging/rtl8723bs/include/
Drtl8723b_xmit.h147 u32 tx_ant:4; member
/Linux-v4.19/drivers/net/wireless/ath/ath10k/
Dmac.c4365 static int ath10k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath10k_get_antenna() argument
4371 *tx_ant = ar->cfg_tx_chainmask; in ath10k_get_antenna()
4575 static int __ath10k_set_antenna(struct ath10k *ar, u32 tx_ant, u32 rx_ant) in __ath10k_set_antenna() argument
4581 ath10k_check_chain_mask(ar, tx_ant, "tx"); in __ath10k_set_antenna()
4584 ar->cfg_tx_chainmask = tx_ant; in __ath10k_set_antenna()
4592 tx_ant); in __ath10k_set_antenna()
4595 ret, tx_ant); in __ath10k_set_antenna()
4613 static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath10k_set_antenna() argument
4619 ret = __ath10k_set_antenna(ar, tx_ant, rx_ant); in ath10k_set_antenna()
/Linux-v4.19/include/net/
Dmac80211.h3708 int (*set_antenna)(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
3709 int (*get_antenna)(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
Dcfg80211.h3325 int (*set_antenna)(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant);
3326 int (*get_antenna)(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant);

12