Lines Matching refs:hc
2337 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2343 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2344 hc->hc_func = func; in o2hb_setup_callback()
2345 hc->hc_data = data; in o2hb_setup_callback()
2346 hc->hc_priority = priority; in o2hb_setup_callback()
2347 hc->hc_type = type; in o2hb_setup_callback()
2348 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2493 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2499 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2500 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
2502 hbcall = hbcall_from_type(hc->hc_type); in o2hb_register_callback()
2519 if (hc->hc_priority < f->hc_priority) { in o2hb_register_callback()
2520 list_add_tail(&hc->hc_item, &f->hc_item); in o2hb_register_callback()
2524 if (list_empty(&hc->hc_item)) in o2hb_register_callback()
2525 list_add_tail(&hc->hc_item, &hbcall->list); in o2hb_register_callback()
2531 ret, __builtin_return_address(0), hc); in o2hb_register_callback()
2537 struct o2hb_callback_func *hc) in o2hb_unregister_callback() argument
2539 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_unregister_callback()
2542 __builtin_return_address(0), hc); in o2hb_unregister_callback()
2545 if (list_empty(&hc->hc_item)) in o2hb_unregister_callback()
2553 list_del_init(&hc->hc_item); in o2hb_unregister_callback()