Lines Matching defs:ret
28 int i, ret;
31 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 0);
32 if (ret) {
34 wow_wakeup_event(i), arvif->vdev_id, ret);
35 return ret;
40 ret = ath10k_wmi_wow_del_pattern(ar, arvif->vdev_id, i);
41 if (ret) {
43 i, arvif->vdev_id, ret);
44 return ret;
54 int ret;
59 ret = ath10k_wow_vif_cleanup(arvif);
60 if (ret) {
62 arvif->vdev_id, ret);
63 return ret;
176 int i, j, ret = 0;
263 return ret;
269 int ret, i;
302 int ret;
310 ret = ath10k_wmi_pno_check(ar, arvif->vdev_id,
312 if (!ret) {
355 ret = ath10k_wmi_wow_add_pattern(ar, arvif->vdev_id,
361 if (ret) {
364 arvif->vdev_id, ret);
365 return ret;
375 ret = ath10k_wmi_wow_add_wakeup_event(ar, arvif->vdev_id, i, 1);
376 if (ret) {
378 wow_wakeup_event(i), arvif->vdev_id, ret);
379 return ret;
390 int ret;
395 ret = ath10k_vif_wow_set_wakeups(arvif, wowlan);
396 if (ret) {
398 arvif->vdev_id, ret);
399 return ret;
408 int ret = 0;
422 ret = ath10k_wmi_wow_config_pno(ar, arvif->vdev_id, pno);
429 return ret;
435 int ret = 0;
440 ret = ath10k_vif_wow_clean_nlo(arvif);
441 if (ret) {
443 arvif->vdev_id, ret);
444 return ret;
453 int ret;
459 ret = ath10k_wmi_wow_enable(ar);
460 if (ret) {
461 ath10k_warn(ar, "failed to issue wow enable: %d\n", ret);
462 return ret;
465 ret = wait_for_completion_timeout(&ar->target_suspend, 3 * HZ);
466 if (ret == 0) {
476 int ret;
482 ret = ath10k_wmi_wow_host_wakeup_ind(ar);
483 if (ret) {
485 ret);
486 return ret;
489 ret = wait_for_completion_timeout(&ar->wow.wakeup_completed, 3 * HZ);
490 if (ret == 0) {
502 int ret;
508 ret = 1;
512 ret = ath10k_wow_cleanup(ar);
513 if (ret) {
515 ret);
519 ret = ath10k_wow_set_wakeups(ar, wowlan);
520 if (ret) {
522 ret);
528 ret = ath10k_wow_enable(ar);
529 if (ret) {
530 ath10k_warn(ar, "failed to start wow: %d\n", ret);
534 ret = ath10k_hif_suspend(ar);
535 if (ret) {
536 ath10k_warn(ar, "failed to suspend hif: %d\n", ret);
550 return ret ? 1 : 0;
568 int ret;
574 ret = 1;
578 ret = ath10k_hif_resume(ar);
579 if (ret) {
580 ath10k_warn(ar, "failed to resume hif: %d\n", ret);
584 ret = ath10k_wow_wakeup(ar);
585 if (ret)
586 ath10k_warn(ar, "failed to wakeup from wow: %d\n", ret);
588 ret = ath10k_wow_nlo_cleanup(ar);
589 if (ret)
590 ath10k_warn(ar, "failed to cleanup nlo: %d\n", ret);
593 if (ret) {
597 ret = 1;
606 ret = -EIO;
612 return ret;