Home
last modified time | relevance | path

Searched refs:gwi (Results 1 – 5 of 5) sorted by relevance

/titanic_44/usr/src/uts/common/io/ib/clients/eoib/
H A Denx_misc.c51 eibnx_gw_info_t *gwi; in eibnx_cleanup_port_nodes() local
111 for (gwi = gw_list; gwi; gwi = nxt_gwi) { in eibnx_cleanup_port_nodes()
112 nxt_gwi = gwi->gw_next; in eibnx_cleanup_port_nodes()
114 eibnx_release_swqe((eibnx_wqe_t *)(gwi->gw_swqe)); in eibnx_cleanup_port_nodes()
115 if ((gwi->gw_addr).ga_vect) { in eibnx_cleanup_port_nodes()
116 kmem_free((gwi->gw_addr).ga_vect, in eibnx_cleanup_port_nodes()
118 (gwi->gw_addr).ga_vect = NULL; in eibnx_cleanup_port_nodes()
120 mutex_destroy(&gwi->gw_adv_lock); in eibnx_cleanup_port_nodes()
122 kmem_free(gwi, sizeof (eibnx_gw_info_t)); in eibnx_cleanup_port_nodes()
132 eibnx_gw_info_t *gwi) in eibnx_create_node_props() argument
[all …]
H A Denx_hdlrs.c405 eibnx_is_gw_dead(eibnx_gw_info_t *gwi) in eibnx_is_gw_dead() argument
411 mutex_enter(&gwi->gw_adv_lock); in eibnx_is_gw_dead()
412 if ((cur_lbolt - gwi->gw_adv_last_lbolt) > gwi->gw_adv_timeout_ticks) { in eibnx_is_gw_dead()
413 gwi->gw_adv_flag = ENX_GW_DEAD; in eibnx_is_gw_dead()
414 mutex_exit(&gwi->gw_adv_lock); in eibnx_is_gw_dead()
417 mutex_exit(&gwi->gw_adv_lock); in eibnx_is_gw_dead()
423 eibnx_gw_is_alive(eibnx_gw_info_t *gwi) in eibnx_gw_is_alive() argument
430 mutex_enter(&gwi->gw_adv_lock); in eibnx_gw_is_alive()
431 gwi->gw_adv_last_lbolt = ddi_get_lbolt64(); in eibnx_gw_is_alive()
432 if (gwi->gw_adv_flag == ENX_GW_DEAD) { in eibnx_gw_is_alive()
[all …]
H A Denx_q.c164 eibnx_enqueue_child(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi, in eibnx_enqueue_child() argument
173 new_ch->ch_gwi = gwi; in eibnx_enqueue_child()
182 if (ch->ch_gwi->gw_portid == gwi->gw_portid) { in eibnx_enqueue_child()
203 eibnx_update_child(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi, in eibnx_update_child() argument
210 if (ch->ch_gwi->gw_portid == gwi->gw_portid) { in eibnx_update_child()
214 gwi->gw_portid, dip); in eibnx_update_child()
267 eibnx_find_gw_in_gwlist(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi) in eibnx_find_gw_in_gwlist() argument
273 if (lgw->gw_portid == gwi->gw_portid) in eibnx_find_gw_in_gwlist()
291 eibnx_add_gw_to_gwlist(eibnx_thr_info_t *info, eibnx_gw_info_t *gwi, in eibnx_add_gw_to_gwlist() argument
308 gwi->gw_portid, info->ti_hca_guid, in eibnx_add_gw_to_gwlist()
[all …]
H A Denx_fip.c442 eibnx_gw_info_t *gwi; in eibnx_fip_parse_advt_pkt() local
532 gwi = &(msg->u.gm_info); in eibnx_fip_parse_advt_pkt()
533 gwi->gw_flag_available = (flags & FIP_BHFLAG_GWAVAIL) ? 1 : 0; in eibnx_fip_parse_advt_pkt()
539 gwi->gw_flag_ucast_advt = (flags & FIP_BHFLAG_SLCTMSG) ? 1 : 0; in eibnx_fip_parse_advt_pkt()
540 msg->gm_type = (gwi->gw_flag_ucast_advt) ? in eibnx_fip_parse_advt_pkt()
546 gwi->gw_ctrl_qpn = (ntohl(desc_iba->ia_qpn) & FIP_IBA_QPN_MASK); in eibnx_fip_parse_advt_pkt()
549 gwi->gw_portid = (sl_portid & FIP_IBA_PORTID_MASK); in eibnx_fip_parse_advt_pkt()
550 gwi->gw_sl = ((sl_portid & FIP_IBA_SL_MASK) >> FIP_IBA_SL_SHIFT); in eibnx_fip_parse_advt_pkt()
552 gwi->gw_lid = ntohs(desc_iba->ia_lid); in eibnx_fip_parse_advt_pkt()
555 gwi->gw_guid = ntohll(guid); in eibnx_fip_parse_advt_pkt()
[all …]
H A Denx_main.c549 eibnx_gw_info_t *gwi; in eibnx_config_all_children() local
578 while (eibnx_locate_unconfigured_node(&ti, &gwi) == ENX_E_SUCCESS) in eibnx_config_all_children()
579 (void) eibnx_configure_node(ti, gwi, NULL); in eibnx_config_all_children()
613 eibnx_gw_info_t *gwi; in eibnx_config_child() local
615 if (eibnx_locate_node_name(devname, &ti, &gwi) == ENX_E_FAILURE) { in eibnx_config_child()
621 return (eibnx_configure_node(ti, gwi, childp)); in eibnx_config_child()
629 eibnx_gw_info_t *gwi; in eibnx_unconfig_child() local
631 if (eibnx_locate_node_name(devname, &ti, &gwi) == ENX_E_FAILURE) { in eibnx_unconfig_child()
637 return (eibnx_unconfigure_node(ti, gwi)); in eibnx_unconfig_child()