Lines Matching refs:ah

27 	struct ath_hw *ah = sc->sc_ah;
30 if (ah->led_pin < 0) {
31 if (AR_SREV_9287(ah))
32 ah->led_pin = ATH_LED_PIN_9287;
33 else if (AR_SREV_9485(ah))
34 ah->led_pin = ATH_LED_PIN_9485;
35 else if (AR_SREV_9300(ah))
36 ah->led_pin = ATH_LED_PIN_9300;
37 else if (AR_SREV_9462(ah) || AR_SREV_9565(ah))
38 ah->led_pin = ATH_LED_PIN_9462;
40 ah->led_pin = ATH_LED_PIN_DEF;
44 ath9k_hw_gpio_request_out(ah, ah->led_pin, "ath9k-led",
48 ath9k_hw_set_gpio(ah, ah->led_pin, ah->config.led_active_high ? 0 : 1);
106 struct ath_hw *ah = sc->sc_ah;
110 is_blocked = ath9k_hw_gpio_get(ah, ah->rfkill_gpio) ==
111 ah->rfkill_polarity;
127 struct ath_hw *ah = sc->sc_ah;
129 if (ah->caps.hw_caps & ATH9K_HW_CAP_RFSILENT)
145 struct ath_hw *ah = sc->sc_ah;
147 if (ath9k_hw_gpio_get(sc->sc_ah, ah->btcoex_hw.btpriority_gpio))
175 struct ath_hw *ah = sc->sc_ah;
178 if (ar9003_mci_state(ah, MCI_STATE_NEED_FTP_STOMP) &&
180 ah->btcoex_hw.mci.stomp_ftp =
183 ah->btcoex_hw.mci.stomp_ftp = false;
197 struct ath_hw *ah = sc->sc_ah;
214 if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI) {
219 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI))
225 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI)) {
235 ath9k_hw_btcoex_bt_stomp(ah, stomp_type);
236 ath9k_hw_btcoex_enable(ah);
258 struct ath_hw *ah = sc->sc_ah;
265 (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI) &&
267 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE);
269 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW);
271 ath9k_hw_btcoex_enable(ah);
299 struct ath_hw *ah = sc->sc_ah;
301 if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_3WIRE &&
302 ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_MCI)
305 ath_dbg(ath9k_hw_common(ah), BTCOEX, "Starting btcoex timers\n");
324 struct ath_hw *ah = sc->sc_ah;
326 if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_3WIRE &&
327 ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_MCI)
330 ath_dbg(ath9k_hw_common(ah), BTCOEX, "Stopping btcoex timers\n");
366 struct ath_hw *ah = sc->sc_ah;
368 if (ah->btcoex_hw.enabled ||
369 ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_NONE)
372 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI))
373 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT,
376 ath9k_hw_btcoex_set_weight(ah, 0, 0,
378 ath9k_hw_btcoex_enable(ah);
384 struct ath_hw *ah = sc->sc_ah;
386 if (!ah->btcoex_hw.enabled ||
387 ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_NONE)
391 ath9k_hw_btcoex_disable(ah);
393 if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI)
399 struct ath_hw *ah = sc->sc_ah;
401 if (ath9k_hw_mci_is_enabled(ah))
404 enum ath_btcoex_scheme scheme = ath9k_hw_get_btcoex_scheme(ah);
415 struct ath_hw *ah = sc->sc_ah;
418 ath9k_hw_btcoex_init_scheme(ah);
437 ath9k_hw_btcoex_init_mci(ah);
456 struct ath_hw *ah = sc->sc_ah;
457 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;