Home
last modified time | relevance | path

Searched refs:rx_ant (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dpci_main.c114 u32 rx_ant) in mt76x2_set_antenna() argument
118 if (!tx_ant || tx_ant > 3 || tx_ant != rx_ant) in mt76x2_set_antenna()
/freebsd/sys/dev/iwm/
H A Dif_iwm_scan.c170 uint8_t rx_ant; in iwm_scan_rx_chain() local
172 rx_ant = iwm_get_valid_rx_ant(sc); in iwm_scan_rx_chain()
173 rx_chain = rx_ant << IWM_PHY_RX_CHAIN_VALID_POS; in iwm_scan_rx_chain()
174 rx_chain |= rx_ant << IWM_PHY_RX_CHAIN_FORCE_MIMO_SEL_POS; in iwm_scan_rx_chain()
175 rx_chain |= rx_ant << IWM_PHY_RX_CHAIN_FORCE_SEL_POS; in iwm_scan_rx_chain()
/freebsd/sys/contrib/dev/rtw89/
H A Dmac80211.c816 int rtw89_ops_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in rtw89_ops_set_antenna() argument
822 if (tx_ant != rx_ant || hweight32(tx_ant) != 1) in rtw89_ops_set_antenna()
824 } else if (rx_ant != hw->wiphy->available_antennas_rx && rx_ant != hal->antenna_rx) { in rtw89_ops_set_antenna()
830 hal->antenna_rx = rx_ant; in rtw89_ops_set_antenna()
839 int rtw89_ops_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in rtw89_ops_get_antenna() argument
845 *rx_ant = hal->antenna_rx; in rtw89_ops_get_antenna()
H A Dmac.c2909 u8 rx_ant; in rtw89_mac_setup_phycap() local
2921 rx_ant = u32_get_bits(phycap->w3, RTW89_C2HREG_PHYCAP_W3_ANT_RX_NUM); in rtw89_mac_setup_phycap()
2928 if (rx_ant == 1) in rtw89_mac_setup_phycap()
2931 if (tx_nss == 1 && tx_ant == 2 && rx_ant == 2) { in rtw89_mac_setup_phycap()
2949 tx_ant, hal->antenna_tx, rx_ant, hal->antenna_rx); in rtw89_mac_setup_phycap()
/freebsd/sys/dev/usb/wlan/
H A Dif_uralvar.h124 int rx_ant; member
H A Dif_rumvar.h160 int rx_ant; member
H A Dif_ural.c907 tap->wr_antenna = sc->rx_ant; in ural_bulk_read_callback()
1915 sc->rx_ant = (val >> 4) & 0x3; in ural_read_eeprom()
2060 ural_set_rxantenna(sc, sc->rx_ant); in ural_init()
H A Dif_rum.c1269 tap->wr_antenna = sc->rx_ant; in rum_bulk_read_callback()
2417 sc->rx_ant = (val >> 4) & 0x3; in rum_read_eeprom()
/freebsd/sys/dev/ral/
H A Drt2560var.h144 int rx_ant; member
H A Drt2661var.h142 int rx_ant; member
H A Drt2560.c321 "rxantenna", CTLFLAG_RW, &sc->rx_ant, 0, "rx antenna (0=auto)"); in rt2560_attach()
1186 tap->wr_antenna = sc->rx_ant; in rt2560_decryption_intr()
2418 sc->rx_ant = (val >> 4) & 0x3; in rt2560_read_config()
2606 rt2560_set_rxantenna(sc, sc->rx_ant); in rt2560_init_locked()
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dnvm.c225 u8 rx_ant = mvm->fw->valid_rx_ant; in iwl_parse_nvm_sections() local
280 rx_ant &= mvm->set_rx_ant; in iwl_parse_nvm_sections()
284 tx_ant, rx_ant); in iwl_parse_nvm_sections()
H A Dmvm.h1916 u8 rx_ant = mvm->fw->valid_rx_ant; in iwl_mvm_get_valid_rx_ant() local
1919 rx_ant &= mvm->nvm_data->valid_rx_ant; in iwl_mvm_get_valid_rx_ant()
1922 rx_ant &= mvm->set_rx_ant; in iwl_mvm_get_valid_rx_ant()
1924 return rx_ant; in iwl_mvm_get_valid_rx_ant()
2867 int iwl_mvm_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
2868 int iwl_mvm_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant);
H A Dscan.c153 u8 rx_ant; in iwl_mvm_scan_rx_chain() local
155 rx_ant = iwl_mvm_scan_rx_ant(mvm); in iwl_mvm_scan_rx_chain()
156 rx_chain = rx_ant << PHY_RX_CHAIN_VALID_POS; in iwl_mvm_scan_rx_chain()
157 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_MIMO_SEL_POS; in iwl_mvm_scan_rx_chain()
158 rx_chain |= rx_ant << PHY_RX_CHAIN_FORCE_SEL_POS; in iwl_mvm_scan_rx_chain()
H A Dmac80211.c312 int iwl_mvm_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in iwl_mvm_op_get_antenna() argument
316 *rx_ant = iwl_mvm_get_valid_rx_ant(mvm); in iwl_mvm_op_get_antenna()
320 int iwl_mvm_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in iwl_mvm_op_set_antenna() argument
337 mvm->set_rx_ant = rx_ant; in iwl_mvm_op_set_antenna()
339 iwl_reinit_cab(mvm->trans, mvm->nvm_data, tx_ant, rx_ant, mvm->fw); in iwl_mvm_op_set_antenna()
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-nvm-parse.c1456 const struct iwl_fw *fw, u8 tx_ant, u8 rx_ant) in iwl_parse_mei_nvm_data() argument
1485 if (rx_ant) in iwl_parse_mei_nvm_data()
1486 rx_chains &= rx_ant; in iwl_parse_mei_nvm_data()
2087 u8 rx_ant; in iwl_get_nvm() local
2181 rx_ant = nvm->valid_rx_ant & fw->valid_rx_ant; in iwl_get_nvm()
2186 rx_ant &= set_rx_ant; in iwl_get_nvm()
2188 iwl_init_sbands(trans, nvm, channel_profile, tx_ant, rx_ant, in iwl_get_nvm()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dmac.c4676 static int __ath12k_set_antenna(struct ath12k *ar, u32 tx_ant, u32 rx_ant) in __ath12k_set_antenna() argument
4685 if (ath12k_check_chain_mask(ar, rx_ant, false)) in __ath12k_set_antenna()
4689 ar->cfg_rx_chainmask = rx_ant; in __ath12k_set_antenna()
4706 rx_ant, ar->pdev->pdev_id); in __ath12k_set_antenna()
4709 ret, rx_ant); in __ath12k_set_antenna()
4713 ar->num_rx_chains = hweight32(rx_ant); in __ath12k_set_antenna()
5687 static int ath12k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath12k_mac_op_get_antenna() argument
5694 *rx_ant = ar->cfg_rx_chainmask; in ath12k_mac_op_get_antenna()
5701 static int ath12k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath12k_mac_op_set_antenna() argument
5707 ret = __ath12k_set_antenna(ar, tx_ant, rx_ant); in ath12k_mac_op_set_antenna()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dmain.c987 mt7921_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7921_set_antenna() argument
993 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7921_set_antenna()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmain.c934 mt7996_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7996_set_antenna() argument
941 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7996_set_antenna()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmain.c1001 mt7615_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7615_set_antenna() argument
1008 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7615_set_antenna()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dmac.c5920 static int __ath11k_set_antenna(struct ath11k *ar, u32 tx_ant, u32 rx_ant) in __ath11k_set_antenna() argument
5929 if (ath11k_check_chain_mask(ar, rx_ant, false)) in __ath11k_set_antenna()
5933 ar->cfg_rx_chainmask = rx_ant; in __ath11k_set_antenna()
5950 rx_ant, ar->pdev->pdev_id); in __ath11k_set_antenna()
5953 ret, rx_ant); in __ath11k_set_antenna()
5957 ar->num_rx_chains = get_num_chains(rx_ant); in __ath11k_set_antenna()
7081 static int ath11k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath11k_mac_op_get_antenna() argument
7088 *rx_ant = ar->cfg_rx_chainmask; in ath11k_mac_op_get_antenna()
7095 static int ath11k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath11k_mac_op_set_antenna() argument
7101 ret = __ath11k_set_antenna(ar, tx_ant, rx_ant); in ath11k_mac_op_set_antenna()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c1033 mt7915_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in mt7915_set_antenna() argument
1041 if (!tx_ant || tx_ant != rx_ant || ffs(tx_ant) > max_nss) in mt7915_set_antenna()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmac80211.c1700 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in mt76_get_antenna() argument
1707 *rx_ant = phy->antenna_mask; in mt76_get_antenna()
H A Dmt76.h1355 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dmac.c4814 static int ath10k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) in ath10k_get_antenna() argument
4821 *rx_ant = ar->cfg_rx_chainmask; in ath10k_get_antenna()
5019 static int __ath10k_set_antenna(struct ath10k *ar, u32 tx_ant, u32 rx_ant) in __ath10k_set_antenna() argument
5027 is_valid_rx_chain_mask = ath10k_check_chain_mask(ar, rx_ant, "rx"); in __ath10k_set_antenna()
5033 ar->cfg_rx_chainmask = rx_ant; in __ath10k_set_antenna()
5048 rx_ant); in __ath10k_set_antenna()
5051 ret, rx_ant); in __ath10k_set_antenna()
5061 static int ath10k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) in ath10k_set_antenna() argument
5067 ret = __ath10k_set_antenna(ar, tx_ant, rx_ant); in ath10k_set_antenna()

12