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