/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_node.c | 162 osm_physp_t *p_remote_physp; in osm_node_link() local 165 p_remote_physp = osm_node_get_physp_ptr(p_remote_node, remote_port_num); in osm_node_link() 167 if (p_physp->p_remote_physp) in osm_node_link() 168 p_physp->p_remote_physp->p_remote_physp = NULL; in osm_node_link() 169 if (p_remote_physp->p_remote_physp) in osm_node_link() 170 p_remote_physp->p_remote_physp->p_remote_physp = NULL; in osm_node_link() 172 osm_physp_link(p_physp, p_remote_physp); in osm_node_link() 179 osm_physp_t *p_remote_physp; in osm_node_unlink() local 188 p_remote_physp = in osm_node_unlink() 191 osm_physp_unlink(p_physp, p_remote_physp); in osm_node_unlink() [all …]
|
H A D | osm_port.c | 189 const osm_physp_t *p_remote_physp; in osm_physp_calc_link_mtu() local 195 p_remote_physp = osm_physp_get_remote(p_physp); in osm_physp_calc_link_mtu() 196 if (p_remote_physp) { in osm_physp_calc_link_mtu() 201 ib_port_info_get_mtu_cap(&p_remote_physp->port_info); in osm_physp_calc_link_mtu() 206 cl_ntoh64(osm_physp_get_port_guid(p_remote_physp)), in osm_physp_calc_link_mtu() 207 osm_physp_get_port_num(p_remote_physp), in osm_physp_calc_link_mtu() 222 (p_remote_physp)), in osm_physp_calc_link_mtu() 223 osm_physp_get_port_num(p_remote_physp), mtu); in osm_physp_calc_link_mtu() 243 const osm_physp_t *p_remote_physp; in osm_physp_calc_link_op_vls() local 249 p_remote_physp = osm_physp_get_remote(p_physp); in osm_physp_calc_link_op_vls() [all …]
|
H A D | osm_drop_mgr.c | 86 osm_physp_t *p_remote_physp; in drop_mgr_clean_physp() local 89 p_remote_physp = osm_physp_get_remote(p_physp); in drop_mgr_clean_physp() 90 if (p_remote_physp) { in drop_mgr_clean_physp() 92 p_remote_physp->port_guid); in drop_mgr_clean_physp() 103 osm_physp_get_port_state(p_remote_physp) == in drop_mgr_clean_physp() 109 cl_ntoh64(p_remote_physp->port_guid), in drop_mgr_clean_physp() 110 p_remote_physp->port_num); in drop_mgr_clean_physp() 118 if (!p_remote_physp->p_node->sw && in drop_mgr_clean_physp() 119 p_remote_physp->port_guid != sm->p_subn->sm_port_guid) { in drop_mgr_clean_physp() 125 (p_remote_physp->p_node)), in drop_mgr_clean_physp() [all …]
|
H A D | osm_ucast_cache.c | 230 if (!p_physp_1->p_remote_physp && !p_physp_2->p_remote_physp) in cache_check_link_change() 236 if ((p_physp_1->p_remote_physp && in cache_check_link_change() 237 p_physp_1->p_remote_physp->p_remote_physp) || in cache_check_link_change() 238 (p_physp_2->p_remote_physp && in cache_check_link_change() 239 p_physp_2->p_remote_physp->p_remote_physp)) { in cache_check_link_change() 412 osm_physp_t *p_remote_physp; in ucast_cache_validate() local 449 if (!p_physp || !p_physp->p_remote_physp || in ucast_cache_validate() 451 p_physp->p_remote_physp)) in ucast_cache_validate() 462 p_physp->p_remote_physp->p_node && in ucast_cache_validate() 463 osm_node_get_type(p_physp->p_remote_physp-> in ucast_cache_validate() [all …]
|
H A D | osm_switch.c | 300 if (!p_physp || !p_physp->p_remote_physp || in osm_switch_recommend_path() 301 !p_physp->p_remote_physp->p_node->sw) in osm_switch_recommend_path() 304 if (p_physp->p_remote_physp->p_node->sw == p_sw) in osm_switch_recommend_path() 305 return p_physp->p_remote_physp->port_num; in osm_switch_recommend_path() 307 osm_node_get_base_lid(p_physp->p_remote_physp->p_node, 0); in osm_switch_recommend_path() 679 if (!p || !p->p_remote_physp || !p->p_remote_physp->p_node->sw) in osm_switch_get_port_least_hops() 681 if (p->p_remote_physp->p_node->sw == p_sw) in osm_switch_get_port_least_hops() 683 lid = osm_node_get_base_lid(p->p_remote_physp->p_node, 0); in osm_switch_get_port_least_hops() 708 if (!p_physp || !p_physp->p_remote_physp || in osm_switch_recommend_mcast_path() 709 !p_physp->p_remote_physp->p_node->sw) in osm_switch_recommend_mcast_path() [all …]
|
H A D | osm_dump.c | 188 if (!p_physp || !p_physp->p_remote_physp || in dump_ucast_routes() 189 !p_physp->p_remote_physp->p_node->sw) in dump_ucast_routes() 194 p_remote_physp-> in dump_ucast_routes() 198 p_physp->p_remote_physp->p_node-> in dump_ucast_routes() 387 p_rphysp = p_physp->p_remote_physp; in dump_topology_node() 528 if (!p_physp || !p_physp->p_remote_physp) in dump_sl2vl_tbl() 556 const osm_physp_t *p_physp, *p_remote_physp; in print_node_report() local 625 p_remote_physp = osm_physp_get_remote(p_physp); in print_node_report() 626 if (p_remote_physp) in print_node_report() 629 (p_remote_physp)), in print_node_report() [all …]
|
H A D | osm_link_mgr.c | 104 osm_physp_t *p_remote_physp, *physp0 = NULL; in link_mgr_set_physp_pi() local 282 p_remote_physp = osm_physp_get_remote(p_physp); in link_mgr_set_physp_pi() 283 if (port_num != 0 && p_remote_physp) { in link_mgr_set_physp_pi() 296 (osm_physp_get_node_ptr(p_remote_physp)) != in link_mgr_set_physp_pi() 387 if (port_num != 0 && p_remote_physp) { in link_mgr_set_physp_pi() 391 if (osm_node_get_type(p_remote_physp->p_node) == in link_mgr_set_physp_pi() 393 rphysp0 = osm_node_get_physp_ptr(p_remote_physp->p_node, 0); in link_mgr_set_physp_pi() 396 rem_cap_mask = p_remote_physp->port_info.capability_mask; in link_mgr_set_physp_pi()
|
H A D | osm_node_info_rcv.c | 75 p_old = p_physp->p_remote_physp; in report_duplicated_guid() 108 if (!p_physp->p_remote_physp) { in requery_dup_node_info() 114 path = *osm_physp_get_dr_path_ptr(p_physp->p_remote_physp); in requery_dup_node_info() 115 if (osm_dr_path_extend(&path, p_physp->p_remote_physp->port_num)) { in requery_dup_node_info() 123 p_physp->p_remote_physp->p_node->node_info.port_guid; in requery_dup_node_info() 124 context.ni_context.port_num = p_physp->p_remote_physp->port_num; in requery_dup_node_info() 146 osm_physp_t *p_physp, *p_remote_physp; in ni_rcv_set_links() local 238 requery_dup_node_info(sm, p_physp->p_remote_physp, in ni_rcv_set_links() 292 p_remote_physp = osm_node_get_physp_ptr(p_neighbor_node, in ni_rcv_set_links() 294 if (!p_physp || !p_remote_physp) in ni_rcv_set_links() [all …]
|
H A D | osm_ucast_dnup.c | 223 osm_physp_t *p_physp, *p_remote_physp; in dnup_subn_rank() local 263 p_remote_physp = p_physp->p_remote_physp; in dnup_subn_rank() 270 if (p_remote_physp && p_remote_physp->p_node->sw) { in dnup_subn_rank() 271 remote_u = p_remote_physp->p_node->sw->priv; in dnup_subn_rank() 272 port_guid = p_remote_physp->port_guid; in dnup_subn_rank()
|
H A D | osm_port_info_rcv.c | 266 osm_physp_t *p_remote_physp, *physp0; in pi_rcv_process_switch_ext_port() local 294 p_remote_physp = osm_physp_get_remote(p_physp); in pi_rcv_process_switch_ext_port() 295 if (p_remote_physp) { in pi_rcv_process_switch_ext_port() 297 osm_physp_get_node_ptr(p_remote_physp); in pi_rcv_process_switch_ext_port() 299 osm_physp_get_port_num(p_remote_physp); in pi_rcv_process_switch_ext_port() 315 p_remote_physp); in pi_rcv_process_switch_ext_port() 420 p_remote_physp = osm_physp_get_remote(p_physp); in pi_rcv_process_switch_ext_port() 421 if (p_remote_physp) { in pi_rcv_process_switch_ext_port() 422 p_remote_node = osm_physp_get_node_ptr(p_remote_physp); in pi_rcv_process_switch_ext_port() 622 osm_physp_t *p_rem_physp = p_physp->p_remote_physp; in osm_pi_rcv_update_neighbor()
|
H A D | osm_ucast_updn.c | 212 osm_physp_t *p_physp, *p_remote_physp; in updn_subn_rank() local 252 p_remote_physp = p_physp->p_remote_physp; in updn_subn_rank() 259 if (p_remote_physp && p_remote_physp->p_node->sw) { in updn_subn_rank() 260 remote_u = p_remote_physp->p_node->sw->priv; in updn_subn_rank() 261 port_guid = p_remote_physp->port_guid; in updn_subn_rank() 443 p_physp = p_port->p_physp->p_remote_physp; in updn_find_root_nodes_by_min_hop()
|
H A D | osm_mcast_mgr.c | 158 } else if (port->p_physp->p_remote_physp) { in create_mgrp_switch_map() 159 sw = port->p_physp->p_remote_physp->p_node->sw; in create_mgrp_switch_map() 617 const osm_physp_t *p_remote_physp; in mcast_mgr_branch() local 705 p_remote_physp = osm_physp_get_remote(p_physp); in mcast_mgr_branch() 706 CL_ASSERT(p_remote_physp); in mcast_mgr_branch() 712 (p_remote_physp), p_max_depth); in mcast_mgr_branch() 896 osm_physp_t *p_remote_physp; 934 p_remote_physp = osm_physp_get_remote(p_physp); 935 if (p_remote_physp == NULL) { 943 p_remote_node = osm_physp_get_node_ptr(p_remote_physp); [all …]
|
H A D | osm_ucast_lash.c | 124 else if (p->p_remote_physp && p->p_remote_physp->p_node->sw) in get_osm_switch_from_port() 125 return p->p_remote_physp->p_node->sw; in get_osm_switch_from_port() 1019 port->p_physp->p_remote_physp->port_num; in populate_fwd_tbls() 1061 osm_physp_t *p_current_physp, *p_remote_physp; in osm_lash_process_switch() local 1074 p_remote_physp = p_current_physp->p_remote_physp; in osm_lash_process_switch() 1075 if (p_remote_physp && p_remote_physp->p_node->sw) { in osm_lash_process_switch() 1079 osm_physp_get_port_num(p_remote_physp); in osm_lash_process_switch() 1081 get_lash_id(p_remote_physp->p_node->sw); in osm_lash_process_switch() 1094 (p_remote_physp)), in osm_lash_process_switch() 1168 && p_current_physp->p_remote_physp) { in discover_network_properties()
|
H A D | osm_ucast_mgr.c | 118 p_remote_node = (p && p->p_remote_physp) ? in ucast_mgr_process_hop_0_1() 119 p->p_remote_physp->p_node : NULL; in ucast_mgr_process_hop_0_1() 186 osm_node_t *node = p->p_remote_physp->p_node; in find_and_add_remote_sys() 187 uint8_t rem_port = osm_physp_get_port_num(p->p_remote_physp); in find_and_add_remote_sys() 804 if (p && p->p_remote_physp && !p->p_remote_physp->p_node->sw) { in add_sw_endports_to_order_list() 806 p->p_remote_physp-> in add_sw_endports_to_order_list() 826 if (p && p->p_remote_physp && !p->p_remote_physp->p_node->sw) in sw_count_endport_links()
|
H A D | osm_req.c | 97 p_physp = p_physp->p_remote_physp; in req_determine_mkey() 115 if (p_physp->p_remote_physp) { in req_determine_mkey() 116 dest_port_guid = p_physp->p_remote_physp->port_guid; in req_determine_mkey()
|
H A D | osm_trap_rcv.c | 225 if (p->p_remote_physp && in disable_port() 226 p->dr_path.hop_count > p->p_remote_physp->dr_path.hop_count) in disable_port() 227 p = p->p_remote_physp; in disable_port()
|
H A D | osm_perfmgr.c | 569 osm_physp_t *p_remote_physp = p_physp->p_remote_physp; in collect_guids() local 579 if (p_remote_physp && osm_physp_is_valid(p_remote_physp)) { in collect_guids() 580 osm_node_t *p_remote_node = p_remote_physp->p_node; in collect_guids() 584 mon_port->remote_port = p_remote_physp->port_num; in collect_guids()
|
H A D | osm_pkey_mgr.c | 870 if (p_physp && p_physp->p_remote_physp) in osm_pkey_mgr_process() 871 p_remote_node = p_physp->p_remote_physp->p_node; in osm_pkey_mgr_process()
|
H A D | osm_ucast_dfsssp.c | 1045 if (p && p->p_remote_physp && !p->p_remote_physp->p_node->sw) { in add_sw_endports_to_order_list() 1046 port_guid = p->p_remote_physp->port_guid; in add_sw_endports_to_order_list() 1685 sw = port->p_physp->p_remote_physp->p_node->sw; in update_mgrp_membership() 1851 if (p_physp && p_physp->p_remote_physp) { in get_avail_vl_in_subn()
|
H A D | osm_ucast_ftree.c | 3301 (p_osm_port->p_remote_physp-> in rank_leaf_switches() 4018 if (physp && physp->p_remote_physp) { in remove_depended_hca() 4019 if (osm_node_get_type(physp->p_remote_physp->p_node) == IB_NODE_TYPE_CA) { in remove_depended_hca() 4021 osm_node_get_node_guid(physp->p_remote_physp->p_node); in remove_depended_hca() 4027 osm_physp_get_port_num(physp->p_remote_physp); in remove_depended_hca()
|
H A D | osm_torus.c | 1211 rphysp = lphysp->p_remote_physp; in capture_fabric() 1245 rphysp = lphysp->p_remote_physp; in capture_fabric()
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_port.h | 113 struct osm_physp *p_remote_physp; member 752 return p_physp->p_remote_physp; in osm_physp_get_remote() 840 IN const osm_physp_t * p_remote_physp) in osm_physp_link_exists() argument 844 CL_ASSERT(p_remote_physp); in osm_physp_link_exists() 845 CL_ASSERT(osm_physp_is_valid(p_remote_physp)); in osm_physp_link_exists() 846 return ((p_physp->p_remote_physp == p_remote_physp) && in osm_physp_link_exists() 847 (p_remote_physp->p_remote_physp == p_physp)); in osm_physp_link_exists() 878 IN osm_physp_t * p_remote_physp) in osm_physp_link() argument 881 CL_ASSERT(p_remote_physp); in osm_physp_link() 882 p_physp->p_remote_physp = p_remote_physp; in osm_physp_link() [all …]
|