Home
last modified time | relevance | path

Searched refs:p_node (Results 1 – 25 of 64) sorted by relevance

123

/freebsd-14.2/contrib/ofed/opensm/opensm/
H A Dosm_node.c76 osm_node_t *p_node; in osm_node_new() local
94 p_node = malloc(sizeof(*p_node) + sizeof(osm_physp_t) * size); in osm_node_new()
95 if (!p_node) in osm_node_new()
98 memset(p_node, 0, sizeof(*p_node) + sizeof(osm_physp_t) * size); in osm_node_new()
102 p_node->physp_discovered = malloc(sizeof(uint8_t) * p_node->physp_tbl_size); in osm_node_new()
104 free(p_node); in osm_node_new()
129 return p_node; in osm_node_new()
152 CL_ASSERT(p_node && *p_node); in osm_node_delete()
153 node_destroy(*p_node); in osm_node_delete()
154 free(*p_node); in osm_node_delete()
[all …]
H A Dosm_drop_mgr.c170 osm_node_t *p_node; in drop_mgr_remove_port() local
291 p_node = p_port->p_node; in drop_mgr_remove_port()
300 p_node ? p_node->print_desc : "UNKNOWN"); in drop_mgr_remove_port()
323 p_node->sw = NULL; in drop_mgr_remove_switch()
370 if (p_node->sw) in drop_mgr_process_node()
376 if (p_node_check != p_node) { in drop_mgr_process_node()
383 osm_node_delete(&p_node); in drop_mgr_process_node()
403 if (!p_node->sw) { in drop_mgr_check_switch_node()
471 (p_node)), port_num, in drop_mgr_check_switch_node()
512 p_node = p_next_node; in osm_drop_mgr_process()
[all …]
H A Dosm_node_info_rcv.c237 } else if (p_node->sw) in ni_rcv_set_links()
659 osm_node_t *p_node; in ni_rcv_process_new() local
699 if (PF(p_node == NULL)) { in ni_rcv_process_new()
713 osm_node_delete(&p_node); in ni_rcv_process_new()
740 osm_node_delete(&p_node); in ni_rcv_process_new()
811 osm_node_delete(&p_node); in ni_rcv_process_new()
812 p_node = p_node_check; in ni_rcv_process_new()
818 p_node->discovery_count++; in ni_rcv_process_new()
880 p_node->discovery_count++; in ni_rcv_process_existing()
918 osm_node_t *p_node; in osm_ni_rcv_process() local
[all …]
H A Dosm_dump.c66 osm_node_t *p_node; in dump_ucast_path_distribution() local
74 p_node = p_sw->p_node; in dump_ucast_path_distribution()
132 p_node = p_sw->p_node; in dump_ucast_routes()
195 p_node, 0); in dump_ucast_routes()
255 p_node = p_sw->p_node; in dump_mcast_routes()
307 osm_node_t *p_node = p_sw->p_node; in dump_lid_matrix() local
335 osm_node_t *p_node = p_sw->p_node; in dump_ucast_lfts() local
344 cl_ntoh64(osm_node_get_node_guid(p_node)), p_node->print_desc); in dump_ucast_lfts()
356 p_node = p_port->p_node; in dump_ucast_lfts()
503 osm_node_t *p_node = p_port->p_node; in dump_sl2vl_tbl() local
[all …]
H A Dosm_port_info_rcv.c206 IN osm_node_t * p_node, in pi_rcv_process_switch_port0() argument
225 if (p_node->sw && in pi_rcv_process_switch_port0()
307 (p_node)), port_num, in pi_rcv_process_switch_ext_port()
452 UNUSED_PARAM(p_node); in pi_rcv_process_ca_or_router_port()
577 CL_ASSERT(p_node); in pi_rcv_process_set()
623 osm_node_t *p_node; in osm_pi_rcv_update_neighbor() local
633 CL_ASSERT(p_node); in osm_pi_rcv_update_neighbor()
636 if (!p_node->sw) in osm_pi_rcv_update_neighbor()
651 osm_node_t *p_node; in osm_pi_rcv_process() local
721 p_node = p_port->p_node; in osm_pi_rcv_process()
[all …]
H A Dosm_node_desc_rcv.c75 cl_ntoh64(osm_node_get_node_guid(p_node)), in nd_rcv_process_nd()
79 if (p_node->print_desc) in nd_rcv_process_nd()
80 free(p_node->print_desc); in nd_rcv_process_nd()
81 p_node->print_desc = tmp_desc; in nd_rcv_process_nd()
86 cl_ntoh64(osm_node_get_node_guid(p_node)), in nd_rcv_process_nd()
87 p_node->print_desc); in nd_rcv_process_nd()
92 cl_ntoh64(osm_node_get_node_guid(p_node)), p_node->print_desc); in nd_rcv_process_nd()
103 osm_node_t *p_node; in osm_nd_rcv_process() local
125 p_node = osm_get_node_by_guid(sm->p_subn, node_guid); in osm_nd_rcv_process()
126 if (!p_node) in osm_nd_rcv_process()
[all …]
H A Dosm_sw_info_rcv.c70 osm_node_t *p_node;
79 p_node = p_sw->p_node;
116 osm_node_t *p_node;
129 p_node = p_sw->p_node;
254 p_node->sw = p_sw; in si_rcv_process_new()
285 IN osm_node_t * p_node, in si_rcv_process_existing() argument
288 osm_switch_t *p_sw = p_node->sw; in si_rcv_process_existing()
387 osm_node_t *p_node; in osm_si_rcv_process() local
416 if (!p_node) { in osm_si_rcv_process()
436 if (!p_node->sw) { in osm_si_rcv_process()
[all …]
H A Dosm_sa_node_record.c71 IN const osm_node_t * p_node, in nr_rcv_new_nr() argument
92 cl_ntoh64(osm_node_get_node_guid(p_node)), in nr_rcv_new_nr()
144 num_ports = osm_node_get_num_physp(p_node); in nr_rcv_create_nr()
147 p_physp = osm_node_get_physp_ptr(p_node, port_num); in nr_rcv_create_nr()
196 osm_node_t *p_node = (osm_node_t *) p_map_item; in nr_rcv_by_comp_mask() local
218 cl_ntoh64(osm_node_get_node_guid(p_node))); in nr_rcv_by_comp_mask()
220 if (p_node->node_info.node_guid != in nr_rcv_by_comp_mask()
233 p_node->node_info.base_version != in nr_rcv_by_comp_mask()
238 p_node->node_info.class_version != in nr_rcv_by_comp_mask()
251 p_node->node_info.partition_cap != in nr_rcv_by_comp_mask()
[all …]
H A Dosm_pkey_mgr.c283 p_physp->p_node->print_desc); in pkey_mgr_enforce_partition()
321 p_physp->p_node->print_desc); in pkey_mgr_enforce_partition()
328 p_physp->p_node->print_desc); in pkey_mgr_enforce_partition()
377 osm_node_t *p_node; in pkey_mgr_update_port() local
412 p_physp->p_node->print_desc); in pkey_mgr_update_port()
546 (p_node)), in pkey_mgr_update_port()
657 p_node->print_desc); in update_peer_block()
693 osm_node_t *p_node; in pkey_mgr_update_peer_port() local
712 if (!p_node->sw || !p_node->sw->switch_info.enforce_cap) in pkey_mgr_update_peer_port()
767 p_node)) in pkey_mgr_update_peer_port()
[all …]
H A Dosm_state_mgr.c126 osm_node_t *p_node; in state_mgr_get_sw_info() local
136 p_node = p_sw->p_node; in state_mgr_get_sw_info()
534 p_node = p_port->p_node; in state_mgr_sweep_hop_1()
605 osm_node_get_type(p_node), p_node->print_desc); in state_mgr_sweep_hop_1()
658 p_node = p_sw->p_node; in state_mgr_reset_state_change_bit()
843 (p_node)), in state_mgr_light_sweep_start()
891 p_node ? p_node->print_desc : "UNKNOWN"); in state_mgr_exists_other_master_sm()
953 p_node ? p_node->print_desc : "UNKNOWN"); in state_mgr_get_highest_sm()
990 p_port->p_node ? p_port->p_node->print_desc : "UNKNOWN"); in state_mgr_send_handover()
1016 p_port->p_node ? p_port->p_node->print_desc : "UNKNOWN"); in state_mgr_send_handover()
[all …]
H A Dosm_slvl_map_rcv.c72 osm_node_t *p_node; in osm_slvl_rcv_process() local
115 p_node = p_port->p_node; in osm_slvl_rcv_process()
116 CL_ASSERT(p_node); in osm_slvl_rcv_process()
119 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_slvl_rcv_process()
120 unsigned num_ports = osm_node_get_num_physp(p_node) - 1; in osm_slvl_rcv_process()
124 startoutport = ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info) ? 0 : 1; in osm_slvl_rcv_process()
125 endoutport = osm_node_get_num_physp(p_node) - 1; in osm_slvl_rcv_process()
130 startinport = ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info) ? 0 : 1; in osm_slvl_rcv_process()
131 endinport = osm_node_get_num_physp(p_node) - 1; in osm_slvl_rcv_process()
162 p_physp = osm_node_get_physp_ptr(p_node, out_port); in osm_slvl_rcv_process()
H A Dosm_ucast_cache.c410 osm_node_t *p_node; in ucast_cache_validate() local
437 p_node = p_sw->p_node; in ucast_cache_validate()
833 osm_node_t *p_node_1 = p_physp1->p_node, *p_node_2 = p_physp2->p_node; in osm_ucast_cache_add_link()
868 p_node_1 = p_physp1->p_node; in osm_ucast_cache_add_link()
932 if (!p_node->sw) { in osm_ucast_cache_add_node()
973 if (!p_node->sw->num_hops || !p_node->sw->hops) { in osm_ucast_cache_add_node()
983 p_node->sw->num_hops = 0; in osm_ucast_cache_add_node()
985 p_node->sw->hops = NULL; in osm_ucast_cache_add_node()
989 if (p_node->sw->new_lft) { in osm_ucast_cache_add_node()
997 p_node->sw->lft = NULL; in osm_ucast_cache_add_node()
[all …]
H A Dosm_sa_link_record.c209 osm_node_t *p_node; in lr_rcv_get_port_links() local
237 p_node, in lr_rcv_get_port_links()
256 p_src_port->p_node->physp_tbl_size) { in lr_rcv_get_port_links()
259 p_node, in lr_rcv_get_port_links()
274 p_node, in lr_rcv_get_port_links()
294 p_dest_port->p_node->physp_tbl_size) { in lr_rcv_get_port_links()
297 p_node, in lr_rcv_get_port_links()
312 p_node, in lr_rcv_get_port_links()
329 num_ports = osm_node_get_num_physp(p_node); in lr_rcv_get_port_links()
333 osm_node_get_physp_ptr(p_node, in lr_rcv_get_port_links()
[all …]
H A Dosm_mlnx_ext_port_info_rcv.c71 osm_node_t *p_node; in osm_mlnx_epi_rcv_process() local
108 p_node = p_port->p_node; in osm_mlnx_epi_rcv_process()
109 CL_ASSERT(p_node); in osm_mlnx_epi_rcv_process()
113 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_mlnx_epi_rcv_process()
118 if (p_node->sw && in osm_mlnx_epi_rcv_process()
119 ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info)) in osm_mlnx_epi_rcv_process()
123 portnum < osm_node_get_num_physp(p_node); in osm_mlnx_epi_rcv_process()
125 p_physp = osm_node_get_physp_ptr(p_node, portnum); in osm_mlnx_epi_rcv_process()
H A Dosm_link_mgr.c100 osm_node_t *p_node; in link_mgr_set_physp_pi() local
114 p_node = osm_physp_get_node_ptr(p_physp); in link_mgr_set_physp_pi()
139 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) in link_mgr_set_physp_pi()
140 physp0 = osm_node_get_physp_ptr(p_node, 0); in link_mgr_set_physp_pi()
149 if (!p_node->sw) { in link_mgr_set_physp_pi()
152 cl_ntoh64(p_node->node_info.node_guid)); in link_mgr_set_physp_pi()
391 if (osm_node_get_type(p_remote_physp->p_node) == in link_mgr_set_physp_pi()
513 cl_ntoh64(osm_node_get_node_guid(p_node)), in link_mgr_process_node()
521 num_physp = osm_node_get_num_physp(p_node); in link_mgr_process_node()
571 osm_node_t *p_node; in osm_link_mgr_process() local
[all …]
H A Dosm_ucast_mgr.c122 p_remote_node != p_sw->p_node) { in ucast_mgr_process_hop_0_1()
170 (p_this_sw->p_node))); in ucast_mgr_process_neighbor()
225 p_port->p_node->print_desc, in ucast_mgr_process_port()
366 CL_ASSERT(p_sw && p_sw->p_node); in ucast_mgr_process_tbl()
402 osm_node_t *p_node; in ucast_mgr_process_neighbors() local
411 p_node = p_sw->p_node; in ucast_mgr_process_neighbors()
413 CL_ASSERT(p_node); in ucast_mgr_process_neighbors()
692 (p_sw->p_node))); in ucast_mgr_setup_all_switches()
904 osm_node_t *p_node; in ucast_mgr_set_fwd_top() local
920 p_node = p_sw->p_node; in ucast_mgr_set_fwd_top()
[all …]
H A Dosm_switch.c119 CL_ASSERT(p_node); in osm_switch_new()
123 num_ports = osm_node_get_num_physp(p_node); in osm_switch_new()
136 p_sw->p_node = p_node; in osm_switch_new()
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()
301 !p_physp->p_remote_physp->p_node->sw) in osm_switch_recommend_path()
670 if (p_port->p_node->sw) { in osm_switch_get_port_least_hops()
671 if (p_port->p_node->sw == p_sw) in osm_switch_get_port_least_hops()
702 if (p_port->p_node->sw) { in osm_switch_recommend_mcast_path()
703 if (p_port->p_node->sw == p_sw) in osm_switch_recommend_mcast_path()
[all …]
H A Dosm_sa_multipath_record.c74 osm_node_t const *p_node; in sa_multipath_rec_is_tavor_port() local
77 p_node = p_port->p_node; in sa_multipath_rec_is_tavor_port()
147 const osm_node_t *p_node; in mpr_rcv_get_path_parms() local
211 if (p_node->sw) { in mpr_rcv_get_path_parms()
256 if (p_node->sw) { in mpr_rcv_get_path_parms()
290 p_node->print_desc, in mpr_rcv_get_path_parms()
324 if (!p_node->sw) { in mpr_rcv_get_path_parms()
341 p_node->print_desc, in mpr_rcv_get_path_parms()
370 p_node->print_desc, in mpr_rcv_get_path_parms()
626 p_src_physp->p_node->print_desc, in mpr_rcv_get_path_parms()
[all …]
H A Dosm_mcast_mgr.c155 if (port->p_node->sw) { in create_mgrp_switch_map()
156 sw = port->p_node->sw; in create_mgrp_switch_map()
334 osm_node_t *p_node; in mcast_mgr_set_mft_block() local
350 p_node = p_sw->p_node; in mcast_mgr_set_mft_block()
352 CL_ASSERT(p_node); in mcast_mgr_set_mft_block()
439 p_sw->p_node->print_desc, in mcast_mgr_subdivide()
618 osm_node_t *p_node; in mcast_mgr_branch() local
652 p_node = p_sw->p_node; in mcast_mgr_branch()
1043 osm_node_t *p_node; in mcast_mgr_set_mfttop() local
1056 p_node = p_sw->p_node; in mcast_mgr_set_mfttop()
[all …]
H A Dosm_port.c99 CL_ASSERT(p_node); in osm_physp_init()
106 p_physp->p_node = (struct osm_node *)p_node; in osm_physp_init()
113 num_slvl = osm_node_get_num_physp(p_node) + 1; in osm_physp_init()
151 p_port->p_node = (struct osm_node *)p_parent_node; in osm_port_new()
325 osm_node_t *p_node; in physp_get_dr_physp_set() local
341 p_node = p_port->p_node; in physp_get_dr_physp_set()
368 cl_ntoh64(p_node->node_info.node_guid), in physp_get_dr_physp_set()
379 p_node = osm_physp_get_node_ptr(p_physp); in physp_get_dr_physp_set()
512 if (osm_node_get_type(p_physp->p_node) == in osm_physp_replace_dr_path_with_alternate_dr_path()
516 p_node, in osm_physp_replace_dr_path_with_alternate_dr_path()
[all …]
H A Dosm_sa_path_record.c84 osm_node_t const *p_node; in sa_path_rec_is_tavor_port() local
87 p_node = p_port->p_node; in sa_path_rec_is_tavor_port()
155 const osm_node_t *p_node; in pr_rcv_get_path_parms() local
223 if (p_node->sw) { in pr_rcv_get_path_parms()
267 if (p_node->sw) { in pr_rcv_get_path_parms()
301 p_node->print_desc, in pr_rcv_get_path_parms()
318 if (!p_node->sw) { in pr_rcv_get_path_parms()
335 p_node->print_desc, in pr_rcv_get_path_parms()
364 p_node->print_desc, in pr_rcv_get_path_parms()
411 p_src_physp->p_node->print_desc, in pr_rcv_get_path_parms()
[all …]
H A Dosm_vl_arb_rcv.c73 osm_node_t *p_node; in osm_vla_rcv_process() local
113 p_node = p_port->p_node; in osm_vla_rcv_process()
114 CL_ASSERT(p_node); in osm_vla_rcv_process()
118 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_vla_rcv_process()
120 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_vla_rcv_process()
H A Dosm_pkey_rcv.c64 osm_node_t *p_node; in osm_pkey_rcv_process() local
105 p_node = p_port->p_node; in osm_pkey_rcv_process()
106 CL_ASSERT(p_node); in osm_pkey_rcv_process()
110 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_pkey_rcv_process()
114 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_pkey_rcv_process()
H A Dosm_sa_portinfo_record.c110 if (osm_node_get_type(p_physp->p_node) == in pir_rcv_new_pir()
112 p_physp0 = osm_node_get_physp_ptr(p_physp->p_node, 0); in pir_rcv_new_pir()
151 if (p_physp->p_node->sw) { in sa_pir_create()
155 osm_switch_sp0_is_lmc_capable(p_physp->p_node->sw, in sa_pir_create()
421 p_physp0 = osm_node_get_physp_ptr(p_physp->p_node, 0); in sa_pir_check_physp()
465 num_ports = osm_node_get_num_physp(p_node); in sa_pir_by_comp_mask()
470 osm_node_get_physp_ptr(p_node, in sa_pir_by_comp_mask()
481 p_physp = osm_node_get_physp_ptr(p_node, port_num); in sa_pir_by_comp_mask()
500 osm_node_t *p_node = (osm_node_t *) p_map_item; in sa_pir_by_comp_mask_cb() local
503 sa_pir_by_comp_mask(p_ctxt->sa, p_node, p_ctxt); in sa_pir_by_comp_mask_cb()
[all …]
/freebsd-14.2/contrib/ofed/opensm/include/opensm/
H A Dosm_node.h162 void osm_node_delete(IN OUT osm_node_t ** p_node);
221 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_physp_ptr()
222 return osm_physp_is_valid(&p_node->physp_table[port_num]) ? in osm_node_get_physp_ptr()
223 &p_node->physp_table[port_num] : NULL; in osm_node_get_physp_ptr()
256 return p_node->node_info.node_type; in osm_node_get_type()
287 return (uint8_t) p_node->physp_tbl_size; in osm_node_get_num_physp()
315 osm_node_t *osm_node_get_remote_node(IN osm_node_t * p_node,
354 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_base_lid()
420 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_lmc()
421 return osm_physp_get_lmc(&p_node->physp_table[port_num]); in osm_node_get_lmc()
[all …]

123