Lines Matching full:ab
15 int ath11k_wow_enable(struct ath11k_base *ab) in ath11k_wow_enable() argument
17 struct ath11k *ar = ath11k_ab_to_ar(ab, 0); in ath11k_wow_enable()
20 clear_bit(ATH11K_FLAG_HTC_SUSPEND_COMPLETE, &ab->dev_flags); in ath11k_wow_enable()
23 reinit_completion(&ab->htc_suspend); in ath11k_wow_enable()
27 ath11k_warn(ab, "failed to issue wow enable: %d\n", ret); in ath11k_wow_enable()
31 ret = wait_for_completion_timeout(&ab->htc_suspend, 3 * HZ); in ath11k_wow_enable()
33 ath11k_warn(ab, in ath11k_wow_enable()
38 if (test_bit(ATH11K_FLAG_HTC_SUSPEND_COMPLETE, &ab->dev_flags)) in ath11k_wow_enable()
42 ath11k_warn(ab, "htc suspend not complete, retrying (try %d)\n", in ath11k_wow_enable()
47 ath11k_warn(ab, "htc suspend not complete, failing after %d tries\n", i); in ath11k_wow_enable()
52 int ath11k_wow_wakeup(struct ath11k_base *ab) in ath11k_wow_wakeup() argument
54 struct ath11k *ar = ath11k_ab_to_ar(ab, 0); in ath11k_wow_wakeup()
57 reinit_completion(&ab->wow.wakeup_completed); in ath11k_wow_wakeup()
61 ath11k_warn(ab, "failed to send wow wakeup indication: %d\n", in ath11k_wow_wakeup()
66 ret = wait_for_completion_timeout(&ab->wow.wakeup_completed, 3 * HZ); in ath11k_wow_wakeup()
68 ath11k_warn(ab, "timed out while waiting for wow wakeup completion\n"); in ath11k_wow_wakeup()