Lines Matching refs:ws
168 struct wakeup_source __rcu *ws;
211 struct wakeup_source *ws;
670 return rcu_dereference_check(epi->ws, lockdep_is_held(&epi->ep->mtx));
676 struct wakeup_source *ws = ep_wakeup_source(epi);
678 if (ws)
679 __pm_stay_awake(ws);
684 return rcu_access_pointer(epi->ws) ? true : false;
690 struct wakeup_source *ws;
693 ws = rcu_dereference(epi->ws);
694 if (ws)
695 __pm_stay_awake(ws);
760 __pm_relax(ep->ws);
791 wakeup_source_unregister(ep->ws);
1547 struct wakeup_source *ws;
1549 if (!epi->ep->ws) {
1550 epi->ep->ws = wakeup_source_register(NULL, "eventpoll");
1551 if (!epi->ep->ws)
1556 ws = wakeup_source_register(NULL, n.name.name);
1559 if (!ws)
1561 rcu_assign_pointer(epi->ws, ws);
1569 struct wakeup_source *ws = ep_wakeup_source(epi);
1571 RCU_INIT_POINTER(epi->ws, NULL);
1579 wakeup_source_unregister(ws);
1843 struct wakeup_source *ws;
1850 * Activate ep->ws before deactivating epi->ws to prevent
1851 * triggering auto-suspend here (in case we reactive epi->ws
1854 * This could be rearranged to delay the deactivation of epi->ws
1855 * instead, but then epi->ws would temporarily be out of sync
1858 ws = ep_wakeup_source(epi);
1859 if (ws) {
1860 if (ws->active)
1861 __pm_stay_awake(ep->ws);
1862 __pm_relax(ws);