Lines Matching refs:handler
114 struct acpi_wakeup_handler *handler; in acpi_register_wakeup_handler() local
123 handler = kmalloc(sizeof(*handler), GFP_KERNEL); in acpi_register_wakeup_handler()
124 if (!handler) in acpi_register_wakeup_handler()
127 handler->wakeup = wakeup; in acpi_register_wakeup_handler()
128 handler->context = context; in acpi_register_wakeup_handler()
131 list_add(&handler->list_node, &acpi_wakeup_handler_head); in acpi_register_wakeup_handler()
146 struct acpi_wakeup_handler *handler; in acpi_unregister_wakeup_handler() local
149 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_unregister_wakeup_handler()
150 if (handler->wakeup == wakeup && handler->context == context) { in acpi_unregister_wakeup_handler()
151 list_del(&handler->list_node); in acpi_unregister_wakeup_handler()
152 kfree(handler); in acpi_unregister_wakeup_handler()
162 struct acpi_wakeup_handler *handler; in acpi_check_wakeup_handlers() local
165 list_for_each_entry(handler, &acpi_wakeup_handler_head, list_node) { in acpi_check_wakeup_handlers()
166 if (handler->wakeup(handler->context)) in acpi_check_wakeup_handlers()