Lines Matching refs:event
756 struct o2hb_node_event *event; in o2hb_run_event_list() local
766 event = list_entry(o2hb_node_events.next, in o2hb_run_event_list()
769 list_del_init(&event->hn_item); in o2hb_run_event_list()
773 event->hn_event_type == O2HB_NODE_UP_CB ? "UP" : "DOWN", in o2hb_run_event_list()
774 event->hn_node_num); in o2hb_run_event_list()
776 hbcall = hbcall_from_type(event->hn_event_type); in o2hb_run_event_list()
783 o2hb_fire_callbacks(hbcall, event->hn_node, event->hn_node_num); in o2hb_run_event_list()
792 static void o2hb_queue_node_event(struct o2hb_node_event *event, in o2hb_queue_node_event() argument
801 event->hn_event_type = type; in o2hb_queue_node_event()
802 event->hn_node = node; in o2hb_queue_node_event()
803 event->hn_node_num = node_num; in o2hb_queue_node_event()
808 list_add_tail(&event->hn_item, &o2hb_node_events); in o2hb_queue_node_event()
813 struct o2hb_node_event event = in o2hb_shutdown_slot() local
814 { .hn_item = LIST_HEAD_INIT(event.hn_item), }; in o2hb_shutdown_slot()
832 o2hb_queue_node_event(&event, O2HB_NODE_DOWN_CB, node, in o2hb_shutdown_slot()
840 o2hb_run_event_list(&event); in o2hb_shutdown_slot()
892 struct o2hb_node_event event = in o2hb_check_slot() local
893 { .hn_item = LIST_HEAD_INIT(event.hn_item), }; in o2hb_check_slot()
990 o2hb_queue_node_event(&event, O2HB_NODE_UP_CB, node, in o2hb_check_slot()
1042 o2hb_queue_node_event(&event, O2HB_NODE_DOWN_CB, in o2hb_check_slot()
1063 o2hb_run_event_list(&event); in o2hb_check_slot()