/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | pci_main.c | 114 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 D | if_iwm_scan.c | 170 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 D | mac80211.c | 816 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 D | mac.c | 2909 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 D | if_uralvar.h | 124 int rx_ant; member
|
H A D | if_rumvar.h | 160 int rx_ant; member
|
H A D | if_ural.c | 907 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 D | if_rum.c | 1269 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 D | rt2560var.h | 144 int rx_ant; member
|
H A D | rt2661var.h | 142 int rx_ant; member
|
H A D | rt2560.c | 321 "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 D | nvm.c | 225 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 D | mvm.h | 1916 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 D | scan.c | 153 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 D | mac80211.c | 312 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 D | iwl-nvm-parse.c | 1456 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 D | mac.c | 4676 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 D | main.c | 987 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 D | main.c | 934 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 D | main.c | 1001 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 D | mac.c | 5920 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 D | main.c | 1033 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 D | mac80211.c | 1700 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 D | mt76.h | 1355 int mt76_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant);
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | mac.c | 4814 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()
|