Searched refs:h_cpr_cb (Results 1 – 2 of 2) sorted by relevance
214 hubd_cpr_t *h_cpr_cb; member259 hubd::h_cpr_cb
7210 hubd->h_cpr_cb = in hubd_register_cpr_callback()7213 mutex_init(&hubd->h_cpr_cb->lockp, NULL, MUTEX_DRIVER, in hubd_register_cpr_callback()7215 hubd->h_cpr_cb->statep = hubd; in hubd_register_cpr_callback()7216 hubd->h_cpr_cb->cpr.cc_lockp = &hubd->h_cpr_cb->lockp; in hubd_register_cpr_callback()7217 hubd->h_cpr_cb->cpr.cc_id = callb_add(hubd_cpr_post_user_callb, in hubd_register_cpr_callback()7218 (void *)hubd->h_cpr_cb, CB_CL_CPR_POST_USER, "hubd"); in hubd_register_cpr_callback()7229 if (hubd->h_cpr_cb) { in hubd_unregister_cpr_callback()7230 (void) callb_delete(hubd->h_cpr_cb->cpr.cc_id); in hubd_unregister_cpr_callback()7231 mutex_destroy(&hubd->h_cpr_cb->lockp); in hubd_unregister_cpr_callback()7233 kmem_free(hubd->h_cpr_cb, sizeof (hubd_cpr_t)); in hubd_unregister_cpr_callback()