Lines Matching full:wakeup
3 * wakeup.c - support wakeup devices
17 bool (*wakeup)(void *context); member
34 * Enable wakeup device power of devices with the state.enable flag set and set
35 * the wakeup enable mask bits in the GPE registers that correspond to wakeup
44 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices()
45 || sleep_state > (u32) dev->wakeup.sleep_state in acpi_enable_wakeup_devices()
47 || dev->wakeup.prepare_count)) in acpi_enable_wakeup_devices()
54 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_enable_wakeup_devices()
60 * acpi_disable_wakeup_devices - Disable devices' wakeup capability.
69 if (!dev->wakeup.flags.valid in acpi_disable_wakeup_devices()
70 || sleep_state > (u32) dev->wakeup.sleep_state in acpi_disable_wakeup_devices()
72 || dev->wakeup.prepare_count)) in acpi_disable_wakeup_devices()
75 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_disable_wakeup_devices()
92 acpi_enable_gpe(dev->wakeup.gpe_device, in acpi_wakeup_device_init()
93 dev->wakeup.gpe_number); in acpi_wakeup_device_init()
102 * acpi_register_wakeup_handler - Register wakeup handler
104 * @wakeup: Wakeup-handler to call when the SCI has triggered a wakeup
109 * to trigger a wakeup.
111 int acpi_register_wakeup_handler(int wake_irq, bool (*wakeup)(void *context), in acpi_register_wakeup_handler()
127 handler->wakeup = wakeup; in acpi_register_wakeup_handler()
139 * acpi_unregister_wakeup_handler - Unregister wakeup handler
140 * @wakeup: Wakeup-handler passed to acpi_register_wakeup_handler()
143 void acpi_unregister_wakeup_handler(bool (*wakeup)(void *context), in acpi_unregister_wakeup_handler()
150 if (handler->wakeup == wakeup && handler->context == context) { in acpi_unregister_wakeup_handler()
166 if (handler->wakeup(handler->context)) in acpi_check_wakeup_handlers()