Lines Matching refs:ch

77 	srpt_channel_t		*ch = NULL;  in srpt_cm_req_hdlr()  local
121 ch = srpt_stp_login(tgt, &login, &login_rsp, in srpt_cm_req_hdlr()
123 if (ch != NULL) { in srpt_cm_req_hdlr()
135 ret_args->cm_ret.rep.cm_channel = ch->ch_chan_hdl; in srpt_cm_req_hdlr()
173 srpt_channel_t *ch; in srpt_cm_conn_est_hdlr() local
178 ch = (srpt_channel_t *)ibt_get_chan_private(event->cm_channel); in srpt_cm_conn_est_hdlr()
179 ASSERT(ch != NULL); in srpt_cm_conn_est_hdlr()
182 (void *)ch); in srpt_cm_conn_est_hdlr()
184 rw_enter(&ch->ch_rwlock, RW_WRITER); in srpt_cm_conn_est_hdlr()
185 if (ch->ch_state != SRPT_CHANNEL_CONNECTING && in srpt_cm_conn_est_hdlr()
186 ch->ch_state != SRPT_CHANNEL_CONNECTED) { in srpt_cm_conn_est_hdlr()
188 ch->ch_state); in srpt_cm_conn_est_hdlr()
189 rw_exit(&ch->ch_rwlock); in srpt_cm_conn_est_hdlr()
193 ch->ch_state = SRPT_CHANNEL_CONNECTED; in srpt_cm_conn_est_hdlr()
195 rw_exit(&ch->ch_rwlock); in srpt_cm_conn_est_hdlr()
209 srpt_channel_t *ch; in srpt_cm_conn_closed_hdlr() local
214 ch = (srpt_channel_t *)ibt_get_chan_private(event->cm_channel); in srpt_cm_conn_closed_hdlr()
215 ASSERT(ch != NULL); in srpt_cm_conn_closed_hdlr()
218 " event(%d)", (void *)ch->ch_chan_hdl, in srpt_cm_conn_closed_hdlr()
235 srpt_ch_cleanup(ch); in srpt_cm_conn_closed_hdlr()
236 srpt_ch_release_ref(ch, 1); in srpt_cm_conn_closed_hdlr()
251 srpt_ch_cleanup(ch); in srpt_cm_conn_closed_hdlr()
252 srpt_ch_release_ref(ch, 1); in srpt_cm_conn_closed_hdlr()
271 srpt_channel_t *ch; in srpt_cm_failure_hdlr() local
275 ch = (srpt_channel_t *)ibt_get_chan_private(event->cm_channel); in srpt_cm_failure_hdlr()
276 ASSERT(ch != NULL); in srpt_cm_failure_hdlr()
284 srpt_ch_cleanup(ch); in srpt_cm_failure_hdlr()
285 srpt_ch_release_ref(ch, 1); in srpt_cm_failure_hdlr()