Lines Matching refs:hc
2243 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2249 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2250 hc->hc_func = func; in o2hb_setup_callback()
2251 hc->hc_data = data; in o2hb_setup_callback()
2252 hc->hc_priority = priority; in o2hb_setup_callback()
2253 hc->hc_type = type; in o2hb_setup_callback()
2254 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2399 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2405 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2406 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
2408 hbcall = hbcall_from_type(hc->hc_type); in o2hb_register_callback()
2425 if (hc->hc_priority < f->hc_priority) { in o2hb_register_callback()
2426 list_add_tail(&hc->hc_item, &f->hc_item); in o2hb_register_callback()
2430 if (list_empty(&hc->hc_item)) in o2hb_register_callback()
2431 list_add_tail(&hc->hc_item, &hbcall->list); in o2hb_register_callback()
2437 ret, __builtin_return_address(0), hc); in o2hb_register_callback()
2443 struct o2hb_callback_func *hc) in o2hb_unregister_callback() argument
2445 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_unregister_callback()
2448 __builtin_return_address(0), hc); in o2hb_unregister_callback()
2451 if (list_empty(&hc->hc_item)) in o2hb_unregister_callback()
2459 list_del_init(&hc->hc_item); in o2hb_unregister_callback()