Lines Matching +full:autosleep +full:- +full:timeout
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
33 * @prevent_sleep_time: Total time this source has been preventing autosleep.
37 * @expire_count: Number of times the wakeup source's timeout has expired.
41 * @autosleep_enabled: Autosleep is active, so update @prevent_sleep_time.
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()
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.