Lines Matching defs:info
41 eibnx_acquire_swqe(eibnx_thr_info_t *info, int flag)
44 eibnx_tx_t *snd_p = &info->ti_snd;
107 eibnx_return_rwqe(eibnx_thr_info_t *info, eibnx_wqe_t *wqe)
130 ret = ibt_post_recv(info->ti_chan, &(wqe->qe_wr.recv), 1, NULL);
133 "ret=%d", info->ti_chan, ret);
164 eibnx_enqueue_child(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi,
175 mutex_enter(&info->ti_child_lock);
181 for (ch = info->ti_child; ch; ch = ch->ch_next) {
196 new_ch->ch_next = info->ti_child;
197 info->ti_child = new_ch;
199 mutex_exit(&info->ti_child_lock);
203 eibnx_update_child(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi,
208 mutex_enter(&info->ti_child_lock);
209 for (ch = info->ti_child; ch; ch = ch->ch_next) {
217 mutex_exit(&info->ti_child_lock);
222 mutex_exit(&info->ti_child_lock);
228 eibnx_find_child_dip_by_inst(eibnx_thr_info_t *info, int inst)
233 mutex_enter(&info->ti_child_lock);
234 for (ch = info->ti_child; ch != NULL; ch = ch->ch_next) {
239 mutex_exit(&info->ti_child_lock);
245 eibnx_find_child_dip_by_gw(eibnx_thr_info_t *info, uint16_t gw_portid)
250 mutex_enter(&info->ti_child_lock);
251 for (ch = info->ti_child; ch != NULL; ch = ch->ch_next) {
256 mutex_exit(&info->ti_child_lock);
267 eibnx_find_gw_in_gwlist(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi)
271 mutex_enter(&info->ti_gw_lock);
272 for (lgw = info->ti_gw; lgw; lgw = lgw->gw_next) {
276 mutex_exit(&info->ti_gw_lock);
291 eibnx_add_gw_to_gwlist(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi,
308 gwi->gw_portid, info->ti_hca_guid,
309 info->ti_pi->p_port_num);
318 if ((wqe = eibnx_acquire_swqe(info, KM_NOSLEEP)) == NULL) {
321 gwi->gw_portid, info->ti_hca_guid,
322 info->ti_pi->p_port_num);
357 sgid = info->ti_pi->p_sgid_tbl[0];
393 mutex_enter(&info->ti_gw_lock);
394 new_gwi->gw_next = info->ti_gw;
395 info->ti_gw = new_gwi;
396 mutex_exit(&info->ti_gw_lock);
405 eibnx_replace_gw_in_gwlist(eibnx_thr_info_t *info, eibnx_gw_info_t *orig_gwi,
416 * We'll update all info received in the new advertisement in
420 mutex_enter(&info->ti_gw_lock);
569 sgid = info->ti_pi->p_sgid_tbl[0];
599 mutex_exit(&info->ti_gw_lock);
611 eibnx_queue_for_creation(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi)
624 "gw_port_id=0x%x", info->ti_hca_guid,
625 info->ti_pi->p_port_num, gwi->gw_portid);
628 new_node->nc_info = info;