Lines Matching refs:ret
37 int i, ret; in ath10k_wow_vif_cleanup() local
40 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath10k_wow_vif_cleanup()
41 if (ret) { in ath10k_wow_vif_cleanup()
43 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
44 return ret; in ath10k_wow_vif_cleanup()
49 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath10k_wow_vif_cleanup()
50 if (ret) { in ath10k_wow_vif_cleanup()
52 i, arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
53 return ret; in ath10k_wow_vif_cleanup()
63 int ret; in ath10k_wow_cleanup() local
68 ret = ath10k_wow_vif_cleanup(arvif); in ath10k_wow_cleanup()
69 if (ret) { in ath10k_wow_cleanup()
71 arvif->vdev_id, ret); in ath10k_wow_cleanup()
72 return ret; in ath10k_wow_cleanup()
82 int ret, i; in ath10k_vif_wow_set_wakeups() local
129 ret = ath10k_wmi_wow_add_pattern(ar, arvif->vdev_id, in ath10k_vif_wow_set_wakeups()
135 if (ret) { in ath10k_vif_wow_set_wakeups()
138 arvif->vdev_id, ret); in ath10k_vif_wow_set_wakeups()
139 return ret; in ath10k_vif_wow_set_wakeups()
149 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 1); in ath10k_vif_wow_set_wakeups()
150 if (ret) { in ath10k_vif_wow_set_wakeups()
152 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_vif_wow_set_wakeups()
153 return ret; in ath10k_vif_wow_set_wakeups()
164 int ret; in ath10k_wow_set_wakeups() local
169 ret = ath10k_vif_wow_set_wakeups(arvif, wowlan); in ath10k_wow_set_wakeups()
170 if (ret) { in ath10k_wow_set_wakeups()
172 arvif->vdev_id, ret); in ath10k_wow_set_wakeups()
173 return ret; in ath10k_wow_set_wakeups()
182 int ret; in ath10k_wow_enable() local
188 ret = ath10k_wmi_wow_enable(ar); in ath10k_wow_enable()
189 if (ret) { in ath10k_wow_enable()
190 ath10k_warn(ar, "failed to issue wow enable: %d\n", ret); in ath10k_wow_enable()
191 return ret; in ath10k_wow_enable()
194 ret = wait_for_completion_timeout(&ar->target_suspend, 3 * HZ); in ath10k_wow_enable()
195 if (ret == 0) { in ath10k_wow_enable()
205 int ret; in ath10k_wow_wakeup() local
211 ret = ath10k_wmi_wow_host_wakeup_ind(ar); in ath10k_wow_wakeup()
212 if (ret) { in ath10k_wow_wakeup()
214 ret); in ath10k_wow_wakeup()
215 return ret; in ath10k_wow_wakeup()
218 ret = wait_for_completion_timeout(&ar->wow.wakeup_completed, 3 * HZ); in ath10k_wow_wakeup()
219 if (ret == 0) { in ath10k_wow_wakeup()
231 int ret; in ath10k_wow_op_suspend() local
237 ret = 1; in ath10k_wow_op_suspend()
241 ret = ath10k_wow_cleanup(ar); in ath10k_wow_op_suspend()
242 if (ret) { in ath10k_wow_op_suspend()
244 ret); in ath10k_wow_op_suspend()
248 ret = ath10k_wow_set_wakeups(ar, wowlan); in ath10k_wow_op_suspend()
249 if (ret) { in ath10k_wow_op_suspend()
251 ret); in ath10k_wow_op_suspend()
255 ret = ath10k_wow_enable(ar); in ath10k_wow_op_suspend()
256 if (ret) { in ath10k_wow_op_suspend()
257 ath10k_warn(ar, "failed to start wow: %d\n", ret); in ath10k_wow_op_suspend()
261 ret = ath10k_hif_suspend(ar); in ath10k_wow_op_suspend()
262 if (ret) { in ath10k_wow_op_suspend()
263 ath10k_warn(ar, "failed to suspend hif: %d\n", ret); in ath10k_wow_op_suspend()
277 return ret ? 1 : 0; in ath10k_wow_op_suspend()
283 int ret; in ath10k_wow_op_resume() local
289 ret = 1; in ath10k_wow_op_resume()
293 ret = ath10k_hif_resume(ar); in ath10k_wow_op_resume()
294 if (ret) { in ath10k_wow_op_resume()
295 ath10k_warn(ar, "failed to resume hif: %d\n", ret); in ath10k_wow_op_resume()
299 ret = ath10k_wow_wakeup(ar); in ath10k_wow_op_resume()
300 if (ret) in ath10k_wow_op_resume()
301 ath10k_warn(ar, "failed to wakeup from wow: %d\n", ret); in ath10k_wow_op_resume()
304 if (ret) { in ath10k_wow_op_resume()
308 ret = 1; in ath10k_wow_op_resume()
317 ret = -EIO; in ath10k_wow_op_resume()
323 return ret; in ath10k_wow_op_resume()