Lines Matching +full:wakeup +full:- +full:delay +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0-only
13 /* in ms */
26 mutex_lock(&wl->mutex); in wl1251_elp_work()
28 if (wl->elp || wl->station_mode == STATION_ACTIVE_MODE) in wl1251_elp_work()
33 wl->elp = true; in wl1251_elp_work()
36 mutex_unlock(&wl->mutex); in wl1251_elp_work()
44 unsigned long delay; in wl1251_ps_elp_sleep() local
46 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
47 delay = msecs_to_jiffies(ELP_ENTRY_DELAY); in wl1251_ps_elp_sleep()
48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup()
59 if (!wl->elp) in wl1251_ps_elp_wakeup()
77 wl1251_error("elp wakeup timeout"); in wl1251_ps_elp_wakeup()
78 return -ETIMEDOUT; in wl1251_ps_elp_wakeup()
84 wl1251_debug(DEBUG_PSM, "wakeup time: %u ms", in wl1251_ps_elp_wakeup()
85 jiffies_to_msecs(jiffies - start)); in wl1251_ps_elp_wakeup()
87 wl->elp = false; in wl1251_ps_elp_wakeup()
107 wl->listen_int); in wl1251_ps_set_mode()
156 wl->listen_int); in wl1251_ps_set_mode()
166 wl->station_mode = mode; in wl1251_ps_set_mode()