Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x2/
Dpci_main.c113 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.1.9/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.h1493 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.1.9/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-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c970 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument
977 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
980 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7615_set_antenna()
981 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7615_set_antenna()
985 phy->mt76->antenna_mask = tx_ant; in mt7615_set_antenna()
988 tx_ant <<= 2; in mt7615_set_antenna()
990 tx_ant <<= 1; in mt7615_set_antenna()
992 phy->mt76->chainmask = tx_ant; in mt7615_set_antenna()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c951 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument
958 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
961 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7915_set_antenna()
962 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7915_set_antenna()
966 phy->mt76->antenna_mask = tx_ant; in mt7915_set_antenna()
969 tx_ant <<= dev->chainshift; in mt7915_set_antenna()
971 phy->mt76->chainmask = tx_ant; in mt7915_set_antenna()
Dtestmode.h63 u8 tx_ant; member
Dtestmode.c453 u8 tx_ant = td->tx_antenna_mask; in mt7915_tm_set_tx_frames() local
456 tx_ant >>= dev->chainshift; in mt7915_tm_set_tx_frames()
457 phy->test.spe_idx = spe_idx_map[tx_ant]; in mt7915_tm_set_tx_frames()
535 tx_cont->tx_ant = td->tx_antenna_mask; in mt7915_tm_set_tx_cont()
Dmcu.c991 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_is_ebf_supported() local
997 if (!bfee && tx_ant < 2) in mt7915_is_ebf_supported()
1067 u8 tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_vht() local
1080 bf->nrow = min_t(u8, min_t(u8, snd_dim, sts), tx_ant); in mt7915_mcu_sta_bfer_vht()
1087 bf->nrow = tx_ant; in mt7915_mcu_sta_bfer_vht()
1162 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfer_tlv() local
1199 bf->ibf_nrow = tx_ant; in mt7915_mcu_sta_bfer_tlv()
1206 if (ebf && bf->nrow != tx_ant) in mt7915_mcu_sta_bfer_tlv()
1207 bf->mem_20m = matrix[tx_ant][bf->ncol]; in mt7915_mcu_sta_bfer_tlv()
1231 int tx_ant = hweight8(phy->mt76->chainmask) - 1; in mt7915_mcu_sta_bfee_tlv() local
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c1274 mt7921_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7921_set_antenna() argument
1280 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7921_set_antenna()
1283 if ((BIT(hweight8(tx_ant)) - 1) != tx_ant) in mt7921_set_antenna()
1284 tx_ant = BIT(ffs(tx_ant) - 1) - 1; in mt7921_set_antenna()
1288 phy->mt76->antenna_mask = tx_ant; in mt7921_set_antenna()
1289 phy->mt76->chainmask = tx_ant; in mt7921_set_antenna()
/linux-6.1.9/net/mac80211/
Dtrace.h1214 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
Ddriver-ops.h633 u32 tx_ant, u32 rx_ant) in drv_set_antenna() argument
638 ret = local->ops->set_antenna(&local->hw, tx_ant, rx_ant); in drv_set_antenna()
639 trace_drv_set_antenna(local, tx_ant, rx_ant, ret); in drv_set_antenna()
644 u32 *tx_ant, u32 *rx_ant) in drv_get_antenna() argument
649 ret = local->ops->get_antenna(&local->hw, tx_ant, rx_ant); in drv_get_antenna()
650 trace_drv_get_antenna(local, *tx_ant, *rx_ant, ret); in drv_get_antenna()
/linux-6.1.9/drivers/net/wireless/rsi/
Drsi_91x_mac80211.c1591 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.1.9/drivers/net/wireless/marvell/mwifiex/
Dcfg80211.c1913 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 …]
Dioctl.h317 u32 tx_ant; member
Dsta_cmdresp.c456 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()
Dinit.c109 priv->tx_ant = 0; in mwifiex_init_priv()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dmac80211.c719 int rtw89_ops_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rtw89_ops_set_antenna() argument
728 hal->antenna_tx = tx_ant; in rtw89_ops_set_antenna()
737 int rtw89_ops_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rtw89_ops_get_antenna() argument
742 *tx_ant = hal->antenna_tx; in rtw89_ops_get_antenna()
/linux-6.1.9/net/wireless/
Drdev-ops.h844 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.1.9/drivers/net/wireless/intel/iwlwifi/mvm/
Dsta.h418 u8 tx_ant; member
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dmain.c2342 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()
Dhtc_drv_main.c1843 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.1.9/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c3245 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.1.9/drivers/staging/rtl8723bs/include/
Drtl8723b_xmit.h146 u32 tx_ant:4; member

12