/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | pci_main.c | 122 static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, in mt76x2_set_antenna() argument 127 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna() 132 dev->mt76.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna() 133 dev->mt76.antenna_mask = tx_ant; in mt76x2_set_antenna() 143 static int mt76x2_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, in mt76x2_get_antenna() argument 149 *tx_ant = dev->mt76.antenna_mask; in mt76x2_get_antenna()
|
/Linux-v5.4/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00mac.c | 711 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument 720 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna() 726 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna() 735 if (tx_ant == 3 && def->tx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna() 736 tx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna() 745 setup.tx = tx_ant; in rt2x00mac_set_antenna() 756 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument 765 *tx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna() 767 *tx_ant = active->tx; in rt2x00mac_get_antenna()
|
D | rt2x00.h | 1477 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-v5.4/drivers/net/wireless/ath/ath5k/ |
D | mac80211-ops.c | 706 ath5k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath5k_set_antenna() argument 710 if (tx_ant == 1 && rx_ant == 1) in ath5k_set_antenna() 712 else if (tx_ant == 2 && rx_ant == 2) in ath5k_set_antenna() 714 else if ((tx_ant & 3) == 3 && (rx_ant & 3) == 3) in ath5k_set_antenna() 723 ath5k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath5k_get_antenna() argument 729 *tx_ant = 1; *rx_ant = 1; break; in ath5k_get_antenna() 731 *tx_ant = 2; *rx_ant = 2; break; in ath5k_get_antenna() 733 *tx_ant = 3; *rx_ant = 3; break; in ath5k_get_antenna()
|
D | phy.c | 2300 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-v5.4/net/mac80211/ |
D | trace.h | 1164 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), 1166 TP_ARGS(local, tx_ant, rx_ant, ret), 1170 __field(u32, tx_ant) 1177 __entry->tx_ant = tx_ant; 1184 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret 1189 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), 1191 TP_ARGS(local, tx_ant, rx_ant, ret), 1195 __field(u32, tx_ant) 1202 __entry->tx_ant = tx_ant; 1209 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
|
D | driver-ops.h | 656 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument 661 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna() 662 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna() 667 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument 672 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna() 673 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
|
D | cfg.c | 3484 static int ieee80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in ieee80211_set_antenna() argument 3491 return drv_set_antenna(local, tx_ant, rx_ant); in ieee80211_set_antenna() 3494 static int ieee80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in ieee80211_get_antenna() argument 3498 return drv_get_antenna(local, tx_ant, rx_ant); in ieee80211_get_antenna()
|
/Linux-v5.4/drivers/net/wireless/rsi/ |
D | rsi_91x_mac80211.c | 1604 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument 1610 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna() 1613 tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1620 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1624 antenna = tx_ant ? ANTENNA_SEL_UFL : ANTENNA_SEL_INT; in rsi_mac80211_set_antenna() 1630 tx_ant ? "UFL" : "INT"); in rsi_mac80211_set_antenna() 1655 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument 1662 *tx_ant = (common->ant_in_use == ANTENNA_SEL_UFL) ? 1 : 0; in rsi_mac80211_get_antenna()
|
/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/ |
D | cfg80211.c | 1864 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument 1871 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna() 1878 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna() 1881 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna() 1882 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna() 1885 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna() 1887 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna() 1895 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna() 1919 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna() 1927 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument [all …]
|
D | ioctl.h | 329 u32 tx_ant; member
|
D | sta_cmdresp.c | 467 priv->tx_ant = le16_to_cpu(ant_mimo->tx_ant_mode); in mwifiex_ret_rf_antenna() 477 priv->tx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
|
D | init.c | 120 priv->tx_ant = 0; in mwifiex_init_priv()
|
D | sta_cmd.c | 320 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-v5.4/net/wireless/ |
D | rdev-ops.h | 816 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument 819 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna() 820 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna() 826 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument 830 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna() 834 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
|
/Linux-v5.4/drivers/net/wireless/ath/ath9k/ |
D | main.c | 2231 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument 2237 rx_ant |= tx_ant; in ath9k_set_antenna() 2239 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna() 2243 sc->ant_tx = tx_ant; in ath9k_set_antenna() 2254 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna() 2260 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument 2264 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
|
D | htc_drv_main.c | 1841 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-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sta.h | 453 u8 tx_ant; member
|
D | scan.c | 211 u32 tx_ant; in iwl_mvm_scan_rate_n_flags() local 214 tx_ant = BIT(mvm->scan_last_antenna_idx) << RATE_MCS_ANT_POS; in iwl_mvm_scan_rate_n_flags() 218 tx_ant); in iwl_mvm_scan_rate_n_flags() 220 return cpu_to_le32(IWL_RATE_6M_PLCP | tx_ant); in iwl_mvm_scan_rate_n_flags()
|
D | tx.c | 318 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant() 1609 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
|
/Linux-v5.4/drivers/net/wireless/ath/ath6kl/ |
D | cfg80211.c | 3244 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()
|
D | core.h | 785 u8 tx_ant; member
|
/Linux-v5.4/drivers/staging/rtl8723bs/include/ |
D | rtl8723b_xmit.h | 147 u32 tx_ant:4; member
|
/Linux-v5.4/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 4465 static int ath10k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath10k_get_antenna() argument 4471 *tx_ant = ar->cfg_tx_chainmask; in ath10k_get_antenna() 4676 static int __ath10k_set_antenna(struct ath10k *ar, u32 tx_ant, u32 rx_ant) in __ath10k_set_antenna() argument 4682 ath10k_check_chain_mask(ar, tx_ant, "tx"); in __ath10k_set_antenna() 4685 ar->cfg_tx_chainmask = tx_ant; in __ath10k_set_antenna() 4693 tx_ant); in __ath10k_set_antenna() 4696 ret, tx_ant); in __ath10k_set_antenna() 4714 static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath10k_set_antenna() argument 4720 ret = __ath10k_set_antenna(ar, tx_ant, rx_ant); in ath10k_set_antenna()
|
/Linux-v5.4/include/net/ |
D | mac80211.h | 3921 int (*set_antenna)(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant); 3922 int (*get_antenna)(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|