/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A D | pci_main.c | 113 static int mt76x2_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, in mt76x2_set_antenna() argument 118 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna() 123 dev->mphy.chainmask = (tx_ant == 3) ? 0x202 : 0x101; in mt76x2_set_antenna() 124 dev->mphy.antenna_mask = tx_ant; in mt76x2_set_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00mac.c | 732 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()
|
A D | rt2x00.h | 1493 int rt2x00mac_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant); 1494 int rt2x00mac_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath5k/ |
A D | mac80211-ops.c | 708 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()
|
A 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-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7615/ |
A D | main.c | 973 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument 980 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna() 983 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7615_set_antenna() 984 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7615_set_antenna() 988 phy->mt76->antenna_mask = tx_ant; in mt7615_set_antenna() 991 tx_ant <<= 2; in mt7615_set_antenna() 993 tx_ant <<= 1; in mt7615_set_antenna() 995 phy->mt76->chainmask = tx_ant; in mt7615_set_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7996/ |
A D | main.c | 865 mt7996_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7996_set_antenna() argument 872 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7996_set_antenna() 875 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7996_set_antenna() 876 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7996_set_antenna() 880 phy->mt76->antenna_mask = tx_ant; in mt7996_set_antenna() 883 if (hweight8(tx_ant) == max_nss && band_idx < MT_BAND2) in mt7996_set_antenna() 886 else if (hweight8(tx_ant) == max_nss) in mt7996_set_antenna() 889 phy->mt76->chainmask = tx_ant << shift; in mt7996_set_antenna()
|
A D | mcu.c | 1145 u8 tx_ant = hweight8(phy->mt76->antenna_mask) - 1; in mt7996_mcu_sta_bfer_vht() local 1158 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7996_mcu_sta_bfer_vht() 1165 bf->nrow = tx_ant; in mt7996_mcu_sta_bfer_vht() 1296 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7996_mcu_sta_bfer_tlv() local 1335 bf->ibf_nrow = tx_ant; in mt7996_mcu_sta_bfer_tlv() 1342 if (ebf && bf->nrow != tx_ant) in mt7996_mcu_sta_bfer_tlv() 1343 bf->mem_20m = matrix[tx_ant][bf->ncol]; in mt7996_mcu_sta_bfer_tlv() 1367 int tx_ant = hweight8(phy->mt76->antenna_mask) - 1; in mt7996_mcu_sta_bfee_tlv() local 1394 bfee->fb_identity_matrix = (nrow == 1 && tx_ant == 2); in mt7996_mcu_sta_bfee_tlv()
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/ |
A D | testmode.h | 63 u8 tx_ant; member
|
A D | main.c | 978 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument 986 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna() 991 phy->mt76->antenna_mask = tx_ant; in mt7915_set_antenna() 994 if (is_mt7916(&dev->mt76) && band && hweight8(tx_ant) == max_nss) in mt7915_set_antenna() 997 phy->mt76->chainmask = tx_ant << (chainshift * band); in mt7915_set_antenna()
|
A D | mcu.c | 1011 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_is_ebf_supported() local 1017 if (!bfee && tx_ant < 2) in mt7915_is_ebf_supported() 1087 u8 tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_vht() local 1100 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7915_mcu_sta_bfer_vht() 1107 bf->nrow = tx_ant; in mt7915_mcu_sta_bfer_vht() 1182 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv() local 1219 bf->ibf_nrow = tx_ant; in mt7915_mcu_sta_bfer_tlv() 1226 if (ebf && bf->nrow != tx_ant) in mt7915_mcu_sta_bfer_tlv() 1227 bf->mem_20m = matrix[tx_ant][bf->ncol]; in mt7915_mcu_sta_bfer_tlv() 1251 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv() local [all …]
|
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7921/ |
A D | main.c | 1363 mt7921_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7921_set_antenna() argument 1369 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7921_set_antenna() 1372 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7921_set_antenna() 1373 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7921_set_antenna() 1377 phy->mt76->antenna_mask = tx_ant; in mt7921_set_antenna() 1378 phy->mt76->chainmask = tx_ant; in mt7921_set_antenna()
|
/linux-6.3-rc2/net/mac80211/ |
A D | trace.h | 1214 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), 1216 TP_ARGS(local, tx_ant, rx_ant, ret), 1220 __field(u32, tx_ant) 1227 __entry->tx_ant = tx_ant; 1234 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret 1239 TP_PROTO(struct ieee80211_local *local, u32 tx_ant, u32 rx_ant, int ret), 1241 TP_ARGS(local, tx_ant, rx_ant, ret), 1245 __field(u32, tx_ant) 1252 __entry->tx_ant = tx_ant; 1259 LOCAL_PR_ARG, __entry->tx_ant, __entry->rx_ant, __entry->ret
|
A D | driver-ops.h | 649 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument 654 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna() 655 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna() 660 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument 665 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna() 666 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/rsi/ |
A D | rsi_91x_mac80211.c | 1591 u32 tx_ant, u32 rx_ant) in rsi_mac80211_set_antenna() argument 1597 if (tx_ant > 1 || rx_ant > 1) { in rsi_mac80211_set_antenna() 1600 tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1607 __func__, tx_ant, rx_ant); in rsi_mac80211_set_antenna() 1611 antenna = tx_ant ? ANTENNA_SEL_UFL : ANTENNA_SEL_INT; in rsi_mac80211_set_antenna() 1617 tx_ant ? "UFL" : "INT"); in rsi_mac80211_set_antenna() 1642 u32 *tx_ant, u32 *rx_ant) in rsi_mac80211_get_antenna() argument 1649 *tx_ant = (common->ant_in_use == ANTENNA_SEL_UFL) ? 1 : 0; in rsi_mac80211_get_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/marvell/mwifiex/ |
A D | cfg80211.c | 1913 mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant) in mwifiex_cfg80211_set_antenna() argument 1920 if (!tx_ant || !rx_ant) in mwifiex_cfg80211_set_antenna() 1927 if (tx_ant != rx_ant) in mwifiex_cfg80211_set_antenna() 1930 if ((tx_ant & (tx_ant - 1)) && in mwifiex_cfg80211_set_antenna() 1931 (tx_ant != BIT(adapter->number_of_antenna) - 1)) in mwifiex_cfg80211_set_antenna() 1934 if ((tx_ant == BIT(adapter->number_of_antenna) - 1) && in mwifiex_cfg80211_set_antenna() 1936 tx_ant = RF_ANTENNA_AUTO; in mwifiex_cfg80211_set_antenna() 1944 if ((tx_ant == 0x1 && rx_ant == 0x1)) { in mwifiex_cfg80211_set_antenna() 1968 ant_cfg.tx_ant = tx_ant; in mwifiex_cfg80211_set_antenna() 1976 mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, u32 *tx_ant, u32 *rx_ant) in mwifiex_cfg80211_get_antenna() argument [all …]
|
A D | ioctl.h | 317 u32 tx_ant; member
|
A D | sta_cmdresp.c | 456 priv->tx_ant = le16_to_cpu(ant_mimo->tx_ant_mode); in mwifiex_ret_rf_antenna() 466 priv->tx_ant = le16_to_cpu(ant_siso->ant_mode); in mwifiex_ret_rf_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/realtek/rtw89/ |
A D | mac80211.c | 734 int rtw89_ops_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rtw89_ops_set_antenna() argument 743 hal->antenna_tx = tx_ant; in rtw89_ops_set_antenna() 752 int rtw89_ops_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rtw89_ops_get_antenna() argument 757 *tx_ant = hal->antenna_tx; in rtw89_ops_get_antenna()
|
/linux-6.3-rc2/net/wireless/ |
A D | rdev-ops.h | 844 u32 tx_ant, u32 rx_ant) in rdev_set_antenna() argument 847 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna() 848 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna() 854 u32 *tx_ant, u32 *rx_ant) in rdev_get_antenna() argument 858 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna() 862 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | sta.h | 418 u8 tx_ant; member
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath9k/ |
A D | main.c | 2342 static int ath9k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath9k_set_antenna() argument 2348 rx_ant |= tx_ant; in ath9k_set_antenna() 2350 if (!validate_antenna_mask(ah, rx_ant) || !tx_ant) in ath9k_set_antenna() 2354 sc->ant_tx = tx_ant; in ath9k_set_antenna() 2365 ah->txchainmask = fill_chainmask(ah->caps.tx_chainmask, tx_ant); in ath9k_set_antenna() 2371 static int ath9k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath9k_get_antenna() argument 2375 *tx_ant = sc->ant_tx; in ath9k_get_antenna()
|
A D | htc_drv_main.c | 1843 static int ath9k_htc_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, in ath9k_htc_get_antenna() argument 1849 *tx_ant = pBase->txMask; in ath9k_htc_get_antenna() 1852 *tx_ant = 0; in ath9k_htc_get_antenna()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath6kl/ |
A D | cfg80211.c | 3245 u32 *tx_ant, u32 *rx_ant) in ath6kl_get_antenna() argument 3248 *tx_ant = ar->hw.tx_ant; in ath6kl_get_antenna() 3948 ar->hw.tx_ant = 0x3; /* mask, 2 antenna */ in ath6kl_cfg80211_init() 3953 ar->hw.tx_ant = 1; in ath6kl_cfg80211_init() 3957 wiphy->available_antennas_tx = ar->hw.tx_ant; in ath6kl_cfg80211_init()
|
/linux-6.3-rc2/drivers/net/wireless/ath/ath12k/ |
A D | mac.c | 4273 static int __ath12k_set_antenna(struct ath12k *ar, u32 tx_ant, u32 rx_ant) in __ath12k_set_antenna() argument 4279 if (ath12k_check_chain_mask(ar, tx_ant, true)) in __ath12k_set_antenna() 4285 ar->cfg_tx_chainmask = tx_ant; in __ath12k_set_antenna() 4293 tx_ant, ar->pdev->pdev_id); in __ath12k_set_antenna() 4296 ret, tx_ant); in __ath12k_set_antenna() 4300 ar->num_tx_chains = hweight32(tx_ant); in __ath12k_set_antenna() 5269 static int ath12k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath12k_mac_op_get_antenna() argument 5275 *tx_ant = ar->cfg_tx_chainmask; in ath12k_mac_op_get_antenna() 5283 static int ath12k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath12k_mac_op_set_antenna() argument 5289 ret = __ath12k_set_antenna(ar, tx_ant, rx_ant); in ath12k_mac_op_set_antenna()
|