Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dpci_main.c109 static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, in mt76x2_set_antenna() argument
114 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
119 dev->chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna()
120 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/
Drt2x00mac.c732 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rt2x00mac_set_antenna() argument
741 if (!tx_ant || (tx_ant & ~3) || !rx_ant || (rx_ant & ~3)) in rt2x00mac_set_antenna()
747 if (ant->flags & ANTENNA_TX_DIVERSITY && tx_ant != 3) in rt2x00mac_set_antenna()
756 if (tx_ant == 3 && def->tx == ANTENNA_SW_DIVERSITY) { in rt2x00mac_set_antenna()
757 tx_ant = ANTENNA_SW_DIVERSITY; in rt2x00mac_set_antenna()
766 setup.tx = tx_ant; in rt2x00mac_set_antenna()
777 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rt2x00mac_get_antenna() argument
786 *tx_ant = ANTENNA_HW_DIVERSITY; in rt2x00mac_get_antenna()
788 *tx_ant = active->tx; in rt2x00mac_get_antenna()
Drt2x00.h1479 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
1480 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c706 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()
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()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c734 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument
741 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
744 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7915_set_antenna()
745 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7915_set_antenna()
749 phy->mt76->antenna_mask = tx_ant; in mt7915_set_antenna()
753 tx_ant <<= 2; in mt7915_set_antenna()
755 tx_ant <<= 1; in mt7915_set_antenna()
757 phy->chainmask = tx_ant; in mt7915_set_antenna()
Dmcu.c1757 u8 bfee_nr, bfer_nr, n, tx_ant = hweight8(phy->chainmask) - 1; in mt7915_mcu_sta_bfer_vht() local
1772 bf->nr = min_t(u8, n, tx_ant); in mt7915_mcu_sta_bfer_vht()
1856 int tx_ant = hweight8(phy->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv() local
1876 bf->ibf_nrow = tx_ant; in mt7915_mcu_sta_bfer_tlv()
1886 if (bf->bf_cap & MT_EBF && bf->nr != tx_ant) in mt7915_mcu_sta_bfer_tlv()
1887 bf->mem_20m = matrix[tx_ant][bf->nc]; in mt7915_mcu_sta_bfer_tlv()
1911 int tx_ant = hweight8(phy->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv() local
1930 if (nr == 1 && tx_ant == 2) in mt7915_mcu_sta_bfee_tlv()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c921 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument
928 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
931 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7615_set_antenna()
932 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7615_set_antenna()
936 phy->mt76->antenna_mask = tx_ant; in mt7615_set_antenna()
939 tx_ant <<= 2; in mt7615_set_antenna()
941 tx_ant <<= 1; in mt7615_set_antenna()
943 phy->chainmask = tx_ant; in mt7615_set_antenna()
/kernel/linux/linux-5.10/net/mac80211/
Dtrace.h1177 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1179 TP_ARGS(local, tx_ant, rx_ant, ret),
1183 __field(u32, tx_ant)
1190 __entry->tx_ant = tx_ant;
1197 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
1202 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret),
1204 TP_ARGS(local, tx_ant, rx_ant, ret),
1208 __field(u32, tx_ant)
1215 __entry->tx_ant = tx_ant;
1222 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
Ddriver-ops.h655 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument
660 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
661 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
666 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument
671 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
672 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1572 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument
1578 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna()
1581 tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1588 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna()
1592 antenna = tx_ant ? ANTENNA_SEL_UFL : ANTENNA_SEL_INT; in rsi_mac80211_set_antenna()
1598 tx_ant ? "UFL" : "INT"); in rsi_mac80211_set_antenna()
1623 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument
1630 *tx_ant = (common->ant_in_use == ANTENNA_SEL_UFL) ? 1 : 0; in rsi_mac80211_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c1848 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument
1855 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna()
1862 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna()
1865 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna()
1866 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna()
1869 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna()
1871 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna()
1879 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna()
1903 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna()
1911 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument
[all …]
Dioctl.h329 u32 tx_ant; member
Dsta_cmdresp.c467 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()
Dinit.c120 priv->tx_ant = 0; in mwifiex_init_priv()
/kernel/linux/linux-5.10/net/wireless/
Drdev-ops.h839 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument
842 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
843 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
849 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument
853 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
857 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
Dsta.h453 u8 tx_ant; member
Dscan.c210 u32 tx_ant; in iwl_mvm_scan_rate_n_flags() local
213 tx_ant = BIT(mvm->scan_last_antenna_idx) << RATE_MCS_ANT_POS; in iwl_mvm_scan_rate_n_flags()
217 tx_ant); in iwl_mvm_scan_rate_n_flags()
219 return cpu_to_le32(IWL_RATE_6M_PLCP | tx_ant); in iwl_mvm_scan_rate_n_flags()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dmain.c2346 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument
2352 rx_ant |= tx_ant; in ath9k_set_antenna()
2354 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna()
2358 sc->ant_tx = tx_ant; in ath9k_set_antenna()
2369 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna()
2375 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument
2379 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
Dhtc_drv_main.c1842 static int ath9k_htc_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, in ath9k_htc_get_antenna() argument
1848 *tx_ant = pBase->txMask; in ath9k_htc_get_antenna()
1851 *tx_ant = 0; in ath9k_htc_get_antenna()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dmac.c3841 static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant) in __ath11k_set_antenna() argument
3847 if (ath11k_check_chain_mask(ar, tx_ant, true)) in __ath11k_set_antenna()
3853 ar->cfg_tx_chainmask = tx_ant; in __ath11k_set_antenna()
3861 tx_ant, ar->pdev->pdev_id); in __ath11k_set_antenna()
3864 ret, tx_ant); in __ath11k_set_antenna()
3868 ar->num_tx_chains = get_num_chains(tx_ant); in __ath11k_set_antenna()
4755 static int ath11k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath11k_mac_op_get_antenna() argument
4761 *tx_ant = ar->cfg_tx_chainmask; in ath11k_mac_op_get_antenna()
4769 static int ath11k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath11k_mac_op_set_antenna() argument
4775 ret = __ath11k_set_antenna(ar, tx_ant, rx_ant); in ath11k_mac_op_set_antenna()
/kernel/linux/linux-5.10/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()
3945 ar->hw.tx_ant = 0x3; /* mask, 2 antenna */ in ath6kl_cfg80211_init()
3950 ar->hw.tx_ant = 1; in ath6kl_cfg80211_init()
3954 wiphy->available_antennas_tx = ar->hw.tx_ant; in ath6kl_cfg80211_init()
Dcore.h785 u8 tx_ant; member
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmac80211.c1193 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in mt76_get_antenna() argument
1199 *tx_ant = phy->antenna_mask; in mt76_get_antenna()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Drtl8723b_xmit.h146 u32 tx_ant:4; member

12