Lines Matching refs:hc
2185 void o2hb_setup_callback(struct o2hb_callback_func *hc, in o2hb_setup_callback() argument
2191 INIT_LIST_HEAD(&hc->hc_item); in o2hb_setup_callback()
2192 hc->hc_func = func; in o2hb_setup_callback()
2193 hc->hc_data = data; in o2hb_setup_callback()
2194 hc->hc_priority = priority; in o2hb_setup_callback()
2195 hc->hc_type = type; in o2hb_setup_callback()
2196 hc->hc_magic = O2HB_CB_MAGIC; in o2hb_setup_callback()
2341 struct o2hb_callback_func *hc) in o2hb_register_callback() argument
2347 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_register_callback()
2348 BUG_ON(!list_empty(&hc->hc_item)); in o2hb_register_callback()
2350 hbcall = hbcall_from_type(hc->hc_type); in o2hb_register_callback()
2367 if (hc->hc_priority < f->hc_priority) { in o2hb_register_callback()
2368 list_add_tail(&hc->hc_item, &f->hc_item); in o2hb_register_callback()
2372 if (list_empty(&hc->hc_item)) in o2hb_register_callback()
2373 list_add_tail(&hc->hc_item, &hbcall->list); in o2hb_register_callback()
2379 ret, __builtin_return_address(0), hc); in o2hb_register_callback()
2385 struct o2hb_callback_func *hc) in o2hb_unregister_callback() argument
2387 BUG_ON(hc->hc_magic != O2HB_CB_MAGIC); in o2hb_unregister_callback()
2390 __builtin_return_address(0), hc); in o2hb_unregister_callback()
2393 if (list_empty(&hc->hc_item)) in o2hb_unregister_callback()
2401 list_del_init(&hc->hc_item); in o2hb_unregister_callback()