Lines Matching refs:event
42 struct eeh_event *event; in eeh_event_handler() local
50 event = NULL; in eeh_event_handler()
52 event = list_entry(eeh_eventlist.next, in eeh_event_handler()
54 list_del(&event->list); in eeh_event_handler()
57 if (!event) in eeh_event_handler()
61 if (event->pe) in eeh_event_handler()
62 eeh_handle_normal_event(event->pe); in eeh_event_handler()
66 kfree(event); in eeh_event_handler()
105 struct eeh_event *event; in __eeh_send_failure_event() local
107 event = kzalloc(sizeof(*event), GFP_ATOMIC); in __eeh_send_failure_event()
108 if (!event) { in __eeh_send_failure_event()
112 event->pe = pe; in __eeh_send_failure_event()
134 list_add(&event->list, &eeh_eventlist); in __eeh_send_failure_event()
170 struct eeh_event *event, *tmp; in eeh_remove_event() local
182 list_for_each_entry_safe(event, tmp, &eeh_eventlist, list) { in eeh_remove_event()
183 if (!force && event->pe && in eeh_remove_event()
184 (event->pe->state & EEH_PE_ISOLATED)) in eeh_remove_event()
188 list_del(&event->list); in eeh_remove_event()
189 kfree(event); in eeh_remove_event()
191 if (event->pe && event->pe->phb == pe->phb) { in eeh_remove_event()
192 list_del(&event->list); in eeh_remove_event()
193 kfree(event); in eeh_remove_event()
195 } else if (event->pe == pe) { in eeh_remove_event()
196 list_del(&event->list); in eeh_remove_event()
197 kfree(event); in eeh_remove_event()