Lines Matching refs:hc
2246 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2252 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2253 hc->hc_func = func; in o2hb_setup_callback()
2254 hc->hc_data = data; in o2hb_setup_callback()
2255 hc->hc_priority = priority; in o2hb_setup_callback()
2256 hc->hc_type = type; in o2hb_setup_callback()
2257 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2402 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2408 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2409 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
2411 hbcall = hbcall_from_type(hc->hc_type); in o2hb_register_callback()
2428 if (hc->hc_priority < f->hc_priority) { in o2hb_register_callback()
2429 list_add_tail(&hc->hc_item, &f->hc_item); in o2hb_register_callback()
2433 if (list_empty(&hc->hc_item)) in o2hb_register_callback()
2434 list_add_tail(&hc->hc_item, &hbcall->list); in o2hb_register_callback()
2440 ret, __builtin_return_address(0), hc); in o2hb_register_callback()
2446 struct o2hb_callback_func *hc) in o2hb_unregister_callback() argument
2448 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_unregister_callback()
2451 __builtin_return_address(0), hc); in o2hb_unregister_callback()
2454 if (list_empty(&hc->hc_item)) in o2hb_unregister_callback()
2462 list_del_init(&hc->hc_item); in o2hb_unregister_callback()