Lines Matching refs:ah

70 	struct ath_hw *ah = sc->sc_ah;  in ath_fill_led_pin()  local
72 if (AR_SREV_9100(ah)) in ath_fill_led_pin()
75 if (ah->led_pin >= 0) { in ath_fill_led_pin()
76 if (!((1 << ah->led_pin) & AR_GPIO_OE_OUT_MASK)) in ath_fill_led_pin()
77 ath9k_hw_request_gpio(ah, ah->led_pin, "ath9k-led"); in ath_fill_led_pin()
81 if (AR_SREV_9287(ah)) in ath_fill_led_pin()
82 ah->led_pin = ATH_LED_PIN_9287; in ath_fill_led_pin()
84 ah->led_pin = ATH_LED_PIN_9485; in ath_fill_led_pin()
86 ah->led_pin = ATH_LED_PIN_9300; in ath_fill_led_pin()
88 ah->led_pin = ATH_LED_PIN_9462; in ath_fill_led_pin()
90 ah->led_pin = ATH_LED_PIN_DEF; in ath_fill_led_pin()
93 ath9k_hw_cfg_output(ah, ah->led_pin, AR_GPIO_OUTPUT_MUX_AS_OUTPUT); in ath_fill_led_pin()
96 ath9k_hw_set_gpio(ah, ah->led_pin, (ah->config.led_active_high) ? 0 : 1); in ath_fill_led_pin()
106 struct ath_hw *ah = sc->sc_ah; in ath_is_rfkill_set() local
110 is_blocked = ath9k_hw_gpio_get(ah, ah->rfkill_gpio) == in ath_is_rfkill_set()
111 ah->rfkill_polarity; in ath_is_rfkill_set()
127 struct ath_hw *ah = sc->sc_ah; in ath_start_rfkill_poll() local
129 if (ah->caps.hw_caps & ATH9K_HW_CAP_RFSILENT) in ath_start_rfkill_poll()
145 struct ath_hw *ah = sc->sc_ah; in ath_detect_bt_priority() local
147 if (ath9k_hw_gpio_get(sc->sc_ah, ah->btcoex_hw.btpriority_gpio)) in ath_detect_bt_priority()
175 struct ath_hw *ah = sc->sc_ah; in ath_mci_ftp_adjust() local
178 if (ar9003_mci_state(ah, MCI_STATE_NEED_FTP_STOMP) && in ath_mci_ftp_adjust()
180 ah->btcoex_hw.mci.stomp_ftp = in ath_mci_ftp_adjust()
183 ah->btcoex_hw.mci.stomp_ftp = false; in ath_mci_ftp_adjust()
197 struct ath_hw *ah = sc->sc_ah; in ath_btcoex_period_timer() local
214 if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI) { in ath_btcoex_period_timer()
219 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI)) in ath_btcoex_period_timer()
225 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI)) { in ath_btcoex_period_timer()
235 ath9k_hw_btcoex_bt_stomp(ah, stomp_type); in ath_btcoex_period_timer()
236 ath9k_hw_btcoex_enable(ah); in ath_btcoex_period_timer()
258 struct ath_hw *ah = sc->sc_ah; in ath_btcoex_no_stomp_timer() local
265 (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI) && in ath_btcoex_no_stomp_timer()
267 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); in ath_btcoex_no_stomp_timer()
269 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW); in ath_btcoex_no_stomp_timer()
271 ath9k_hw_btcoex_enable(ah); in ath_btcoex_no_stomp_timer()
301 struct ath_hw *ah = sc->sc_ah; in ath9k_btcoex_timer_resume() local
303 if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_3WIRE && in ath9k_btcoex_timer_resume()
304 ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_MCI) in ath9k_btcoex_timer_resume()
307 ath_dbg(ath9k_hw_common(ah), BTCOEX, "Starting btcoex timers\n"); in ath9k_btcoex_timer_resume()
326 struct ath_hw *ah = sc->sc_ah; in ath9k_btcoex_timer_pause() local
328 if (ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_3WIRE && in ath9k_btcoex_timer_pause()
329 ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_MCI) in ath9k_btcoex_timer_pause()
332 ath_dbg(ath9k_hw_common(ah), BTCOEX, "Stopping btcoex timers\n"); in ath9k_btcoex_timer_pause()
368 struct ath_hw *ah = sc->sc_ah; in ath9k_start_btcoex() local
370 if (ah->btcoex_hw.enabled || in ath9k_start_btcoex()
371 ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_NONE) in ath9k_start_btcoex()
374 if (!(ah->caps.hw_caps & ATH9K_HW_CAP_MCI)) in ath9k_start_btcoex()
375 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT, in ath9k_start_btcoex()
378 ath9k_hw_btcoex_set_weight(ah, 0, 0, in ath9k_start_btcoex()
380 ath9k_hw_btcoex_enable(ah); in ath9k_start_btcoex()
386 struct ath_hw *ah = sc->sc_ah; in ath9k_stop_btcoex() local
388 if (!ah->btcoex_hw.enabled || in ath9k_stop_btcoex()
389 ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_NONE) in ath9k_stop_btcoex()
393 ath9k_hw_btcoex_disable(ah); in ath9k_stop_btcoex()
395 if (ah->caps.hw_caps & ATH9K_HW_CAP_MCI) in ath9k_stop_btcoex()
401 struct ath_hw *ah = sc->sc_ah; in ath9k_deinit_btcoex() local
403 if (ath9k_hw_mci_is_enabled(ah)) in ath9k_deinit_btcoex()
410 struct ath_hw *ah = sc->sc_ah; in ath9k_init_btcoex() local
413 ath9k_hw_btcoex_init_scheme(ah); in ath9k_init_btcoex()
432 ath9k_hw_btcoex_init_mci(ah); in ath9k_init_btcoex()
451 struct ath_hw *ah = sc->sc_ah; in ath9k_dump_mci_btcoex() local
452 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; in ath9k_dump_mci_btcoex()