/freebsd-11-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_port.h | 221 void osm_physp_construct(IN osm_physp_t * p_physp); 224 * p_physp 245 void osm_physp_init(IN osm_physp_t * p_physp, IN ib_net64_t port_guid, 251 * p_physp 296 void osm_physp_destroy(IN osm_physp_t * p_physp); 325 static inline boolean_t osm_physp_is_valid(IN const osm_physp_t * p_physp) argument 327 CL_ASSERT(p_physp); 328 return (p_physp->port_guid != 0); 333 * p_physp 356 static inline boolean_t osm_physp_is_healthy(IN const osm_physp_t * p_physp) argument 417 osm_physp_set_health(IN osm_physp_t * p_physp, IN boolean_t is_healthy) argument 486 osm_physp_set_base_lid(IN osm_physp_t * p_physp, IN ib_net16_t base_lid) argument 559 osm_physp_get_pkey_tbl(IN const osm_physp_t * p_physp) argument 594 osm_physp_set_slvl_tbl(IN osm_physp_t * p_physp, IN ib_slvl_table_t * p_slvl_tbl, IN uint8_t in_port_num) argument 636 osm_physp_get_slvl_tbl(IN const osm_physp_t * p_physp, IN uint8_t in_port_num) argument 673 osm_physp_set_vla_tbl(IN osm_physp_t * p_physp, IN ib_vl_arb_table_t * p_vla_tbl, IN uint8_t block_num) argument 714 osm_physp_get_vla_tbl(IN osm_physp_t * p_physp, IN uint8_t block_num) argument 749 osm_physp_get_remote(IN const osm_physp_t * p_physp) argument 779 osm_physp_get_port_guid(IN const osm_physp_t * p_physp) argument 809 osm_physp_get_subnet_prefix(IN const osm_physp_t * p_physp) argument 839 osm_physp_link_exists(IN const osm_physp_t * p_physp, IN const osm_physp_t * p_remote_physp) argument 877 osm_physp_link(IN osm_physp_t * p_physp, IN osm_physp_t * p_remote_physp) argument 912 osm_physp_unlink(IN osm_physp_t * p_physp, IN osm_physp_t * p_remote_physp) argument 949 osm_physp_has_any_link(IN const osm_physp_t * p_physp) argument 982 osm_physp_get_port_num(IN const osm_physp_t * p_physp) argument 1011 osm_physp_get_node_ptr(IN const osm_physp_t * p_physp) argument 1041 osm_physp_get_port_state(IN const osm_physp_t * p_physp) argument 1070 osm_physp_get_base_lid(IN const osm_physp_t * p_physp) argument 1099 osm_physp_get_lmc(IN const osm_physp_t * p_physp) argument 1128 osm_physp_get_dr_path_ptr(IN const osm_physp_t * p_physp) argument 1194 osm_physp_t *p_physp; member in struct:osm_port [all...] |
/freebsd-11-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_port.c | 60 void osm_physp_construct(IN osm_physp_t * p_physp) argument 62 memset(p_physp, 0, sizeof(*p_physp)); 63 osm_dr_path_construct(&p_physp->dr_path); 64 cl_ptr_vector_construct(&p_physp->slvl_by_port); 65 osm_pkey_tbl_construct(&p_physp->pkeys); 68 void osm_physp_destroy(IN osm_physp_t * p_physp) argument 73 if (p_physp->port_guid) { 74 if (p_physp->p_guids) 75 free(p_physp 91 osm_physp_init(IN osm_physp_t * p_physp, IN ib_net64_t port_guid, IN uint8_t port_num, IN const struct osm_node *p_node, IN osm_bind_handle_t h_bind, IN uint8_t hop_count, IN const uint8_t * p_initial_path) argument 142 osm_physp_t *p_physp; local 183 osm_physp_calc_link_mtu(IN osm_log_t * p_log, IN const osm_physp_t * p_physp, IN uint8_t current_mtu) argument 236 osm_physp_calc_link_op_vls(IN osm_log_t * p_log, IN const osm_subn_t * p_subn, IN const osm_physp_t * p_physp, IN uint8_t current_op_vls) argument 322 osm_physp_t *p_physp; local 390 osm_physp_t *p_physp, *p_src_physp = NULL; local 445 osm_physp_t *p_physp, *p_remote_physp; local 590 osm_link_is_healthy(IN const osm_physp_t * p_physp) argument 602 osm_physp_set_pkey_tbl(IN osm_log_t * p_log, IN const osm_subn_t * p_subn, IN osm_physp_t * p_physp, IN ib_pkey_table_t * p_pkey_tbl, IN uint16_t block_num, IN boolean_t is_set) argument 672 osm_physp_set_port_info(IN osm_physp_t * p_physp, IN const ib_port_info_t * p_pi, IN const struct osm_sm * p_sm) argument [all...] |
H A D | osm_node.c | 161 osm_physp_t *p_physp; local 164 p_physp = osm_node_get_physp_ptr(p_node, port_num); 167 if (p_physp->p_remote_physp) 168 p_physp->p_remote_physp->p_remote_physp = NULL; 172 osm_physp_link(p_physp, p_remote_physp); 178 osm_physp_t *p_physp; local 187 p_physp = osm_node_get_physp_ptr(p_node, port_num); 191 osm_physp_unlink(p_physp, p_remote_physp); 199 osm_physp_t *p_physp; local 205 p_physp 216 osm_physp_t *p_physp; local 230 osm_physp_t *p_physp; local 240 osm_physp_t *p_physp; local 261 osm_physp_t *p_physp; local [all...] |
H A D | osm_pkey_mgr.c | 67 pkey_mgr_get_physp_max_pkeys(IN const osm_physp_t * p_physp) argument 69 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); 72 if (!p_node->sw || (osm_physp_get_port_num(p_physp) == 0)) 80 pkey_mgr_get_physp_max_blocks(IN const osm_physp_t * p_physp) argument 82 return ((pkey_mgr_get_physp_max_pkeys(p_physp) + 31) / 32); 93 IN osm_physp_t * p_physp) 95 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); 100 p_pkey_tbl = &p_physp->pkeys; 107 osm_physp_get_port_num(p_physp)); 132 osm_physp_get_port_num(p_physp)); 90 pkey_mgr_process_physical_port(IN osm_log_t * p_log, IN osm_sm_t * sm, IN const ib_net16_t pkey, IN osm_physp_t * p_physp) argument 207 osm_physp_t *p_physp; local 224 pkey_mgr_update_pkey_entry(IN osm_sm_t * sm, IN const osm_physp_t * p_physp, IN const ib_pkey_table_t * block, IN const uint16_t block_index) argument 254 pkey_mgr_enforce_partition(IN osm_log_t * p_log, osm_sm_t * sm, IN osm_physp_t * p_physp, IN osm_partition_enforce_type_enum enforce_type) argument 376 osm_physp_t *p_physp; local 692 osm_physp_t *p_physp, *peer; local 817 osm_physp_t *p_physp; local [all...] |
H A D | osm_sa_vlarb_record.c | 74 static void sa_vl_arb_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument 90 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) 91 lid = p_physp->port_info.base_lid; 93 lid = osm_node_get_base_lid(p_physp->p_node, 0); 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); 104 p_rec_item->resp.vlarb_rec.port_num = osm_physp_get_port_num(p_physp); 106 p_rec_item->resp.vlarb_rec.vl_arb_tbl = *(osm_physp_get_vla_tbl(p_physp, block)); 114 static void sa_vl_arb_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument 126 sa_vl_arb_create(sa, p_physp, p_ctx 137 osm_physp_t *p_physp; local [all...] |
H A D | osm_sa_pkey_record.c | 67 static void sa_pkey_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument 84 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) 85 lid = p_physp->port_info.base_lid; 87 lid = osm_node_get_base_lid(p_physp->p_node, 0); 92 cl_ntoh64(osm_physp_get_port_guid(p_physp)), 93 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); 99 p_rec_item->resp.pkey_rec.port_num = osm_physp_get_port_num(p_physp); 106 tbl = osm_pkey_tbl_block_get(osm_physp_get_pkey_tbl(p_physp), block); 116 static void sa_pkey_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, argument 126 sa_pkey_create(sa, p_physp, p_ctx 143 osm_physp_t *p_physp; local [all...] |
H A D | osm_port_info_rcv.c | 82 static void pi_rcv_process_endport(IN osm_sm_t * sm, IN osm_physp_t * p_physp, argument 96 port_guid = osm_physp_get_port_guid(p_physp); 99 if (osm_physp_get_port_num(p_physp) != 0 && 175 (p_physp), 178 ib_port_info_get_m_key(&p_physp->port_info), 207 IN osm_physp_t * p_physp, 216 if (p_physp->need_update) 219 pi_rcv_check_and_fix_lid(sm->p_log, p_pi, p_physp); 222 osm_physp_set_port_info(p_physp, p_pi, sm); 228 p_physp 205 pi_rcv_process_switch_port0(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 259 pi_rcv_process_switch_ext_port(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 445 pi_rcv_process_ca_or_router_port(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp, IN ib_port_info_t * p_pi) argument 464 get_pkey_table(IN osm_log_t * p_log, IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp) argument 539 pi_rcv_get_pkey_slvl_vla_tables(IN osm_sm_t * sm, IN osm_node_t * p_node, IN osm_physp_t * p_physp) argument 550 osm_pi_rcv_update_self(IN osm_sm_t *sm, IN osm_physp_t *p_physp, IN ib_port_info_t *p_pi) argument 566 osm_physp_t *p_physp; local 620 osm_pi_rcv_update_neighbor(IN osm_physp_t *p_physp) argument 649 osm_physp_t *p_physp; local [all...] |
H A D | osm_pkey_rcv.c | 63 osm_physp_t *p_physp; local 114 p_physp = osm_node_get_physp_ptr(p_node, port_num); 116 p_physp = p_port->p_physp; 117 port_num = p_physp->port_num; 134 if (!p_physp) { 144 p_physp, p_pkey_tbl, block_num,
|
H A D | osm_vl_arb_rcv.c | 72 osm_physp_t *p_physp; local 120 p_physp = osm_node_get_physp_ptr(p_node, port_num); 122 p_physp = p_port->p_physp; 123 port_num = p_physp->port_num; 140 if (!p_physp) { 154 osm_physp_set_vla_tbl(p_physp, p_vla_tbl, block_num);
|
H A D | osm_mlnx_ext_port_info_rcv.c | 70 osm_physp_t *p_physp; local 113 p_physp = osm_node_get_physp_ptr(p_node, port_num); 114 CL_ASSERT(p_physp); 115 p_physp->ext_port_info = *p_pi; 125 p_physp = osm_node_get_physp_ptr(p_node, portnum); 126 CL_ASSERT(p_physp); 127 p_physp->ext_port_info = *p_pi;
|
H A D | osm_dump.c | 186 osm_physp_t *p_physp = p_port->p_physp; local 188 if (!p_physp || !p_physp->p_remote_physp || 189 !p_physp->p_remote_physp->p_node->sw) 193 osm_node_get_base_lid(p_physp-> 198 p_physp->p_remote_physp->p_node-> 373 osm_physp_t *p_physp, *p_default_physp, *p_rphysp; local 383 p_physp = osm_node_get_physp_ptr(p_node, cPort); 384 if (!p_physp) 507 osm_physp_t *p_physp; local 556 const osm_physp_t *p_physp, *p_remote_physp; local [all...] |
H A D | osm_link_mgr.c | 61 static uint8_t link_mgr_get_smsl(IN osm_sm_t * sm, IN osm_physp_t * p_physp) argument 72 (slid = osm_physp_get_base_lid(p_physp)))) { 91 static int link_mgr_set_physp_pi(osm_sm_t * sm, IN osm_physp_t * p_physp, argument 114 p_node = osm_physp_get_node_ptr(p_physp); 116 p_old_pi = &p_physp->port_info; 118 port_num = osm_physp_get_port_num(p_physp); 127 osm_physp_get_port_guid(p_physp)); 161 smsl = link_mgr_get_smsl(sm, p_physp); 168 (p_physp))); 178 (p_physp))); 504 osm_physp_t *p_physp, *p_physp_remote; local [all...] |
H A D | osm_sa_portinfo_record.c | 76 IN const osm_physp_t * p_physp, 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp)); 104 p_rec_item->resp.port_rec.port_info = p_physp->port_info; 110 if (osm_node_get_type(p_physp->p_node) == 112 p_physp0 = osm_node_get_physp_ptr(p_physp->p_node, 0); 115 p_pi = (ib_port_info_t *) &p_physp->port_info; 117 if (ib_port_info_get_link_speed_ext_active(&p_physp->port_info)) { 131 p_rec_item->resp.port_rec.port_num = osm_physp_get_port_num(p_physp); 140 static void sa_pir_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, argument 75 pir_rcv_new_pir(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, IN osm_pir_search_ctxt_t * p_ctxt, IN ib_net16_t const lid) argument 184 sa_pir_check_physp(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, osm_pir_search_ctxt_t * p_ctxt) argument 454 const osm_physp_t *p_physp; local [all...] |
H A D | osm_drop_mgr.c | 84 static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp) argument 89 p_remote_physp = osm_physp_get_remote(p_physp); 134 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), 135 p_physp->port_num, 141 osm_ucast_cache_add_link(&sm->ucast_mgr, p_physp, 144 osm_physp_unlink(p_physp, p_remote_physp); 149 p_physp->p_node->physp_discovered[p_physp->port_num] = 0; 153 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), 154 p_physp 332 osm_physp_t *p_physp; local 392 osm_physp_t *p_physp, *p_remote_physp; local 498 osm_physp_t *p_physp; local [all...] |
H A D | osm_switch.c | 183 osm_physp_t *p_physp; local 195 p_physp = osm_node_get_physp_ptr(p_sw->p_node, port_num); 196 if (!p_physp) 199 p_rem_physp = osm_physp_get_remote(p_physp); 278 osm_physp_t *p_physp; local 299 p_physp = p_port->p_physp; 300 if (!p_physp || !p_physp->p_remote_physp || 301 !p_physp 707 osm_physp_t *p_physp = p_port->p_physp; local [all...] |
H A D | osm_sa_guidinfo_record.c | 86 IN const osm_physp_t * p_physp, 110 if (p_physp->p_guids) 112 *p_physp->p_guids + block_num * GUID_TABLE_MAX_ENTRIES, 115 p_rec_item->resp.guid_rec.guid_info.guid[0] = osm_physp_get_port_guid(p_physp); 131 const osm_physp_t *p_physp; local 157 p_physp = osm_node_get_physp_ptr(p_node, port_num); 158 if (!p_physp) 161 /* Check to see if the found p_physp and the requester physp 163 if (!osm_physp_share_pkey(sa->p_log, p_physp, p_req_physp, 167 port_guid = osm_physp_get_port_guid(p_physp); 81 gir_rcv_new_gir(IN osm_sa_t * sa, IN const osm_node_t * p_node, IN cl_qlist_t * p_list, IN ib_net64_t const match_port_guid, IN ib_net16_t const match_lid, IN const osm_physp_t * p_physp, IN uint8_t const block_num) argument [all...] |
H A D | osm_guid_mgr.c | 66 &((*p_port->p_physp->p_guids)[block_num * GUID_TABLE_MAX_ENTRIES]), 70 context.gi_context.port_guid = osm_physp_get_port_guid(p_port->p_physp); 72 context.gi_context.port_num = osm_physp_get_port_num(p_port->p_physp); 74 status = osm_req_set(sa->sm, osm_physp_get_dr_path_ptr(p_port->p_physp), 77 ib_port_info_get_m_key(&p_port->p_physp->port_info),
|
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, argument 90 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) 91 lid = p_physp->port_info.base_lid; 93 lid = osm_node_get_base_lid(p_physp->p_node, 0); 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); 104 if (p_physp->p_node->node_info.node_type == IB_NODE_TYPE_SWITCH) { 105 p_rec_item->resp.slvl_rec.out_port_num = osm_physp_get_port_num(p_physp); 109 *(osm_physp_get_slvl_tbl(p_physp, in_port_idx)); 143 p_port->p_physp [all...] |
H A D | osm_node_info_rcv.c | 68 static void report_duplicated_guid(IN osm_sm_t * sm, osm_physp_t * p_physp, argument 75 p_old = p_physp->p_remote_physp; 83 cl_ntoh64(p_physp->p_node->node_info.node_guid), 84 p_physp->port_num, 90 osm_dump_dr_path_v2(sm->p_log, osm_physp_get_dr_path_ptr(p_physp), 101 static void requery_dup_node_info(IN osm_sm_t * sm, osm_physp_t * p_physp, argument 108 if (!p_physp->p_remote_physp) { 114 path = *osm_physp_get_dr_path_ptr(p_physp->p_remote_physp); 115 if (osm_dr_path_extend(&path, p_physp->p_remote_physp->port_num)) { 123 p_physp 146 osm_physp_t *p_physp, *p_remote_physp; local 372 osm_req_get_node_desc(IN osm_sm_t * sm, osm_physp_t * p_physp) argument 402 osm_physp_t *p_physp = NULL; local 552 osm_physp_t *p_physp = osm_node_get_physp_ptr(p_node, port_num); local 583 osm_physp_t *p_physp; local [all...] |
H A D | osm_req.c | 71 osm_physp_t *p_physp; local 77 p_physp = NULL; 90 p_physp = osm_node_get_physp_ptr(p_node, p_path->path[1]); 92 p_physp = p_sm_port->p_physp; 96 for (hop = 2; p_physp && hop <= p_path->hop_count; hop++) { 97 p_physp = p_physp->p_remote_physp; 98 if (!p_physp) 100 p_node = p_physp [all...] |
H A D | osm_trap_rcv.c | 62 extern void osm_req_get_node_desc(IN osm_sm_t * sm, osm_physp_t *p_physp); 105 osm_physp_t *p_physp; local 118 p_physp = get_physp_by_lid_and_num(sm, lid, port_num); 119 if (!p_physp) 125 else if (!osm_physp_is_healthy(p_physp)) { 131 osm_physp_set_health(p_physp, TRUE); 349 /* check if the current state of the p_physp is healthy. If 371 osm_physp_t *p_physp; local 452 p_physp = osm_get_physp_by_mad_addr(sm->p_log, sm->p_subn, 454 if (p_physp) [all...] |
H A D | osm_sa_multipath_record.c | 148 const osm_physp_t *p_physp, *p_physp0; local 175 p_dest_physp = p_dest_alias_guid->p_base_port->p_physp; 176 p_physp = p_src_alias_guid->p_base_port->p_physp; 177 p_src_physp = p_physp; 178 p_pi = &p_physp->port_info; 205 If source port node is a switch, then p_physp should 209 p_node = osm_physp_get_node_ptr(p_physp); 214 * Make sure that p_physp points to the out port of the 217 p_physp [all...] |
H A D | osm_slvl_map_rcv.c | 71 osm_physp_t *p_physp; local 144 startoutport = endoutport = p_port->p_physp->port_num; 162 p_physp = osm_node_get_physp_ptr(p_node, out_port); 164 osm_physp_set_slvl_tbl(p_physp, p_slvl_tbl, in_port);
|
H A D | osm_sa_path_record.c | 156 const osm_physp_t *p_physp, *p_physp0; local 185 p_dest_physp = p_dest_alias_guid->p_base_port->p_physp; 186 p_physp = p_src_alias_guid->p_base_port->p_physp; 187 p_src_physp = p_physp; 188 p_pi = &p_physp->port_info; 217 If source port node is a switch, then p_physp should 221 p_node = osm_physp_get_node_ptr(p_physp); 226 * Make sure that p_physp points to the out port of the 229 p_physp [all...] |
H A D | osm_state_mgr.c | 127 osm_physp_t *p_physp; local 137 p_physp = osm_node_get_physp_ptr(p_node, 0); 138 p_dr_path = osm_physp_get_dr_path_ptr(p_physp); 148 FALSE, ib_port_info_get_m_key(&p_physp->port_info), 163 IN osm_physp_t * p_physp) 173 p_dr_path = osm_physp_get_dr_path_ptr(p_physp); 175 if (osm_dr_path_extend(&rem_node_dr_path, osm_physp_get_port_num(p_physp))) { 186 osm_node_get_node_guid(osm_physp_get_node_ptr(p_physp)); 187 mad_context.pi_context.port_guid = p_physp->port_guid; 200 cl_ntoh64(p_physp 162 state_mgr_get_remote_port_info(IN osm_sm_t * sm, IN osm_physp_t * p_physp) argument 438 osm_physp_t *p_physp; local 649 osm_physp_t *p_physp; local 701 osm_physp_t *p_physp = NULL; local 797 osm_physp_t *p_physp; local [all...] |