Lines Matching refs:ws
33 struct wakeup_source ws; member
39 struct wakeup_source *ws = &lock->ws; in wake_lock_init() local
41 if (ws) { in wake_lock_init()
42 memset(ws, 0, sizeof(*ws)); in wake_lock_init()
43 ws->name = name; in wake_lock_init()
45 wakeup_source_add(ws); in wake_lock_init()
50 struct wakeup_source *ws = &lock->ws; in wake_lock_destroy() local
52 wakeup_source_remove(ws); in wake_lock_destroy()
53 __pm_relax(ws); in wake_lock_destroy()
58 __pm_stay_awake(&lock->ws); in wake_lock()
63 __pm_wakeup_event(&lock->ws, jiffies_to_msecs(timeout)); in wake_lock_timeout()
68 __pm_relax(&lock->ws); in wake_unlock()
73 return lock->ws.active; in wake_lock_active()