/freebsd-11-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_router.c | 60 osm_router_t *osm_router_new(IN osm_port_t * p_port) argument 64 CL_ASSERT(p_port); 69 p_rtr->p_port = p_port;
|
H A D | osm_guid_mgr.c | 58 static void guidinfo_set(IN osm_sa_t *sa, IN osm_port_t *p_port, argument 66 &((*p_port->p_physp->p_guids)[block_num * GUID_TABLE_MAX_ENTRIES]), 69 context.gi_context.node_guid = osm_node_get_node_guid(p_port->p_node); 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), 85 osm_guidinfo_work_obj_t *osm_guid_work_obj_new(IN osm_port_t * p_port, argument 97 p_obj->p_port = p_port; 109 osm_queue_guidinfo(IN osm_sa_t *sa, IN osm_port_t *p_port, IN uint8_t block_num) argument [all...] |
H A D | osm_sa_vlarb_record.c | 132 static void sa_vl_arb_by_comp_mask(osm_sa_t * sa, IN const osm_port_t * p_port, argument 151 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { 153 port_num = p_port->p_physp->port_num; 161 if (port_num < osm_node_get_num_physp(p_port->p_node)) { 163 osm_node_get_physp_ptr(p_port->p_node, port_num); 174 osm_node_get_num_physp(p_port->p_node)); 178 num_ports = osm_node_get_num_physp(p_port->p_node); 181 osm_node_get_physp_ptr(p_port->p_node, port_num); 200 const osm_port_t *p_port = (osm_port_t *) p_map_item; local 203 sa_vl_arb_by_comp_mask(p_ctxt->sa, p_port, p_ctx 212 const osm_port_t *p_port = NULL; local [all...] |
H A D | osm_sa_slvl_record.c | 117 static void sa_slvl_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, argument 133 num_ports = osm_node_get_num_physp(p_port->p_node); 140 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { 143 p_port->p_physp->port_num); 144 p_out_physp = p_port->p_physp; 159 osm_node_get_physp_ptr(p_port->p_node, 172 osm_node_get_physp_ptr(p_port->p_node, 193 const osm_port_t *p_port = (osm_port_t *) p_map_item; local 196 sa_slvl_by_comp_mask(p_ctxt->sa, p_port, p_ctxt); 205 const osm_port_t *p_port local [all...] |
H A D | osm_lid_mgr.c | 299 osm_port_t *p_port; local 362 for (p_port = (osm_port_t *) cl_qmap_head(p_port_guid_tbl); 363 p_port != (osm_port_t *) cl_qmap_end(p_port_guid_tbl); 364 p_port = (osm_port_t *) cl_qmap_next(&p_port->map_item)) { 365 osm_port_get_lid_range_ho(p_port, &disc_min_lid, &disc_max_lid); 370 cl_ptr_vector_set(p_discovered_vec, lid, p_port); 376 cl_ntoh64(osm_port_get_guid(p_port)), 380 if (!p_port->p_node->sw || 381 osm_switch_sp0_is_lmc_capable(p_port 655 lid_mgr_cleanup_discovered_port_lid_range(IN osm_lid_mgr_t * p_mgr, IN osm_port_t * p_port) argument 680 lid_mgr_get_port_lid(IN osm_lid_mgr_t * p_mgr, IN osm_port_t * p_port, OUT uint16_t * p_min_lid, OUT uint16_t * p_max_lid) argument 802 lid_mgr_set_physp_pi(IN osm_lid_mgr_t * p_mgr, IN osm_port_t * p_port, IN osm_physp_t * p_physp, IN ib_net16_t lid) argument 1105 osm_port_t *p_port; local 1189 osm_port_t *p_port; local [all...] |
H A D | osm_drop_mgr.c | 159 static void drop_mgr_remove_port(osm_sm_t * sm, IN osm_port_t * p_port) argument 181 port_guid = osm_port_get_guid(p_port); 187 if (p_port_check != p_port) { 226 if (wobj->p_port == p_port) { 233 while (!cl_is_qlist_empty(&p_port->mcm_list)) { 234 mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), 237 p_port); 243 if (p_alias_guid_check->p_base_port == p_port) 269 osm_port_get_lid_range_ho(p_port, 333 osm_port_t *p_port; local 394 osm_port_t *p_port; local 495 osm_port_t *p_port, *p_next_port; local [all...] |
H A D | osm_sa_guidinfo_record.c | 379 IN osm_port_t *p_port, IN uint8_t block_num) 393 if (!p_port->p_physp->p_guids) 396 max_block = (p_port->p_physp->port_info.guid_cap + GUID_TABLE_MAX_ENTRIES - 1) / 403 block_num, max_block, cl_ntoh64(p_port->p_physp->port_guid)); 417 (block_num + 1) * GUID_TABLE_MAX_ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABLE_MAX_ENTRIES : i < p_port->p_physp->port_info.guid_cap; 431 del_alias_guid = (*p_port->p_physp->p_guids)[i]; 434 p_list_item = cl_qlist_head(&p_port->mcm_list); 435 while (p_list_item != cl_qlist_end(&p_port->mcm_list)) { 451 (block_num + 1) * GUID_TABLE_MAX_ENTRIES < p_port 378 del_guidinfo(IN osm_sa_t *sa, IN osm_madw_t *p_madw, IN osm_port_t *p_port, IN uint8_t block_num) argument 491 set_guidinfo(IN osm_sa_t *sa, IN osm_madw_t *p_madw, IN osm_port_t *p_port, IN uint8_t block_num) argument 754 osm_port_t *p_port; local [all...] |
H A D | osm_sa_sminfo_record.c | 80 IN const osm_port_t * p_port, 105 p_rec_item->resp.sminfo_rec.lid = osm_port_get_base_lid(p_port); 124 osm_port_t *p_port; local 146 p_port = osm_get_port_by_guid(sa->p_subn, p_rem_sm->smi.guid); 148 if (p_port == NULL) { 154 smir_rcv_new_smir(sa, p_port, p_ctxt->p_list, 176 const osm_port_t *p_port = NULL; local 246 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); 247 if (!p_port) { 267 if (!p_port || local_por 79 smir_rcv_new_smir(IN osm_sa_t * sa, IN const osm_port_t * p_port, IN cl_qlist_t * p_list, IN ib_net64_t const guid, IN ib_net32_t const act_count, IN uint8_t const pri_state, IN const osm_physp_t * p_req_physp) argument [all...] |
H A D | osm_pkey_rcv.c | 62 osm_port_t *p_port; local 95 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); 96 if (!p_port) { 105 p_node = p_port->p_node; 116 p_physp = p_port->p_physp;
|
H A D | osm_vl_arb_rcv.c | 71 osm_port_t *p_port; local 103 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); 104 if (!p_port) { 113 p_node = p_port->p_node; 122 p_physp = p_port->p_physp;
|
H A D | osm_sa_pkey_record.c | 138 static void sa_pkey_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, argument 157 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { 159 port_num = p_port->p_physp->port_num; 167 if (port_num < osm_node_get_num_physp(p_port->p_node)) { 169 osm_node_get_physp_ptr(p_port->p_node, port_num); 180 osm_node_get_num_physp(p_port->p_node)); 184 num_ports = osm_node_get_num_physp(p_port->p_node); 187 osm_node_get_physp_ptr(p_port->p_node, port_num); 206 const osm_port_t *p_port = (osm_port_t *) p_map_item; local 209 sa_pkey_by_comp_mask(p_ctxt->sa, p_port, p_ctx 218 const osm_port_t *p_port = NULL; local [all...] |
H A D | osm_guid_info_rcv.c | 72 osm_port_t *p_port; local 105 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); 106 if (!p_port) {
|
H A D | osm_mlnx_ext_port_info_rcv.c | 69 osm_port_t *p_port; local 96 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); 97 if (!p_port) { 108 p_node = p_port->p_node;
|
H A D | osm_port.c | 140 osm_port_t *p_port; local 145 p_port = malloc(sizeof(*p_port)); 146 if (!p_port) 149 memset(p_port, 0, sizeof(*p_port)); 150 cl_qlist_init(&p_port->mcm_list); 151 p_port->p_node = (struct osm_node *)p_parent_node; 153 p_port->guid = port_guid; 168 p_port 173 osm_port_get_lid_range_ho(IN const osm_port_t * p_port, IN uint16_t * p_min_lid, IN uint16_t * p_max_lid) argument 321 osm_port_t *p_port; local 444 osm_port_t *p_port; local [all...] |
H A D | osm_dump.c | 120 osm_port_t *p_port; local 146 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid_ho); 147 if (!p_port) { 170 if (p_port->p_node->sw) { 173 base_lid = osm_node_get_base_lid(p_port->p_node, 0); 186 osm_physp_t *p_physp = p_port->p_physp; 214 if (!p_port->p_node->sw && !direct_route_exists) { 225 best_port = osm_switch_recommend_path(p_sw, p_port, 316 osm_port_t *p_port; local 323 p_port 346 osm_port_t *p_port; local 502 osm_port_t *p_port = (osm_port_t *) item; local [all...] |
H A D | osm_slvl_map_rcv.c | 70 osm_port_t *p_port; local 104 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); 106 if (!p_port) { 115 p_node = p_port->p_node; 144 startoutport = endoutport = p_port->p_physp->port_num;
|
H A D | osm_state_mgr.c | 110 osm_port_t *p_port = (osm_port_t *) p_map_item; local 112 p_port->discovery_count = 0; 306 osm_port_t *p_port; local 338 for (p_port = (osm_port_t *) cl_qmap_head(p_port_guid_tbl); 339 p_port != (osm_port_t *) cl_qmap_end(p_port_guid_tbl); 340 p_port = (osm_port_t *) cl_qmap_next(&p_port->map_item)) { 341 while (!cl_is_qlist_empty(&p_port->mcm_list)) { 342 mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), 345 p_port); 437 osm_port_t *p_port; local 501 osm_port_t *p_port; local 619 osm_port_t *p_port; local 968 const osm_port_t *p_port; local 1032 osm_port_t *p_port; local 1106 osm_port_t *p_port; local [all...] |
H A D | osm_switch.c | 235 IN osm_port_t * p_port, IN uint16_t lid_ho, 252 provided the tracking array and counter via p_port->priv, 294 if (p_port->p_node->sw) { 295 if (p_port->p_node->sw == p_sw) 297 base_lid = osm_port_get_base_lid(p_port); 299 p_physp = p_port->p_physp; 414 struct osm_remote_guids_count *r = p_port->priv; 435 p_port->priv, 451 p_port->priv, 666 IN const osm_port_t * p_port) 234 osm_switch_recommend_path(IN const osm_switch_t * p_sw, IN osm_port_t * p_port, IN uint16_t lid_ho, IN unsigned start_from, IN boolean_t ignore_existing, IN boolean_t routing_for_lmc, IN boolean_t dor, IN boolean_t port_shifting, IN uint32_t scatter_ports, IN osm_lft_type_enum lft_enum) argument 665 osm_switch_get_port_least_hops(IN const osm_switch_t * p_sw, IN const osm_port_t * p_port) argument 689 osm_switch_recommend_mcast_path(IN osm_switch_t * p_sw, IN osm_port_t * p_port, IN uint16_t mlid_ho, IN boolean_t ignore_existing) argument [all...] |
H A D | osm_sa_sw_info_record.c | 107 osm_port_t *p_port; local 120 p_port = 122 if (!p_port) { 131 p_physp = p_port->p_physp; 144 osm_port_get_lid_range_ho(p_port, &min_lid_ho, &max_lid_ho); 160 sir_rcv_new_sir(sa, p_sw, p_list, osm_port_get_base_lid(p_port));
|
H A D | osm_sa_mft_record.c | 122 osm_port_t *p_port; local 130 p_port = 132 if (!p_port) { 141 p_physp = p_port->p_physp; 154 osm_port_get_lid_range_ho(p_port, &min_lid_ho, &max_lid_ho); 205 osm_port_get_base_lid(p_port), block,
|
H A D | osm_sa_lft_record.c | 117 osm_port_t *p_port; local 123 p_port = osm_get_port_by_guid(sa->p_subn, 125 if (!p_port) { 134 p_physp = p_port->p_physp; 147 osm_port_get_lid_range_ho(p_port, &min_lid_ho, &max_lid_ho); 173 osm_port_get_base_lid(p_port), block);
|
/freebsd-11-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_guid.h | 53 osm_port_t *p_port; member in struct:osm_guidinfo_work_obj 57 osm_guidinfo_work_obj_t *osm_guid_work_obj_new(IN osm_port_t * p_port, 62 int osm_queue_guidinfo(IN osm_sa_t *sa, IN osm_port_t *p_port,
|
H A D | osm_router.h | 96 osm_port_t *p_port; member in struct:osm_router 103 * p_port 143 osm_router_t *osm_router_new(IN osm_port_t * p_port); 169 return p_rtr->p_port; 197 return p_rtr->p_port->p_node;
|
H A D | osm_mcast_mgr.h | 60 osm_port_t *p_port; member in struct:osm_mcast_work_obj
|
H A D | osm_port.h | 299 * p_port 1308 static inline ib_net16_t osm_port_get_base_lid(IN const osm_port_t * p_port) argument 1310 CL_ASSERT(p_port->p_physp && osm_physp_is_valid(p_port->p_physp)); 1311 return osm_physp_get_base_lid(p_port->p_physp); 1316 * p_port 1338 static inline uint8_t osm_port_get_lmc(IN const osm_port_t * p_port) argument 1340 CL_ASSERT(p_port->p_physp && osm_physp_is_valid(p_port->p_physp)); 1341 return osm_physp_get_lmc(p_port 1367 osm_port_get_guid(IN const osm_port_t * p_port) argument 1679 osm_port_clear_base_lid(OUT osm_port_t * p_port) argument [all...] |