Lines Matching +full:rfkill +full:- +full:gpio
2 * RFKILL support for ath5k
18 * 3. Neither the names of the above-listed copyright holders nor the names
41 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill disable (gpio:%d polarity:%d)\n", in ath5k_rfkill_disable()
42 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_disable()
43 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_disable()
44 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, !ah->rf_kill.polarity); in ath5k_rfkill_disable()
50 ATH5K_DBG(ah, ATH5K_DEBUG_ANY, "rfkill enable (gpio:%d polarity:%d)\n", in ath5k_rfkill_enable()
51 ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable()
52 ath5k_hw_set_gpio_output(ah, ah->rf_kill.gpio); in ath5k_rfkill_enable()
53 ath5k_hw_set_gpio(ah, ah->rf_kill.gpio, ah->rf_kill.polarity); in ath5k_rfkill_enable()
60 ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio); in ath5k_rfkill_set_intr()
61 curval = ath5k_hw_get_gpio(ah, ah->rf_kill.gpio); in ath5k_rfkill_set_intr()
62 ath5k_hw_set_gpio_intr(ah, ah->rf_kill.gpio, enable ? in ath5k_rfkill_set_intr()
69 /* configuring GPIO for input for some reason disables rfkill */ in ath5k_is_rfkill_set()
70 /*ath5k_hw_set_gpio_input(ah, ah->rf_kill.gpio);*/ in ath5k_is_rfkill_set()
71 return ath5k_hw_get_gpio(ah, ah->rf_kill.gpio) == in ath5k_is_rfkill_set()
72 ah->rf_kill.polarity; in ath5k_is_rfkill_set()
82 wiphy_rfkill_set_hw_state(ah->hw->wiphy, blocked); in ath5k_tasklet_rfkill_toggle()
89 /* read rfkill GPIO configuration from EEPROM header */ in ath5k_rfkill_hw_start()
90 ah->rf_kill.gpio = ah->ah_capabilities.cap_eeprom.ee_rfkill_pin; in ath5k_rfkill_hw_start()
91 ah->rf_kill.polarity = ah->ah_capabilities.cap_eeprom.ee_rfkill_pol; in ath5k_rfkill_hw_start()
93 tasklet_setup(&ah->rf_kill.toggleq, ath5k_tasklet_rfkill_toggle); in ath5k_rfkill_hw_start()
97 /* enable interrupt for rfkill switch */ in ath5k_rfkill_hw_start()
98 if (AR5K_EEPROM_HDR_RFKILL(ah->ah_capabilities.cap_eeprom.ee_header)) in ath5k_rfkill_hw_start()
106 /* disable interrupt for rfkill switch */ in ath5k_rfkill_hw_stop()
107 if (AR5K_EEPROM_HDR_RFKILL(ah->ah_capabilities.cap_eeprom.ee_header)) in ath5k_rfkill_hw_stop()
110 tasklet_kill(&ah->rf_kill.toggleq); in ath5k_rfkill_hw_stop()
112 /* enable RFKILL when stopping HW so Wifi LED is turned off */ in ath5k_rfkill_hw_stop()