Lines Matching refs:ah
127 struct ath_hw *ah = common->ah;
134 if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ) {
135 channels = devm_kzalloc(ah->dev,
151 if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ) {
152 channels = devm_kzalloc(ah->dev,
172 void ath9k_cmn_setup_ht_cap(struct ath_hw *ah,
175 struct ath_common *common = ath9k_hw_common(ah);
185 if (ah->caps.hw_caps & ATH9K_HW_CAP_LDPC)
188 if (ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20)
194 if (AR_SREV_9271(ah) || AR_SREV_9330(ah) || AR_SREV_9485(ah) || AR_SREV_9565(ah))
196 else if (AR_SREV_9462(ah))
198 else if (AR_SREV_9300_20_OR_LATER(ah))
203 if (AR_SREV_9280_20_OR_LATER(ah)) {
211 tx_streams = ath9k_cmn_count_streams(ah->txchainmask, max_streams);
212 rx_streams = ath9k_cmn_count_streams(ah->rxchainmask, max_streams);
230 void ath9k_cmn_reload_chainmask(struct ath_hw *ah)
232 struct ath_common *common = ath9k_hw_common(ah);
234 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_HT))
237 if (ah->caps.hw_caps & ATH9K_HW_CAP_2GHZ)
238 ath9k_cmn_setup_ht_cap(ah,
240 if (ah->caps.hw_caps & ATH9K_HW_CAP_5GHZ)
241 ath9k_cmn_setup_ht_cap(ah,