Lines Matching refs:hc
2356 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2362 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2363 hc->hc_func = func; in o2hb_setup_callback()
2364 hc->hc_data = data; in o2hb_setup_callback()
2365 hc->hc_priority = priority; in o2hb_setup_callback()
2366 hc->hc_type = type; in o2hb_setup_callback()
2367 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2512 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2518 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2519 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
2521 hbcall = hbcall_from_type(hc->hc_type); in o2hb_register_callback()
2538 if (hc->hc_priority < f->hc_priority) { in o2hb_register_callback()
2539 list_add_tail(&hc->hc_item, &f->hc_item); in o2hb_register_callback()
2543 if (list_empty(&hc->hc_item)) in o2hb_register_callback()
2544 list_add_tail(&hc->hc_item, &hbcall->list); in o2hb_register_callback()
2550 ret, __builtin_return_address(0), hc); in o2hb_register_callback()
2556 struct o2hb_callback_func *hc) in o2hb_unregister_callback() argument
2558 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_unregister_callback()
2561 __builtin_return_address(0), hc); in o2hb_unregister_callback()
2564 if (list_empty(&hc->hc_item)) in o2hb_unregister_callback()
2572 list_del_init(&hc->hc_item); in o2hb_unregister_callback()