Home
last modified time | relevance | path

Searched refs:p_port (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_guid_mgr.c58 static void guidinfo_set(IN osm_sa_t *sa, IN osm_port_t *p_port, in guidinfo_set() argument
66 &((*p_port->p_physp->p_guids)[block_num * GUID_TABLE_MAX_ENTRIES]), in guidinfo_set()
69 context.gi_context.node_guid = osm_node_get_node_guid(p_port->p_node); in guidinfo_set()
70 context.gi_context.port_guid = osm_physp_get_port_guid(p_port->p_physp); in guidinfo_set()
72 context.gi_context.port_num = osm_physp_get_port_num(p_port->p_physp); in guidinfo_set()
74 status = osm_req_set(sa->sm, osm_physp_get_dr_path_ptr(p_port->p_physp), in guidinfo_set()
77 ib_port_info_get_m_key(&p_port->p_physp->port_info), in guidinfo_set()
85 osm_guidinfo_work_obj_t *osm_guid_work_obj_new(IN osm_port_t * p_port, in osm_guid_work_obj_new() argument
97 p_obj->p_port = p_port; in osm_guid_work_obj_new()
109 int osm_queue_guidinfo(IN osm_sa_t *sa, IN osm_port_t *p_port, in osm_queue_guidinfo() argument
[all …]
H A Dosm_sa_guidinfo_record.c379 IN osm_port_t *p_port, IN uint8_t block_num) in del_guidinfo() argument
393 if (!p_port->p_physp->p_guids) in del_guidinfo()
396 max_block = (p_port->p_physp->port_info.guid_cap + GUID_TABLE_MAX_ENTRIES - 1) / in del_guidinfo()
403 block_num, max_block, cl_ntoh64(p_port->p_physp->port_guid)); in del_guidinfo()
417 …) * GUID_TABLE_MAX_ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABL… in del_guidinfo()
431 del_alias_guid = (*p_port->p_physp->p_guids)[i]; in del_guidinfo()
434 p_list_item = cl_qlist_head(&p_port->mcm_list); in del_guidinfo()
435 while (p_list_item != cl_qlist_end(&p_port->mcm_list)) { in del_guidinfo()
451 …) * GUID_TABLE_MAX_ENTRIES < p_port->p_physp->port_info.guid_cap ? i < (block_num + 1) * GUID_TABL… in del_guidinfo()
456 del_alias_guid = (*p_port->p_physp->p_guids)[i]; in del_guidinfo()
[all …]
H A Dosm_drop_mgr.c159 static void drop_mgr_remove_port(osm_sm_t * sm, IN osm_port_t * p_port) in drop_mgr_remove_port() argument
181 port_guid = osm_port_get_guid(p_port); in drop_mgr_remove_port()
187 if (p_port_check != p_port) { in drop_mgr_remove_port()
226 if (wobj->p_port == p_port) { in drop_mgr_remove_port()
233 while (!cl_is_qlist_empty(&p_port->mcm_list)) { in drop_mgr_remove_port()
234 mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), in drop_mgr_remove_port()
237 p_port); in drop_mgr_remove_port()
243 if (p_alias_guid_check->p_base_port == p_port) in drop_mgr_remove_port()
269 osm_port_get_lid_range_ho(p_port, &min_lid_ho, &max_lid_ho); in drop_mgr_remove_port()
279 drop_mgr_clean_physp(sm, p_port->p_physp); in drop_mgr_remove_port()
[all …]
H A Dosm_lid_mgr.c299 osm_port_t *p_port; in lid_mgr_init_sweep() local
362 for (p_port = (osm_port_t *) cl_qmap_head(p_port_guid_tbl); in lid_mgr_init_sweep()
363 p_port != (osm_port_t *) cl_qmap_end(p_port_guid_tbl); in lid_mgr_init_sweep()
364 p_port = (osm_port_t *) cl_qmap_next(&p_port->map_item)) { in lid_mgr_init_sweep()
365 osm_port_get_lid_range_ho(p_port, &disc_min_lid, &disc_max_lid); in lid_mgr_init_sweep()
370 cl_ptr_vector_set(p_discovered_vec, lid, p_port); in lid_mgr_init_sweep()
376 cl_ntoh64(osm_port_get_guid(p_port)), in lid_mgr_init_sweep()
380 if (!p_port->p_node->sw || in lid_mgr_init_sweep()
381 osm_switch_sp0_is_lmc_capable(p_port->p_node->sw, in lid_mgr_init_sweep()
394 cl_ntoh64(osm_port_get_guid(p_port)), in lid_mgr_init_sweep()
[all …]
H A Dosm_sa_vlarb_record.c132 static void sa_vl_arb_by_comp_mask(osm_sa_t * sa, IN const osm_port_t * p_port, in sa_vl_arb_by_comp_mask() argument
151 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { in sa_vl_arb_by_comp_mask()
153 port_num = p_port->p_physp->port_num; in sa_vl_arb_by_comp_mask()
161 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in sa_vl_arb_by_comp_mask()
163 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_vl_arb_by_comp_mask()
174 osm_node_get_num_physp(p_port->p_node)); in sa_vl_arb_by_comp_mask()
178 num_ports = osm_node_get_num_physp(p_port->p_node); in sa_vl_arb_by_comp_mask()
181 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_vl_arb_by_comp_mask()
200 const osm_port_t *p_port = (osm_port_t *) p_map_item; in sa_vl_arb_by_comp_mask_cb() local
203 sa_vl_arb_by_comp_mask(p_ctxt->sa, p_port, p_ctxt); in sa_vl_arb_by_comp_mask_cb()
[all …]
H A Dosm_sa_slvl_record.c117 static void sa_slvl_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, in sa_slvl_by_comp_mask() argument
133 num_ports = osm_node_get_num_physp(p_port->p_node); in sa_slvl_by_comp_mask()
140 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { in sa_slvl_by_comp_mask()
143 p_port->p_physp->port_num); in sa_slvl_by_comp_mask()
144 p_out_physp = p_port->p_physp; in sa_slvl_by_comp_mask()
159 osm_node_get_physp_ptr(p_port->p_node, in sa_slvl_by_comp_mask()
172 osm_node_get_physp_ptr(p_port->p_node, in sa_slvl_by_comp_mask()
193 const osm_port_t *p_port = (osm_port_t *) p_map_item; in sa_slvl_by_comp_mask_cb() local
196 sa_slvl_by_comp_mask(p_ctxt->sa, p_port, p_ctxt); in sa_slvl_by_comp_mask_cb()
205 const osm_port_t *p_port = NULL; in osm_slvl_rec_rcv_process() local
[all …]
H A Dosm_sa_sminfo_record.c80 IN const osm_port_t * p_port, in smir_rcv_new_smir() argument
105 p_rec_item->resp.sminfo_rec.lid = osm_port_get_base_lid(p_port); in smir_rcv_new_smir()
124 osm_port_t *p_port; in sa_smir_by_comp_mask() local
146 p_port = osm_get_port_by_guid(sa->p_subn, p_rem_sm->smi.guid); in sa_smir_by_comp_mask()
148 if (p_port == NULL) { in sa_smir_by_comp_mask()
154 smir_rcv_new_smir(sa, p_port, p_ctxt->p_list, in sa_smir_by_comp_mask()
176 const osm_port_t *p_port = NULL; in osm_smir_rcv_process() local
246 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_smir_rcv_process()
247 if (!p_port) { in osm_smir_rcv_process()
267 if (!p_port || local_port == p_port) { in osm_smir_rcv_process()
[all …]
H A Dosm_port.c140 osm_port_t *p_port; in osm_port_new() local
145 p_port = malloc(sizeof(*p_port)); in osm_port_new()
146 if (!p_port) in osm_port_new()
149 memset(p_port, 0, sizeof(*p_port)); in osm_port_new()
150 cl_qlist_init(&p_port->mcm_list); in osm_port_new()
151 p_port->p_node = (struct osm_node *)p_parent_node; in osm_port_new()
153 p_port->guid = port_guid; in osm_port_new()
165 osm_port_delete(&p_port); in osm_port_new()
170 p_port->p_physp = p_physp; in osm_port_new()
172 return p_port; in osm_port_new()
[all …]
H A Dosm_sa_pkey_record.c138 static void sa_pkey_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, in sa_pkey_by_comp_mask() argument
157 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { in sa_pkey_by_comp_mask()
159 port_num = p_port->p_physp->port_num; in sa_pkey_by_comp_mask()
167 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in sa_pkey_by_comp_mask()
169 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_pkey_by_comp_mask()
180 osm_node_get_num_physp(p_port->p_node)); in sa_pkey_by_comp_mask()
184 num_ports = osm_node_get_num_physp(p_port->p_node); in sa_pkey_by_comp_mask()
187 osm_node_get_physp_ptr(p_port->p_node, port_num); in sa_pkey_by_comp_mask()
206 const osm_port_t *p_port = (osm_port_t *) p_map_item; in sa_pkey_by_comp_mask_cb() local
209 sa_pkey_by_comp_mask(p_ctxt->sa, p_port, p_ctxt); in sa_pkey_by_comp_mask_cb()
[all …]
H A Dosm_state_mgr.c110 osm_port_t *p_port = (osm_port_t *) p_map_item; in state_mgr_reset_port_count() local
112 p_port->discovery_count = 0; in state_mgr_reset_port_count()
306 osm_port_t *p_port; in state_mgr_sa_clean() local
338 for (p_port = (osm_port_t *) cl_qmap_head(p_port_guid_tbl); in state_mgr_sa_clean()
339 p_port != (osm_port_t *) cl_qmap_end(p_port_guid_tbl); in state_mgr_sa_clean()
340 p_port = (osm_port_t *) cl_qmap_next(&p_port->map_item)) { in state_mgr_sa_clean()
341 while (!cl_is_qlist_empty(&p_port->mcm_list)) { in state_mgr_sa_clean()
342 mcm_port = cl_item_obj(cl_qlist_head(&p_port->mcm_list), in state_mgr_sa_clean()
345 p_port); in state_mgr_sa_clean()
348 free(p_port->p_physp->p_guids); in state_mgr_sa_clean()
[all …]
H A Dosm_dump.c120 osm_port_t *p_port; in dump_ucast_routes() local
146 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid_ho); in dump_ucast_routes()
147 if (!p_port) { in dump_ucast_routes()
170 if (p_port->p_node->sw) { in dump_ucast_routes()
173 base_lid = osm_node_get_base_lid(p_port->p_node, 0); in dump_ucast_routes()
186 osm_physp_t *p_physp = p_port->p_physp; in dump_ucast_routes()
214 if (!p_port->p_node->sw && !direct_route_exists) { in dump_ucast_routes()
225 best_port = osm_switch_recommend_path(p_sw, p_port, in dump_ucast_routes()
316 osm_port_t *p_port; in dump_lid_matrix() local
323 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_lid_matrix()
[all …]
H A Dosm_switch.c235 IN osm_port_t * p_port, IN uint16_t lid_ho, in osm_switch_recommend_path() argument
294 if (p_port->p_node->sw) { in osm_switch_recommend_path()
295 if (p_port->p_node->sw == p_sw) in osm_switch_recommend_path()
297 base_lid = osm_port_get_base_lid(p_port); in osm_switch_recommend_path()
299 p_physp = p_port->p_physp; in osm_switch_recommend_path()
414 struct osm_remote_guids_count *r = p_port->priv; in osm_switch_recommend_path()
435 p_port->priv, in osm_switch_recommend_path()
451 p_port->priv, in osm_switch_recommend_path()
666 IN const osm_port_t * p_port) in osm_switch_get_port_least_hops() argument
670 if (p_port->p_node->sw) { in osm_switch_get_port_least_hops()
[all …]
H A Dosm_congestion_control.c378 osm_port_t *p_port = (osm_port_t *) p_next; in osm_congestion_control_setup() local
379 osm_node_t *p_node = p_port->p_node; in osm_congestion_control_setup()
384 if (p_port->cc_unavailable_flag) in osm_congestion_control_setup()
394 p_port->p_physp); in osm_congestion_control_setup()
400 p_port->p_physp); in osm_congestion_control_setup()
455 osm_port_t *p_port; in cc_rcv_mad() local
470 p_port = osm_get_port_by_guid(p_cc->subn, port_guid); in cc_rcv_mad()
471 if (!p_port) { in cc_rcv_mad()
479 p_port->cc_timeout_count = 0; in cc_rcv_mad()
485 p_port->cc_unavailable_flag = TRUE; in cc_rcv_mad()
[all …]
H A Dosm_router.c60 osm_router_t *osm_router_new(IN osm_port_t * p_port) in osm_router_new() argument
64 CL_ASSERT(p_port); in osm_router_new()
69 p_rtr->p_port = p_port; in osm_router_new()
H A Dosm_node_info_rcv.c463 osm_port_t *p_port; in ni_rcv_process_existing_ca_or_router() local
480 p_port = osm_get_port_by_guid(sm->p_subn, p_ni->port_guid); in ni_rcv_process_existing_ca_or_router()
481 if (!p_port) { in ni_rcv_process_existing_ca_or_router()
488 p_port = osm_port_new(p_ni, p_node); in ni_rcv_process_existing_ca_or_router()
489 if (PF(p_port == NULL)) { in ni_rcv_process_existing_ca_or_router()
501 &p_port->map_item); in ni_rcv_process_existing_ca_or_router()
502 if (PF(p_port_check != p_port)) { in ni_rcv_process_existing_ca_or_router()
511 osm_port_delete(&p_port); in ni_rcv_process_existing_ca_or_router()
516 p_port); in ni_rcv_process_existing_ca_or_router()
536 osm_port_delete(&p_port); in ni_rcv_process_existing_ca_or_router()
[all …]
H A Dosm_perfmgr_db.c357 db_port_t *p_port = NULL; in perfmgr_db_add_err_reading() local
370 p_port = &(node->ports[port]); in perfmgr_db_add_err_reading()
373 debug_dump_err_reading(db, guid, port, p_port, reading); in perfmgr_db_add_err_reading()
382 p_port->err_total.symbol_err_cnt += epi_pe_data.symbol_err_cnt; in perfmgr_db_add_err_reading()
385 p_port->err_total.link_err_recover += epi_pe_data.link_err_recover; in perfmgr_db_add_err_reading()
388 p_port->err_total.link_downed += epi_pe_data.link_downed; in perfmgr_db_add_err_reading()
390 p_port->err_total.rcv_err += epi_pe_data.rcv_err; in perfmgr_db_add_err_reading()
393 p_port->err_total.rcv_rem_phys_err += epi_pe_data.rcv_rem_phys_err; in perfmgr_db_add_err_reading()
396 p_port->err_total.rcv_switch_relay_err += in perfmgr_db_add_err_reading()
400 p_port->err_total.xmit_discards += epi_pe_data.xmit_discards; in perfmgr_db_add_err_reading()
[all …]
H A Dosm_pkey_rcv.c62 osm_port_t *p_port; in osm_pkey_rcv_process() local
95 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); in osm_pkey_rcv_process()
96 if (!p_port) { in osm_pkey_rcv_process()
105 p_node = p_port->p_node; in osm_pkey_rcv_process()
116 p_physp = p_port->p_physp; in osm_pkey_rcv_process()
H A Dosm_vl_arb_rcv.c71 osm_port_t *p_port; in osm_vla_rcv_process() local
103 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); in osm_vla_rcv_process()
104 if (!p_port) { in osm_vla_rcv_process()
113 p_node = p_port->p_node; in osm_vla_rcv_process()
122 p_physp = p_port->p_physp; in osm_vla_rcv_process()
H A Dosm_slvl_map_rcv.c70 osm_port_t *p_port; in osm_slvl_rcv_process() local
104 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); in osm_slvl_rcv_process()
106 if (!p_port) { in osm_slvl_rcv_process()
115 p_node = p_port->p_node; in osm_slvl_rcv_process()
144 startoutport = endoutport = p_port->p_physp->port_num; in osm_slvl_rcv_process()
H A Dosm_sa_lft_record.c117 osm_port_t *p_port; in lftr_rcv_by_comp_mask() local
123 p_port = osm_get_port_by_guid(sa->p_subn, in lftr_rcv_by_comp_mask()
125 if (!p_port) { in lftr_rcv_by_comp_mask()
134 p_physp = p_port->p_physp; in lftr_rcv_by_comp_mask()
147 osm_port_get_lid_range_ho(p_port, &min_lid_ho, &max_lid_ho); in lftr_rcv_by_comp_mask()
173 osm_port_get_base_lid(p_port), block); in lftr_rcv_by_comp_mask()
H A Dosm_mlnx_ext_port_info_rcv.c69 osm_port_t *p_port; in osm_mlnx_epi_rcv_process() local
96 p_port = osm_get_port_by_guid(sm->p_subn, port_guid); in osm_mlnx_epi_rcv_process()
97 if (!p_port) { in osm_mlnx_epi_rcv_process()
108 p_node = p_port->p_node; in osm_mlnx_epi_rcv_process()
H A Dosm_console.c622 osm_port_t *p_port = NULL; in querylid_parse() local
633 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in querylid_parse()
634 if (!p_port) in querylid_parse()
643 cl_ntoh64(p_port->guid), in querylid_parse()
644 p_port->p_node->print_desc, in querylid_parse()
645 ib_get_node_type_str(osm_node_get_type(p_port->p_node)), in querylid_parse()
646 p_port->p_node->node_info.num_ports); in querylid_parse()
648 if (p_port->p_node->sw) in querylid_parse()
652 for ( /* see above */ ; p < p_port->p_node->physp_tbl_size; p++) { in querylid_parse()
656 p_port->p_node->physp_table[p]. in querylid_parse()
[all …]
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_port.h1308 static inline ib_net16_t osm_port_get_base_lid(IN const osm_port_t * p_port) in osm_port_get_base_lid() argument
1310 CL_ASSERT(p_port->p_physp && osm_physp_is_valid(p_port->p_physp)); in osm_port_get_base_lid()
1311 return osm_physp_get_base_lid(p_port->p_physp); in osm_port_get_base_lid()
1338 static inline uint8_t osm_port_get_lmc(IN const osm_port_t * p_port) in osm_port_get_lmc() argument
1340 CL_ASSERT(p_port->p_physp && osm_physp_is_valid(p_port->p_physp)); in osm_port_get_lmc()
1341 return osm_physp_get_lmc(p_port->p_physp); in osm_port_get_lmc()
1367 static inline ib_net64_t osm_port_get_guid(IN const osm_port_t * p_port) in osm_port_get_guid() argument
1369 return p_port->guid; in osm_port_get_guid()
1396 void osm_port_get_lid_range_ho(IN const osm_port_t * p_port,
1679 static inline void osm_port_clear_base_lid(OUT osm_port_t * p_port) in osm_port_clear_base_lid() argument
[all …]
H A Dosm_router.h96 osm_port_t *p_port; member
143 osm_router_t *osm_router_new(IN osm_port_t * p_port);
169 return p_rtr->p_port; in osm_router_get_port_ptr()
197 return p_rtr->p_port->p_node; in osm_router_get_node_ptr()
H A Dosm_guid.h53 osm_port_t *p_port; member
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,

123