Lines Matching refs:fw_recovery
24 fw_recovery.recovery_work); in ath6kl_recovery_work()
28 del_timer_sync(&ar->fw_recovery.hb_timer); in ath6kl_recovery_work()
35 ar->fw_recovery.err_reason = 0; in ath6kl_recovery_work()
37 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_work()
38 mod_timer(&ar->fw_recovery.hb_timer, jiffies + in ath6kl_recovery_work()
39 msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_work()
44 if (!ar->fw_recovery.enable) in ath6kl_recovery_err_notify()
50 set_bit(reason, &ar->fw_recovery.err_reason); in ath6kl_recovery_err_notify()
54 queue_work(ar->ath6kl_wq, &ar->fw_recovery.recovery_work); in ath6kl_recovery_err_notify()
59 if (cookie == ar->fw_recovery.seq_num) in ath6kl_recovery_hb_event()
60 ar->fw_recovery.hb_pending = false; in ath6kl_recovery_hb_event()
72 if (ar->fw_recovery.hb_pending) in ath6kl_recovery_hb_timer()
73 ar->fw_recovery.hb_misscnt++; in ath6kl_recovery_hb_timer()
75 ar->fw_recovery.hb_misscnt = 0; in ath6kl_recovery_hb_timer()
77 if (ar->fw_recovery.hb_misscnt > ATH6KL_HB_RESP_MISS_THRES) { in ath6kl_recovery_hb_timer()
78 ar->fw_recovery.hb_misscnt = 0; in ath6kl_recovery_hb_timer()
79 ar->fw_recovery.seq_num = 0; in ath6kl_recovery_hb_timer()
80 ar->fw_recovery.hb_pending = false; in ath6kl_recovery_hb_timer()
85 ar->fw_recovery.seq_num++; in ath6kl_recovery_hb_timer()
86 ar->fw_recovery.hb_pending = true; in ath6kl_recovery_hb_timer()
89 ar->fw_recovery.seq_num, 0); in ath6kl_recovery_hb_timer()
94 mod_timer(&ar->fw_recovery.hb_timer, jiffies + in ath6kl_recovery_hb_timer()
95 msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_hb_timer()
100 struct ath6kl_fw_recovery *recovery = &ar->fw_recovery; in ath6kl_recovery_init()
106 ar->fw_recovery.hb_pending = false; in ath6kl_recovery_init()
107 ar->fw_recovery.hb_timer.function = ath6kl_recovery_hb_timer; in ath6kl_recovery_init()
108 ar->fw_recovery.hb_timer.data = (unsigned long) ar; in ath6kl_recovery_init()
109 init_timer_deferrable(&ar->fw_recovery.hb_timer); in ath6kl_recovery_init()
111 if (ar->fw_recovery.hb_poll) in ath6kl_recovery_init()
112 mod_timer(&ar->fw_recovery.hb_timer, jiffies + in ath6kl_recovery_init()
113 msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_init()
118 if (!ar->fw_recovery.enable) in ath6kl_recovery_cleanup()
123 del_timer_sync(&ar->fw_recovery.hb_timer); in ath6kl_recovery_cleanup()
124 cancel_work_sync(&ar->fw_recovery.recovery_work); in ath6kl_recovery_cleanup()
129 if (!ar->fw_recovery.enable) in ath6kl_recovery_suspend()
134 if (!ar->fw_recovery.err_reason) in ath6kl_recovery_suspend()
138 ar->fw_recovery.err_reason = 0; in ath6kl_recovery_suspend()
147 if (!ar->fw_recovery.enable) in ath6kl_recovery_resume()
152 if (!ar->fw_recovery.hb_poll) in ath6kl_recovery_resume()
155 ar->fw_recovery.hb_pending = false; in ath6kl_recovery_resume()
156 ar->fw_recovery.seq_num = 0; in ath6kl_recovery_resume()
157 ar->fw_recovery.hb_misscnt = 0; in ath6kl_recovery_resume()
158 mod_timer(&ar->fw_recovery.hb_timer, in ath6kl_recovery_resume()
159 jiffies + msecs_to_jiffies(ar->fw_recovery.hb_poll)); in ath6kl_recovery_resume()