Searched refs:wakeup_source (Results 1 - 12 of 12) sorted by relevance

/linux-4.4.14/include/linux/
H A Dpm_wakeup.h34 * struct wakeup_source - Representation of wakeup sources
54 struct wakeup_source { struct
92 extern void wakeup_source_prepare(struct wakeup_source *ws, const char *name);
93 extern struct wakeup_source *wakeup_source_create(const char *name);
94 extern void wakeup_source_drop(struct wakeup_source *ws);
95 extern void wakeup_source_destroy(struct wakeup_source *ws);
96 extern void wakeup_source_add(struct wakeup_source *ws);
97 extern void wakeup_source_remove(struct wakeup_source *ws);
98 extern struct wakeup_source *wakeup_source_register(const char *name);
99 extern void wakeup_source_unregister(struct wakeup_source *ws);
105 extern void __pm_stay_awake(struct wakeup_source *ws);
107 extern void __pm_relax(struct wakeup_source *ws);
109 extern void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec);
124 static inline void wakeup_source_prepare(struct wakeup_source *ws, wakeup_source_prepare()
127 static inline struct wakeup_source *wakeup_source_create(const char *name) wakeup_source_create()
132 static inline void wakeup_source_drop(struct wakeup_source *ws) {} wakeup_source_drop()
134 static inline void wakeup_source_destroy(struct wakeup_source *ws) {} wakeup_source_destroy()
136 static inline void wakeup_source_add(struct wakeup_source *ws) {} wakeup_source_add()
138 static inline void wakeup_source_remove(struct wakeup_source *ws) {} wakeup_source_remove()
140 static inline struct wakeup_source *wakeup_source_register(const char *name) wakeup_source_register()
145 static inline void wakeup_source_unregister(struct wakeup_source *ws) {} wakeup_source_unregister()
177 static inline void __pm_stay_awake(struct wakeup_source *ws) {} __pm_stay_awake()
181 static inline void __pm_relax(struct wakeup_source *ws) {} __pm_relax()
185 static inline void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) {} __pm_wakeup_event()
191 static inline void wakeup_source_init(struct wakeup_source *ws, wakeup_source_init()
198 static inline void wakeup_source_trash(struct wakeup_source *ws) wakeup_source_trash()
H A Drotary_encoder.h14 bool wakeup_source; member in struct:rotary_encoder_platform_data
H A Dpm.h543 struct wakeup_source;
573 struct wakeup_source *wakeup;
/linux-4.4.14/drivers/base/power/
H A Dwakeup.c63 static struct wakeup_source deleted_ws = {
76 void wakeup_source_prepare(struct wakeup_source *ws, const char *name) wakeup_source_prepare()
86 * wakeup_source_create - Create a struct wakeup_source object.
89 struct wakeup_source *wakeup_source_create(const char *name) wakeup_source_create()
91 struct wakeup_source *ws; wakeup_source_create()
103 * wakeup_source_drop - Prepare a struct wakeup_source object for destruction.
109 void wakeup_source_drop(struct wakeup_source *ws) wakeup_source_drop()
120 * Record wakeup_source statistics being deleted into a dummy wakeup_source.
122 static void wakeup_source_record(struct wakeup_source *ws) wakeup_source_record()
148 * wakeup_source_destroy - Destroy a struct wakeup_source object.
153 void wakeup_source_destroy(struct wakeup_source *ws) wakeup_source_destroy()
169 void wakeup_source_add(struct wakeup_source *ws) wakeup_source_add()
191 void wakeup_source_remove(struct wakeup_source *ws) wakeup_source_remove()
209 struct wakeup_source *wakeup_source_register(const char *name) wakeup_source_register()
211 struct wakeup_source *ws; wakeup_source_register()
225 void wakeup_source_unregister(struct wakeup_source *ws) wakeup_source_unregister()
241 static int device_wakeup_attach(struct device *dev, struct wakeup_source *ws) device_wakeup_attach()
261 struct wakeup_source *ws; device_wakeup_enable()
293 struct wakeup_source *ws; device_wakeup_attach_irq()
318 struct wakeup_source *ws; device_wakeup_detach_irq()
332 struct wakeup_source *ws; device_wakeup_arm_wake_irqs()
349 struct wakeup_source *ws; device_wakeup_disarm_wake_irqs()
365 static struct wakeup_source *device_wakeup_detach(struct device *dev) device_wakeup_detach()
367 struct wakeup_source *ws; device_wakeup_detach()
385 struct wakeup_source *ws; device_wakeup_disable()
476 static bool wakeup_source_not_registered(struct wakeup_source *ws) wakeup_source_not_registered()
522 static void wakeup_source_activate(struct wakeup_source *ws) wakeup_source_activate()
552 static void wakeup_source_report_event(struct wakeup_source *ws) wakeup_source_report_event()
569 void __pm_stay_awake(struct wakeup_source *ws) __pm_stay_awake()
611 static void update_prevent_sleep_time(struct wakeup_source *ws, ktime_t now) update_prevent_sleep_time()
617 static inline void update_prevent_sleep_time(struct wakeup_source *ws, update_prevent_sleep_time()
629 static void wakeup_source_deactivate(struct wakeup_source *ws) wakeup_source_deactivate()
686 void __pm_relax(struct wakeup_source *ws) __pm_relax()
729 struct wakeup_source *ws = (struct wakeup_source *)data; pm_wakeup_timer_fn()
755 void __pm_wakeup_event(struct wakeup_source *ws, unsigned int msec) __pm_wakeup_event()
809 struct wakeup_source *ws; pm_print_active_wakeup_sources()
811 struct wakeup_source *last_activity_ws = NULL; pm_print_active_wakeup_sources()
954 struct wakeup_source *ws; pm_wakep_autosleep_enabled()
983 struct wakeup_source *ws) print_wakeup_source_stats()
1031 struct wakeup_source *ws; wakeup_sources_stats_show()
/linux-4.4.14/kernel/power/
H A Dautosleep.c18 * Note: it is only safe to mutex_lock(&autosleep_lock) if a wakeup_source
24 static struct wakeup_source *autosleep_ws;
H A Dwakelock.c29 struct wakeup_source ws;
/linux-4.4.14/include/trace/events/
H A Dpower.h195 DECLARE_EVENT_CLASS(wakeup_source,
215 DEFINE_EVENT(wakeup_source, wakeup_source_activate,
222 DEFINE_EVENT(wakeup_source, wakeup_source_deactivate,
/linux-4.4.14/drivers/input/misc/
H A Drotary_encoder.c248 pdata->wakeup_source = of_property_read_bool(np, "wakeup-source"); rotary_encoder_parse_dt()
360 device_init_wakeup(&pdev->dev, pdata->wakeup_source); rotary_encoder_probe()
/linux-4.4.14/fs/
H A Deventpoll.c168 /* wakeup_source used when EPOLLWAKEUP is set */
169 struct wakeup_source __rcu *ws;
211 /* wakeup_source used when ep_scan_ready_list is running */
212 struct wakeup_source *ws;
548 static inline struct wakeup_source *ep_wakeup_source(struct epitem *epi) ep_wakeup_source()
556 struct wakeup_source *ws = ep_wakeup_source(epi); ep_pm_stay_awake()
570 struct wakeup_source *ws; ep_pm_stay_awake_rcu()
1227 struct wakeup_source *ws; ep_create_wakeup_source()
1248 struct wakeup_source *ws = ep_wakeup_source(epi); ep_destroy_wakeup_source()
1474 struct wakeup_source *ws; ep_send_events_proc()
/linux-4.4.14/include/acpi/
H A Dacpi_bus.h330 struct wakeup_source *ws;
/linux-4.4.14/drivers/power/
H A Dpower_supply_core.c103 * Hold the wakeup_source until all events are processed. power_supply_changed_work()
/linux-4.4.14/kernel/time/
H A Dalarmtimer.c48 static struct wakeup_source *ws;

Completed in 487 milliseconds