Lines Matching refs:ret

27 	int i, ret;  in ath10k_wow_vif_cleanup()  local
30 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0); in ath10k_wow_vif_cleanup()
31 if (ret) { in ath10k_wow_vif_cleanup()
33 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
34 return ret; in ath10k_wow_vif_cleanup()
39 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i); in ath10k_wow_vif_cleanup()
40 if (ret) { in ath10k_wow_vif_cleanup()
42 i, arvif->vdev_id, ret); in ath10k_wow_vif_cleanup()
43 return ret; in ath10k_wow_vif_cleanup()
53 int ret; in ath10k_wow_cleanup() local
58 ret = ath10k_wow_vif_cleanup(arvif); in ath10k_wow_cleanup()
59 if (ret) { in ath10k_wow_cleanup()
61 arvif->vdev_id, ret); in ath10k_wow_cleanup()
62 return ret; in ath10k_wow_cleanup()
175 int i, j, ret = 0; in ath10k_wmi_pno_check() local
262 return ret; in ath10k_wmi_pno_check()
268 int ret, i; in ath10k_vif_wow_set_wakeups() local
301 int ret; in ath10k_vif_wow_set_wakeups() local
309 ret = ath10k_wmi_pno_check(ar, arvif->vdev_id, in ath10k_vif_wow_set_wakeups()
311 if (!ret) { in ath10k_vif_wow_set_wakeups()
354 ret = ath10k_wmi_wow_add_pattern(ar, arvif->vdev_id, in ath10k_vif_wow_set_wakeups()
360 if (ret) { in ath10k_vif_wow_set_wakeups()
363 arvif->vdev_id, ret); in ath10k_vif_wow_set_wakeups()
364 return ret; in ath10k_vif_wow_set_wakeups()
374 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 1); in ath10k_vif_wow_set_wakeups()
375 if (ret) { in ath10k_vif_wow_set_wakeups()
377 wow_wakeup_event(i), arvif->vdev_id, ret); in ath10k_vif_wow_set_wakeups()
378 return ret; in ath10k_vif_wow_set_wakeups()
389 int ret; in ath10k_wow_set_wakeups() local
394 ret = ath10k_vif_wow_set_wakeups(arvif, wowlan); in ath10k_wow_set_wakeups()
395 if (ret) { in ath10k_wow_set_wakeups()
397 arvif->vdev_id, ret); in ath10k_wow_set_wakeups()
398 return ret; in ath10k_wow_set_wakeups()
407 int ret = 0; in ath10k_vif_wow_clean_nlo() local
421 ret = ath10k_wmi_wow_config_pno(ar, arvif->vdev_id, pno); in ath10k_vif_wow_clean_nlo()
428 return ret; in ath10k_vif_wow_clean_nlo()
434 int ret = 0; in ath10k_wow_nlo_cleanup() local
439 ret = ath10k_vif_wow_clean_nlo(arvif); in ath10k_wow_nlo_cleanup()
440 if (ret) { in ath10k_wow_nlo_cleanup()
442 arvif->vdev_id, ret); in ath10k_wow_nlo_cleanup()
443 return ret; in ath10k_wow_nlo_cleanup()
452 int ret; in ath10k_wow_enable() local
458 ret = ath10k_wmi_wow_enable(ar); in ath10k_wow_enable()
459 if (ret) { in ath10k_wow_enable()
460 ath10k_warn(ar, "failed to issue wow enable: %d\n", ret); in ath10k_wow_enable()
461 return ret; in ath10k_wow_enable()
464 ret = wait_for_completion_timeout(&ar->target_suspend, 3 * HZ); in ath10k_wow_enable()
465 if (ret == 0) { in ath10k_wow_enable()
475 int ret; in ath10k_wow_wakeup() local
481 ret = ath10k_wmi_wow_host_wakeup_ind(ar); in ath10k_wow_wakeup()
482 if (ret) { in ath10k_wow_wakeup()
484 ret); in ath10k_wow_wakeup()
485 return ret; in ath10k_wow_wakeup()
488 ret = wait_for_completion_timeout(&ar->wow.wakeup_completed, 3 * HZ); in ath10k_wow_wakeup()
489 if (ret == 0) { in ath10k_wow_wakeup()
501 int ret; in ath10k_wow_op_suspend() local
507 ret = 1; in ath10k_wow_op_suspend()
511 ret = ath10k_wow_cleanup(ar); in ath10k_wow_op_suspend()
512 if (ret) { in ath10k_wow_op_suspend()
514 ret); in ath10k_wow_op_suspend()
518 ret = ath10k_wow_set_wakeups(ar, wowlan); in ath10k_wow_op_suspend()
519 if (ret) { in ath10k_wow_op_suspend()
521 ret); in ath10k_wow_op_suspend()
527 ret = ath10k_wow_enable(ar); in ath10k_wow_op_suspend()
528 if (ret) { in ath10k_wow_op_suspend()
529 ath10k_warn(ar, "failed to start wow: %d\n", ret); in ath10k_wow_op_suspend()
533 ret = ath10k_hif_suspend(ar); in ath10k_wow_op_suspend()
534 if (ret) { in ath10k_wow_op_suspend()
535 ath10k_warn(ar, "failed to suspend hif: %d\n", ret); in ath10k_wow_op_suspend()
549 return ret ? 1 : 0; in ath10k_wow_op_suspend()
567 int ret; in ath10k_wow_op_resume() local
573 ret = 1; in ath10k_wow_op_resume()
577 ret = ath10k_hif_resume(ar); in ath10k_wow_op_resume()
578 if (ret) { in ath10k_wow_op_resume()
579 ath10k_warn(ar, "failed to resume hif: %d\n", ret); in ath10k_wow_op_resume()
583 ret = ath10k_wow_wakeup(ar); in ath10k_wow_op_resume()
584 if (ret) in ath10k_wow_op_resume()
585 ath10k_warn(ar, "failed to wakeup from wow: %d\n", ret); in ath10k_wow_op_resume()
587 ret = ath10k_wow_nlo_cleanup(ar); in ath10k_wow_op_resume()
588 if (ret) in ath10k_wow_op_resume()
589 ath10k_warn(ar, "failed to cleanup nlo: %d\n", ret); in ath10k_wow_op_resume()
592 if (ret) { in ath10k_wow_op_resume()
596 ret = 1; in ath10k_wow_op_resume()
605 ret = -EIO; in ath10k_wow_op_resume()
611 return ret; in ath10k_wow_op_resume()