Lines Matching refs:cbentry
3098 socal_unsol_cb_t *cbentry; in socal_add_ulp() local
3101 for (cbentry = port_statep->sp_unsol_cb; cbentry; in socal_add_ulp()
3102 cbentry = cbentry->next) { in socal_add_ulp()
3103 if (cbentry->type == type) { in socal_add_ulp()
3104 cbentry->statec_cb = ulp_statec_callback; in socal_add_ulp()
3105 cbentry->els_cb = ulp_els_callback; in socal_add_ulp()
3106 cbentry->data_cb = ulp_data_callback; in socal_add_ulp()
3107 cbentry->arg = arg; in socal_add_ulp()
3113 if ((cbentry = in socal_add_ulp()
3119 cbentry->statec_cb = ulp_statec_callback; in socal_add_ulp()
3120 cbentry->els_cb = ulp_els_callback; in socal_add_ulp()
3121 cbentry->data_cb = ulp_data_callback; in socal_add_ulp()
3122 cbentry->arg = arg; in socal_add_ulp()
3123 cbentry->type = type; in socal_add_ulp()
3125 cbentry->next = port_statep->sp_unsol_cb; in socal_add_ulp()
3126 port_statep->sp_unsol_cb = cbentry; in socal_add_ulp()
3139 socal_unsol_cb_t *cbentry; in socal_remove_ulp() local
3150 for (cbentry = port_statep->sp_unsol_cb; in socal_remove_ulp()
3151 cbentry != NULL; in socal_remove_ulp()
3152 p_cbentry = cbentry, cbentry = cbentry->next) { in socal_remove_ulp()
3153 if ((cbentry->type != type) || (cbentry->arg != arg)) { in socal_remove_ulp()
3157 if (port_statep->sp_unsol_cb == cbentry) { in socal_remove_ulp()
3159 port_statep->sp_unsol_cb = cbentry->next; in socal_remove_ulp()
3163 p_cbentry->next = cbentry->next; in socal_remove_ulp()
3165 kmem_free((void *)cbentry, sizeof (socal_unsol_cb_t)); in socal_remove_ulp()