Lines Matching refs:sw
146 osm_switch_t *sw;
155 if (port->p_node->sw) {
156 sw = port->p_node->sw;
157 sw->is_mc_member = 1;
159 sw = port->p_physp->p_remote_physp->p_node->sw;
160 sw->num_of_mcm++;
163 guid = osm_node_get_node_guid(sw->p_node);
165 cl_qmap_insert(m, guid, &sw->mgrp_item);
171 osm_switch_t *sw;
175 sw = cl_item_obj(i, sw, mgrp_item);
176 sw->num_of_mcm = 0;
177 sw->is_mc_member = 0;
196 osm_switch_t *sw;
201 sw = cl_item_obj(i, sw, mcast_item);
202 lid = cl_ntoh16(osm_node_get_base_lid(sw->p_node, 0));
207 hops += (least_hops + 1) * sw->num_of_mcm +
208 least_hops * sw->is_mc_member;
209 num_ports += sw->num_of_mcm + sw->is_mc_member;
227 osm_switch_t *sw;
236 sw = cl_item_obj(i, sw, mgrp_item);
237 lid = cl_ntoh16(osm_node_get_base_lid(sw->p_node, 0));
239 if (!sw->is_mc_member)
700 CL_ASSERT(p_remote_node->sw);
709 mcast_mgr_branch(sm, mlid_ho, p_remote_node->sw,
957 if (!p_remote_node->sw) {
964 if (osm_switch_is_in_mcast_tree(p_remote_node->sw, mlid_ho)) {
980 osm_switch_get_mcast_tbl_ptr(p_remote_node->sw);