Lines Matching +full:timeout +full:- +full:idle +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()
46 if (wl->station_mode != STATION_ACTIVE_MODE) { in wl1251_ps_elp_sleep()
48 ieee80211_queue_delayed_work(wl->hw, &wl->elp_work, delay); in wl1251_ps_elp_sleep()
54 unsigned long timeout, start; in wl1251_ps_elp_wakeup() local
57 cancel_delayed_work(&wl->elp_work); in wl1251_ps_elp_wakeup()
59 if (!wl->elp) in wl1251_ps_elp_wakeup()
65 timeout = jiffies + msecs_to_jiffies(WL1251_WAKEUP_TIMEOUT); in wl1251_ps_elp_wakeup()
76 if (time_after(jiffies, timeout)) { 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()
125 wl1251_debug(DEBUG_PSM, "entering idle"); in wl1251_ps_set_mode()
156 wl->listen_int); in wl1251_ps_set_mode()
166 wl->station_mode = mode; in wl1251_ps_set_mode()