Lines Matching refs:ws
30 struct wakeup_source *ws; member
48 if (wl->ws->active == show_active) in pm_show_wakelocks()
112 spin_lock_irq(&wl->ws->lock); in __wakelocks_gc()
113 idle_time_ns = ktime_to_ns(ktime_sub(now, wl->ws->last_time)); in __wakelocks_gc()
114 active = wl->ws->active; in __wakelocks_gc()
115 spin_unlock_irq(&wl->ws->lock); in __wakelocks_gc()
121 wakeup_source_unregister(wl->ws); in __wakelocks_gc()
188 wl->ws = wakeup_source_register(NULL, wl->name); in wakelock_lookup_add()
189 if (!wl->ws) { in wakelock_lookup_add()
194 wl->ws->last_time = ktime_get(); in wakelock_lookup_add()
239 __pm_wakeup_event(wl->ws, timeout_ms); in pm_wake_lock()
241 __pm_stay_awake(wl->ws); in pm_wake_lock()
277 __pm_relax(wl->ws); in pm_wake_unlock()