Lines Matching refs:event
646 struct o2hb_node_event *event; in o2hb_run_event_list() local
662 event = list_entry(o2hb_node_events.next, in o2hb_run_event_list()
665 list_del_init(&event->hn_item); in o2hb_run_event_list()
669 event->hn_event_type == O2HB_NODE_UP_CB ? "UP" : "DOWN", in o2hb_run_event_list()
670 event->hn_node_num); in o2hb_run_event_list()
672 hbcall = hbcall_from_type(event->hn_event_type); in o2hb_run_event_list()
679 o2hb_fire_callbacks(hbcall, event->hn_node, event->hn_node_num); in o2hb_run_event_list()
688 static void o2hb_queue_node_event(struct o2hb_node_event *event, in o2hb_queue_node_event() argument
697 event->hn_event_type = type; in o2hb_queue_node_event()
698 event->hn_node = node; in o2hb_queue_node_event()
699 event->hn_node_num = node_num; in o2hb_queue_node_event()
704 list_add_tail(&event->hn_item, &o2hb_node_events); in o2hb_queue_node_event()
709 struct o2hb_node_event event = in o2hb_shutdown_slot() local
710 { .hn_item = LIST_HEAD_INIT(event.hn_item), }; in o2hb_shutdown_slot()
727 o2hb_queue_node_event(&event, O2HB_NODE_DOWN_CB, node, in o2hb_shutdown_slot()
733 o2hb_run_event_list(&event); in o2hb_shutdown_slot()
785 struct o2hb_node_event event = in o2hb_check_slot() local
786 { .hn_item = LIST_HEAD_INIT(event.hn_item), }; in o2hb_check_slot()
882 o2hb_queue_node_event(&event, O2HB_NODE_UP_CB, node, in o2hb_check_slot()
933 o2hb_queue_node_event(&event, O2HB_NODE_DOWN_CB, in o2hb_check_slot()
952 o2hb_run_event_list(&event); in o2hb_check_slot()