| /freebsd-13.1/contrib/ofed/opensm/include/opensm/ |
| H A D | osm_port.h | 327 CL_ASSERT(p_physp); in osm_physp_is_valid() 358 CL_ASSERT(p_physp); in osm_physp_is_healthy() 420 CL_ASSERT(p_physp); in osm_physp_set_health() 489 CL_ASSERT(p_physp); in osm_physp_set_base_lid() 560 * p_physp) in osm_physp_get_pkey_tbl() 637 p_physp, in osm_physp_get_slvl_tbl() 842 CL_ASSERT(p_physp); in osm_physp_link_exists() 880 CL_ASSERT(p_physp); in osm_physp_link() 1129 p_physp) in osm_physp_get_dr_path_ptr() 1310 CL_ASSERT(p_port->p_physp && osm_physp_is_valid(p_port->p_physp)); in osm_port_get_base_lid() [all …]
|
| /freebsd-13.1/contrib/ofed/opensm/opensm/ |
| H A D | osm_port.c | 62 memset(p_physp, 0, sizeof(*p_physp)); in osm_physp_construct() 74 if (p_physp->p_guids) in osm_physp_destroy() 86 memset(p_physp, 0, sizeof(*p_physp)); in osm_physp_destroy() 142 osm_physp_t *p_physp; in osm_port_new() local 164 if (!p_physp) { in osm_port_new() 170 p_port->p_physp = p_physp; in osm_port_new() 353 if (!p_physp) { in physp_get_dr_physp_set() 371 if (!(p_physp = osm_physp_get_remote(p_physp))) { in physp_get_dr_physp_set() 489 p_physp = p_port->p_physp; in osm_physp_replace_dr_path_with_alternate_dr_path() 491 CL_ASSERT(p_physp); in osm_physp_replace_dr_path_with_alternate_dr_path() [all …]
|
| H A D | osm_pkey_mgr.c | 207 osm_physp_t *p_physp; in pkey_mgr_process_partition_table() local 216 p_physp = cl_map_obj(i); in pkey_mgr_process_partition_table() 217 if (p_physp) in pkey_mgr_process_partition_table() 219 p_physp); in pkey_mgr_process_partition_table() 376 osm_physp_t *p_physp; in pkey_mgr_update_port() local 395 p_physp = p_port->p_physp; in pkey_mgr_update_port() 396 if (!p_physp) in pkey_mgr_update_port() 705 p_physp = p_port->p_physp; in pkey_mgr_update_peer_port() 706 if (!p_physp) in pkey_mgr_update_peer_port() 817 osm_physp_t *p_physp; in osm_pkey_mgr_process() local [all …]
|
| H A D | osm_port_info_rcv.c | 175 (p_physp), in pi_rcv_process_endport() 216 if (p_physp->need_update) in pi_rcv_process_switch_port0() 314 p_physp, in pi_rcv_process_switch_ext_port() 364 (p_physp))) { in pi_rcv_process_switch_ext_port() 409 if (p_physp->need_update) in pi_rcv_process_switch_ext_port() 566 osm_physp_t *p_physp; in pi_rcv_process_set() local 580 CL_ASSERT(p_physp); in pi_rcv_process_set() 649 osm_physp_t *p_physp; in osm_pi_rcv_process() local 763 CL_ASSERT(p_physp); in osm_pi_rcv_process() 771 p_physp->need_update = osm_pi_rcv_update_self(sm, p_physp, p_pi); in osm_pi_rcv_process() [all …]
|
| H A D | osm_node.c | 161 osm_physp_t *p_physp; in osm_node_link() local 167 if (p_physp->p_remote_physp) in osm_node_link() 178 osm_physp_t *p_physp; in osm_node_unlink() local 199 osm_physp_t *p_physp; in osm_node_link_exists() local 216 osm_physp_t *p_physp; in osm_node_link_has_valid_ports() local 225 return (p_physp && p_remote_physp); in osm_node_link_has_valid_ports() 230 osm_physp_t *p_physp; in osm_node_has_any_link() local 240 osm_physp_t *p_physp; in osm_node_get_remote_node() local 245 if (!p_physp || !osm_physp_has_any_link(p_physp)) in osm_node_get_remote_node() 261 osm_physp_t *p_physp; in osm_node_get_remote_base_lid() local [all …]
|
| H A D | osm_link_mgr.c | 114 p_node = osm_physp_get_node_ptr(p_physp); in link_mgr_set_physp_pi() 116 p_old_pi = &p_physp->port_info; in link_mgr_set_physp_pi() 161 smsl = link_mgr_get_smsl(sm, p_physp); in link_mgr_set_physp_pi() 168 (p_physp))); in link_mgr_set_physp_pi() 178 (p_physp))); in link_mgr_set_physp_pi() 249 (p_physp)), port_num); in link_mgr_set_physp_pi() 292 (osm_physp_get_node_ptr(p_physp)) == in link_mgr_set_physp_pi() 482 cl_ntoh64(p_physp->port_guid), in link_mgr_set_physp_pi() 504 osm_physp_t *p_physp, *p_physp_remote; in link_mgr_process_node() local 529 if (!p_physp) in link_mgr_process_node() [all …]
|
| H A D | osm_sa_pkey_record.c | 85 lid = p_physp->port_info.base_lid; in sa_pkey_create() 92 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in sa_pkey_create() 130 (p_physp)); in sa_pkey_check_physp() 143 osm_physp_t *p_physp; in sa_pkey_by_comp_mask() local 159 port_num = p_port->p_physp->port_num; in sa_pkey_by_comp_mask() 168 p_physp = in sa_pkey_by_comp_mask() 172 if (p_physp && in sa_pkey_by_comp_mask() 175 sa_pkey_check_physp(sa, p_physp, p_ctxt); in sa_pkey_by_comp_mask() 186 p_physp = in sa_pkey_by_comp_mask() 188 if (!p_physp) in sa_pkey_by_comp_mask() [all …]
|
| H A D | osm_sa_vlarb_record.c | 91 lid = p_physp->port_info.base_lid; in sa_vl_arb_create() 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in sa_vl_arb_create() 126 sa_vl_arb_create(sa, p_physp, p_ctxt, block); in sa_vl_arb_check_physp() 137 osm_physp_t *p_physp; in sa_vl_arb_by_comp_mask() local 153 port_num = p_port->p_physp->port_num; in sa_vl_arb_by_comp_mask() 162 p_physp = in sa_vl_arb_by_comp_mask() 166 if (p_physp && in sa_vl_arb_by_comp_mask() 169 sa_vl_arb_check_physp(sa, p_physp, p_ctxt); in sa_vl_arb_by_comp_mask() 180 p_physp = in sa_vl_arb_by_comp_mask() 182 if (!p_physp) in sa_vl_arb_by_comp_mask() [all …]
|
| H A D | osm_sa_portinfo_record.c | 76 IN const osm_physp_t * p_physp, in pir_rcv_new_pir() argument 110 if (osm_node_get_type(p_physp->p_node) == in pir_rcv_new_pir() 151 if (p_physp->p_node->sw) { in sa_pir_create() 159 lmc = osm_physp_get_lmc(p_physp); in sa_pir_create() 199 p_pi = &p_physp->port_info; in sa_pir_check_physp() 202 p_physp->port_guid, p_physp->port_num, in sa_pir_check_physp() 443 sa_pir_create(sa, p_physp, p_ctxt); in sa_pir_check_physp() 454 const osm_physp_t *p_physp; in sa_pir_by_comp_mask() local 469 p_physp = in sa_pir_by_comp_mask() 474 if (p_physp && in sa_pir_by_comp_mask() [all …]
|
| H A D | osm_dump.c | 186 osm_physp_t *p_physp = p_port->p_physp; in dump_ucast_routes() local 188 if (!p_physp || !p_physp->p_remote_physp || in dump_ucast_routes() 384 if (!p_physp) in dump_topology_node() 387 p_rphysp = p_physp->p_remote_physp; in dump_topology_node() 396 p_default_physp = p_physp; in dump_topology_node() 411 cl_ntoh64(p_physp->port_guid), in dump_topology_node() 507 osm_physp_t *p_physp; in dump_sl2vl_tbl() local 528 if (!p_physp || !p_physp->p_remote_physp) in dump_sl2vl_tbl() 541 p_physp = p_port->p_physp; in dump_sl2vl_tbl() 568 if (!p_physp) in print_node_report() [all …]
|
| H A D | osm_sa_guidinfo_record.c | 110 if (p_physp->p_guids) in gir_rcv_new_gir() 131 const osm_physp_t *p_physp; in sa_gir_create_gir() local 158 if (!p_physp) in sa_gir_create_gir() 179 if (p_physp->port_info.guid_cap == 0) in sa_gir_create_gir() 183 if (p_physp->port_info.guid_cap % 8) in sa_gir_create_gir() 197 lmc = osm_physp_get_lmc(p_physp); in sa_gir_create_gir() 215 cl_ntoh16(base_lid_ho), p_physp, in sa_gir_create_gir() 393 if (!p_port->p_physp->p_guids) in del_guidinfo() 516 if (!p_port->p_physp->p_guids) { in set_guidinfo() 519 if (!p_port->p_physp->p_guids) { in set_guidinfo() [all …]
|
| H A D | osm_drop_mgr.c | 135 p_physp->port_num, in drop_mgr_clean_physp() 149 p_physp->p_node->physp_discovered[p_physp->port_num] = 0; in drop_mgr_clean_physp() 154 p_physp->port_num); in drop_mgr_clean_physp() 156 osm_physp_destroy(p_physp); in drop_mgr_clean_physp() 332 osm_physp_t *p_physp; in drop_mgr_process_node() local 356 if (p_physp) { in drop_mgr_process_node() 415 if (!p_physp) { in drop_mgr_check_switch_node() 454 if (!p_physp) in drop_mgr_check_switch_node() 478 p_physp, in drop_mgr_check_switch_node() 498 osm_physp_t *p_physp; in osm_drop_mgr_process() local [all …]
|
| H A D | osm_node_info_rcv.c | 75 p_old = p_physp->p_remote_physp; in report_duplicated_guid() 84 p_physp->port_num, in report_duplicated_guid() 108 if (!p_physp->p_remote_physp) { in requery_dup_node_info() 184 if (!p_physp) { in ni_rcv_set_links() 225 if (!p_physp) { in ni_rcv_set_links() 259 if (!p_physp) { in ni_rcv_set_links() 402 osm_physp_t *p_physp = NULL; in ni_rcv_get_node_desc() local 419 if (!p_physp) { in ni_rcv_get_node_desc() 554 if (PF(p_physp == NULL)) { in ni_rcv_process_existing_ca_or_router() 583 osm_physp_t *p_physp; in ni_rcv_process_switch() local [all …]
|
| H A D | osm_switch.c | 183 osm_physp_t *p_physp; in switch_find_guid_common() local 196 if (!p_physp) in switch_find_guid_common() 278 osm_physp_t *p_physp; in osm_switch_recommend_path() local 299 p_physp = p_port->p_physp; in osm_switch_recommend_path() 300 if (!p_physp || !p_physp->p_remote_physp || in osm_switch_recommend_path() 331 p_physp = in osm_switch_recommend_path() 338 if (p_physp && osm_physp_is_healthy(p_physp) && in osm_switch_recommend_path() 384 if (!p_physp || !osm_physp_is_healthy(p_physp) || in osm_switch_recommend_path() 676 osm_physp_t *p = p_port->p_physp; in osm_switch_get_port_least_hops() 707 osm_physp_t *p_physp = p_port->p_physp; in osm_switch_recommend_mcast_path() local [all …]
|
| H A D | osm_req.c | 71 osm_physp_t *p_physp; in req_determine_mkey() local 77 p_physp = NULL; in req_determine_mkey() 92 p_physp = p_sm_port->p_physp; in req_determine_mkey() 97 p_physp = p_physp->p_remote_physp; in req_determine_mkey() 98 if (!p_physp) in req_determine_mkey() 100 p_node = p_physp->p_node; in req_determine_mkey() 107 if (!p_physp) { in req_determine_mkey() 115 if (p_physp->p_remote_physp) { in req_determine_mkey() 123 cl_ntoh64(p_physp->port_guid), in req_determine_mkey() 124 p_physp->port_num, in req_determine_mkey() [all …]
|
| H A D | osm_mlnx_ext_port_info_rcv.c | 70 osm_physp_t *p_physp; in osm_mlnx_epi_rcv_process() local 113 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_mlnx_epi_rcv_process() 114 CL_ASSERT(p_physp); in osm_mlnx_epi_rcv_process() 115 p_physp->ext_port_info = *p_pi; in osm_mlnx_epi_rcv_process() 125 p_physp = osm_node_get_physp_ptr(p_node, portnum); in osm_mlnx_epi_rcv_process() 126 CL_ASSERT(p_physp); in osm_mlnx_epi_rcv_process() 127 p_physp->ext_port_info = *p_pi; in osm_mlnx_epi_rcv_process()
|
| H A D | osm_pkey_rcv.c | 63 osm_physp_t *p_physp; in osm_pkey_rcv_process() local 114 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_pkey_rcv_process() 116 p_physp = p_port->p_physp; in osm_pkey_rcv_process() 117 port_num = p_physp->port_num; in osm_pkey_rcv_process() 134 if (!p_physp) { in osm_pkey_rcv_process() 144 p_physp, p_pkey_tbl, block_num, in osm_pkey_rcv_process()
|
| H A D | osm_vl_arb_rcv.c | 72 osm_physp_t *p_physp; in osm_vla_rcv_process() local 120 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_vla_rcv_process() 122 p_physp = p_port->p_physp; in osm_vla_rcv_process() 123 port_num = p_physp->port_num; in osm_vla_rcv_process() 140 if (!p_physp) { in osm_vla_rcv_process() 154 osm_physp_set_vla_tbl(p_physp, p_vla_tbl, block_num); in osm_vla_rcv_process()
|
| H A D | osm_sa_slvl_record.c | 74 static void sa_slvl_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, in sa_slvl_create() argument 90 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in sa_slvl_create() 91 lid = p_physp->port_info.base_lid; in sa_slvl_create() 93 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_slvl_create() 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in sa_slvl_create() 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); in sa_slvl_create() 104 if (p_physp->p_node->node_info.node_type == IB_NODE_TYPE_SWITCH) { in sa_slvl_create() 105 p_rec_item->resp.slvl_rec.out_port_num = osm_physp_get_port_num(p_physp); in sa_slvl_create() 109 *(osm_physp_get_slvl_tbl(p_physp, in_port_idx)); in sa_slvl_create() 143 p_port->p_physp->port_num); in sa_slvl_by_comp_mask() [all …]
|
| H A D | osm_trap_rcv.c | 105 osm_physp_t *p_physp; in aging_tracker_callback() local 119 if (!p_physp) in aging_tracker_callback() 125 else if (!osm_physp_is_healthy(p_physp)) { in aging_tracker_callback() 131 osm_physp_set_health(p_physp, TRUE); in aging_tracker_callback() 371 osm_physp_t *p_physp; in trap_rcv_process_request() local 454 if (p_physp) in trap_rcv_process_request() 548 if (p_physp) { in trap_rcv_process_request() 549 osm_req_get_node_desc(sm, p_physp); in trap_rcv_process_request() 559 if (p_physp) { in trap_rcv_process_request() 565 if (p_physp) { in trap_rcv_process_request() [all …]
|
| H A D | osm_state_mgr.c | 127 osm_physp_t *p_physp; in state_mgr_get_sw_info() local 163 IN osm_physp_t * p_physp) in state_mgr_get_remote_port_info() argument 348 free(p_port->p_physp->p_guids); in state_mgr_sa_clean() 438 osm_physp_t *p_physp; in state_mgr_is_sm_port_down() local 468 p_physp = p_port->p_physp; in state_mgr_is_sm_port_down() 470 CL_ASSERT(p_physp); in state_mgr_is_sm_port_down() 649 osm_physp_t *p_physp; in state_mgr_reset_state_change_bit() local 701 osm_physp_t *p_physp = NULL; in state_mgr_update_node_desc() local 719 if (!p_physp) { in state_mgr_update_node_desc() 797 osm_physp_t *p_physp; in state_mgr_light_sweep_start() local [all …]
|
| H A D | osm_sa_multipath_record.c | 176 p_physp = p_src_alias_guid->p_base_port->p_physp; in mpr_rcv_get_path_parms() 177 p_src_physp = p_physp; in mpr_rcv_get_path_parms() 178 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() 218 if (p_physp == 0) { in mpr_rcv_get_path_parms() 283 p_physp = osm_physp_get_remote(p_physp); in mpr_rcv_get_path_parms() 285 if (p_physp == 0) { in mpr_rcv_get_path_parms() 342 p_physp->port_num); in mpr_rcv_get_path_parms() 350 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() 366 if (p_physp == 0) { in mpr_rcv_get_path_parms() 377 p_pi = &p_physp->port_info; in mpr_rcv_get_path_parms() [all …]
|
| H A D | osm_sa_path_record.c | 186 p_physp = p_src_alias_guid->p_base_port->p_physp; in pr_rcv_get_path_parms() 187 p_src_physp = p_physp; in pr_rcv_get_path_parms() 188 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() 230 if (p_physp == 0) { in pr_rcv_get_path_parms() 294 p_physp = osm_physp_get_remote(p_physp); in pr_rcv_get_path_parms() 296 if (p_physp == 0) { in pr_rcv_get_path_parms() 336 p_physp->port_num); in pr_rcv_get_path_parms() 344 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() 360 if (p_physp == 0) { in pr_rcv_get_path_parms() 371 p_pi = &p_physp->port_info; in pr_rcv_get_path_parms() [all …]
|
| H A D | osm_ucast_cache.c | 411 osm_physp_t *p_physp; in ucast_cache_validate() local 449 if (!p_physp || !p_physp->p_remote_physp || in ucast_cache_validate() 450 !osm_physp_link_exists(p_physp, in ucast_cache_validate() 451 p_physp->p_remote_physp)) in ucast_cache_validate() 467 if (!p_physp->need_update) in ucast_cache_validate() 909 osm_physp_t *p_physp; in osm_ucast_cache_add_node() local 946 if (!p_physp || !p_physp->p_remote_physp) in osm_ucast_cache_add_node() 950 p_physp->p_remote_physp); in osm_ucast_cache_add_node() 1007 if (!p_physp || !p_physp->p_remote_physp) in osm_ucast_cache_add_node() 1015 p_physp->p_remote_physp, in osm_ucast_cache_add_node() [all …]
|
| H A D | osm_congestion_control.c | 67 osm_physp_t *p_physp, in cc_mad_post() argument 77 port = osm_physp_get_port_num(p_physp); in cc_mad_post() 222 osm_physp_t *p_physp; in cc_send_sw_cong_setting() local 235 &p_physp->cc.sw.sw_cong_setting, in cc_send_sw_cong_setting() 255 cc_mad_post(p_cc, p_madw, p_node, p_physp, in cc_send_sw_cong_setting() 265 osm_physp_t *p_physp) in cc_send_ca_cong_setting() argument 279 &p_physp->cc.ca.ca_cong_setting, in cc_send_ca_cong_setting() 309 osm_physp_t *p_physp) in cc_send_cct() argument 325 &p_physp->cc.ca.cc_tbl[index], in cc_send_cct() 394 p_port->p_physp); in osm_congestion_control_setup() [all …]
|