Lines Matching refs:handler
28 struct list_head handler; member
101 struct pmi_handler *handler; in pmi_notify_handlers() local
104 list_for_each_entry(handler, &data->handler, node) { in pmi_notify_handlers()
105 pr_debug("pmi: notifying handler %p\n", handler); in pmi_notify_handlers()
106 if (handler->type == data->msg.type) in pmi_notify_handlers()
107 handler->handle_pmi_message(data->msg); in pmi_notify_handlers()
137 INIT_LIST_HEAD(&data->handler); in pmi_of_probe()
177 struct pmi_handler *handler, *tmp; in pmi_of_remove() local
184 list_for_each_entry_safe(handler, tmp, &data->handler, node) in pmi_of_remove()
185 list_del(&handler->node); in pmi_of_remove()
240 int pmi_register_handler(struct pmi_handler *handler) in pmi_register_handler() argument
246 list_add_tail(&handler->node, &data->handler); in pmi_register_handler()
253 void pmi_unregister_handler(struct pmi_handler *handler) in pmi_unregister_handler() argument
258 pr_debug("pmi: unregistering handler %p\n", handler); in pmi_unregister_handler()
261 list_del(&handler->node); in pmi_unregister_handler()