Lines Matching +full:power +full:- +full:managed
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * pm_wakeup.h - Power management wakeup interface
21 * struct wakeup_source - Representation of wakeup sources
79 return dev->power.can_wakeup; in device_can_wakeup()
84 return dev->power.can_wakeup && !!dev->power.wakeup; in device_may_wakeup()
89 return dev->power.wakeup_path; in device_wakeup_path()
94 dev->power.wakeup_path = true; in device_set_wakeup_path()
97 /* drivers/base/power/wakeup.c */
124 dev->power.can_wakeup = capable; in device_set_wakeup_capable()
129 return dev->power.can_wakeup; in device_can_wakeup()
153 dev->power.should_wakeup = true; in device_wakeup_enable()
159 dev->power.should_wakeup = false; in device_wakeup_disable()
164 dev->power.should_wakeup = enable; in device_set_wakeup_enable()
170 return dev->power.can_wakeup && dev->power.should_wakeup; in device_may_wakeup()
222 * device_init_wakeup - Device wakeup initialization.
227 * devices that everyone expects to be wakeup sources: keyboards, power buttons,
249 * devm_device_init_wakeup - Resource managed device wakeup initialization.
252 * This function is the devm managed version of device_init_wakeup(dev, true).