Lines Matching refs:ah
33 struct ath_hw *ah = priv->ah; in ath_detect_bt_priority() local
35 if (ath9k_hw_gpio_get(ah, ah->btcoex_hw.btpriority_gpio)) in ath_detect_bt_priority()
44 ath_dbg(ath9k_hw_common(ah), BTCOEX, in ath_detect_bt_priority()
49 ath_dbg(ath9k_hw_common(ah), BTCOEX, in ath_detect_bt_priority()
69 struct ath_common *common = ath9k_hw_common(priv->ah); in ath_btcoex_period_work()
82 ath9k_hw_btcoex_bt_stomp(priv->ah, test_bit(OP_BT_SCAN, &priv->op_flags) ? in ath_btcoex_period_work()
85 ath9k_hw_btcoex_enable(priv->ah); in ath_btcoex_period_work()
102 struct ath_hw *ah = priv->ah; in ath_btcoex_duty_cycle_work() local
104 struct ath_common *common = ath9k_hw_common(ah); in ath_btcoex_duty_cycle_work()
110 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); in ath_btcoex_duty_cycle_work()
112 ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_LOW); in ath_btcoex_duty_cycle_work()
114 ath9k_hw_btcoex_enable(priv->ah); in ath_btcoex_duty_cycle_work()
137 struct ath_hw *ah = priv->ah; in ath_htc_resume_btcoex_work() local
139 ath_dbg(ath9k_hw_common(ah), BTCOEX, "Starting btcoex work\n"); in ath_htc_resume_btcoex_work()
160 struct ath_hw *ah = priv->ah; in ath9k_htc_start_btcoex() local
162 if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE) { in ath9k_htc_start_btcoex()
163 ath9k_hw_btcoex_set_weight(ah, AR_BT_COEX_WGHT, in ath9k_htc_start_btcoex()
165 ath9k_hw_btcoex_enable(ah); in ath9k_htc_start_btcoex()
172 struct ath_hw *ah = priv->ah; in ath9k_htc_stop_btcoex() local
174 if (ah->btcoex_hw.enabled && in ath9k_htc_stop_btcoex()
175 ath9k_hw_get_btcoex_scheme(ah) != ATH_BTCOEX_CFG_NONE) { in ath9k_htc_stop_btcoex()
176 if (ah->btcoex_hw.scheme == ATH_BTCOEX_CFG_3WIRE) in ath9k_htc_stop_btcoex()
178 ath9k_hw_btcoex_disable(ah); in ath9k_htc_stop_btcoex()
184 struct ath_hw *ah = priv->ah; in ath9k_htc_init_btcoex() local
185 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_init_btcoex()
192 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_NONE; in ath9k_htc_init_btcoex()
197 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_3WIRE; in ath9k_htc_init_btcoex()
200 switch (ath9k_hw_get_btcoex_scheme(priv->ah)) { in ath9k_htc_init_btcoex()
204 priv->ah->btcoex_hw.btactive_gpio = 7; in ath9k_htc_init_btcoex()
205 priv->ah->btcoex_hw.btpriority_gpio = 6; in ath9k_htc_init_btcoex()
206 priv->ah->btcoex_hw.wlanactive_gpio = 8; in ath9k_htc_init_btcoex()
208 ath9k_hw_btcoex_init_3wire(priv->ah); in ath9k_htc_init_btcoex()
211 ath9k_hw_init_btcoex_hw(priv->ah, qnum); in ath9k_htc_init_btcoex()
232 ath9k_hw_set_gpio(priv->ah, priv->ah->led_pin, in ath9k_led_work()
262 ath9k_hw_cfg_output(priv->ah, priv->ah->led_pin, in ath9k_configure_leds()
265 ath9k_hw_set_gpio(priv->ah, priv->ah->led_pin, 1); in ath9k_configure_leds()
273 if (AR_SREV_9287(priv->ah)) in ath9k_init_leds()
274 priv->ah->led_pin = ATH_LED_PIN_9287; in ath9k_init_leds()
275 else if (AR_SREV_9271(priv->ah)) in ath9k_init_leds()
276 priv->ah->led_pin = ATH_LED_PIN_9271; in ath9k_init_leds()
277 else if (AR_DEVID_7010(priv->ah)) in ath9k_init_leds()
278 priv->ah->led_pin = ATH_LED_PIN_7010; in ath9k_init_leds()
280 priv->ah->led_pin = ATH_LED_PIN_DEF; in ath9k_init_leds()
313 is_blocked = ath9k_hw_gpio_get(priv->ah, priv->ah->rfkill_gpio) == in ath_is_rfkill_set()
314 priv->ah->rfkill_polarity; in ath_is_rfkill_set()
330 if (priv->ah->caps.hw_caps & ATH9K_HW_CAP_RFSILENT) in ath9k_start_rfkill_poll()