Home
last modified time | relevance | path

Searched refs:osm_switch_t (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_switch.h116 } osm_switch_t; typedef
213 void osm_switch_delete(IN OUT osm_switch_t ** pp_sw);
237 osm_switch_t *osm_switch_new(IN osm_node_t * p_node,
266 static inline uint8_t osm_switch_get_hop_count(IN const osm_switch_t * p_sw, in osm_switch_get_hop_count()
301 cl_status_t osm_switch_set_hops(IN osm_switch_t * p_sw, IN uint16_t lid_ho,
334 void osm_switch_clear_hops(IN osm_switch_t * p_sw);
355 static inline uint8_t osm_switch_get_least_hops(IN const osm_switch_t * p_sw, in osm_switch_get_least_hops()
389 uint8_t osm_switch_get_port_least_hops(IN const osm_switch_t * p_sw,
434 static inline uint8_t osm_switch_get_port_by_lid(IN const osm_switch_t * p_sw, in osm_switch_get_port_by_lid()
472 static inline osm_physp_t *osm_switch_get_route_by_lid(IN const osm_switch_t * in osm_switch_get_route_by_lid()
[all …]
H A Dosm_mtree.h101 const osm_switch_t *p_sw;
140 osm_mtree_node_t *osm_mtree_node_new(IN const osm_switch_t * p_sw);
250 static inline const osm_switch_t *osm_mtree_node_get_switch_ptr(IN const in osm_mtree_node_get_switch_ptr()
H A Dosm_mcast_mgr.h69 osm_switch_t * osm_mcast_mgr_find_root_switch(osm_sm_t * sm, cl_qlist_t * list);
H A Dosm_ucast_lash.h74 osm_switch_t *p_sw;
H A Dosm_event_plugin.h104 osm_switch_t *p_sw;
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_mcast_mgr.c146 osm_switch_t *sw; in create_mgrp_switch_map()
171 osm_switch_t *sw; in destroy_mgrp_switch_map()
188 const osm_switch_t * this_sw) in mcast_mgr_compute_avg_hops()
196 osm_switch_t *sw; in mcast_mgr_compute_avg_hops()
222 const osm_switch_t * this_sw) in mcast_mgr_compute_max_hops()
227 osm_switch_t *sw; in mcast_mgr_compute_max_hops()
260 static osm_switch_t *mcast_mgr_find_optimal_switch(osm_sm_t * sm, in mcast_mgr_find_optimal_switch()
265 osm_switch_t *p_sw, *p_best_sw = NULL; in mcast_mgr_find_optimal_switch()
274 for (p_sw = (osm_switch_t *) cl_qmap_head(p_sw_tbl); in mcast_mgr_find_optimal_switch()
275 p_sw != (osm_switch_t *) cl_qmap_end(p_sw_tbl); in mcast_mgr_find_optimal_switch()
[all …]
H A Dosm_ucast_dnup.c76 osm_switch_t *sw;
106 IN osm_switch_t * p_sw, IN uint8_t prune_weight, in dnup_bfs_by_node()
143 osm_switch_t *p_remote_sw; in dnup_bfs_by_node()
222 osm_switch_t *p_sw; in dnup_subn_rank()
238 p_sw = (osm_switch_t *)item; in dnup_subn_rank()
299 osm_switch_t *p_sw; in dnup_set_min_hop_table()
314 p_sw = (osm_switch_t *)item; in dnup_set_min_hop_table()
329 p_sw = (osm_switch_t *)item; in dnup_set_min_hop_table()
340 p_sw = (osm_switch_t *)item; in dnup_set_min_hop_table()
348 p_sw = (osm_switch_t *)item; in dnup_set_min_hop_table()
[all …]
H A Dosm_ucast_updn.c75 osm_switch_t *sw;
112 IN osm_switch_t * p_sw) in updn_bfs_by_node()
148 osm_switch_t *p_remote_sw; in updn_bfs_by_node()
211 osm_switch_t *p_sw; in updn_subn_rank()
227 p_sw = (osm_switch_t *)item; in updn_subn_rank()
285 static void updn_clear_non_root_hops(updn_t * updn, osm_switch_t * sw) in updn_clear_non_root_hops()
304 osm_switch_t *p_sw; in updn_set_min_hop_table()
317 p_sw = (osm_switch_t *)item; in updn_set_min_hop_table()
335 p_sw = (osm_switch_t *)item; in updn_set_min_hop_table()
387 static struct updn_node *create_updn_node(osm_switch_t * sw) in create_updn_node()
[all …]
H A Dosm_ucast_mgr.c108 osm_switch_t * p_sw = (osm_switch_t *) p_map_item; in ucast_mgr_process_hop_0_1()
131 IN osm_switch_t * p_this_sw, in ucast_mgr_process_neighbor()
132 IN osm_switch_t * p_remote_sw, in ucast_mgr_process_neighbor()
136 osm_switch_t *p_sw; in ucast_mgr_process_neighbor()
156 p_sw = (osm_switch_t *) item; in ucast_mgr_process_neighbor()
178 static struct osm_remote_node *find_and_add_remote_sys(osm_switch_t * sw, in find_and_add_remote_sys()
202 IN osm_switch_t * p_sw, in ucast_mgr_process_port()
361 osm_switch_t * p_sw = (osm_switch_t *) p_map_item; in ucast_mgr_process_tbl()
400 osm_switch_t * p_sw = (osm_switch_t *) p_map_item; in ucast_mgr_process_neighbors()
489 osm_switch_t *sw = (osm_switch_t *) p_map_item; in set_default_hop_wf()
[all …]
H A Dosm_switch.c64 cl_status_t osm_switch_set_hops(IN osm_switch_t * p_sw, IN uint16_t lid_ho, in osm_switch_set_hops()
85 void osm_switch_delete(IN OUT osm_switch_t ** pp_sw) in osm_switch_delete()
87 osm_switch_t *p_sw = *pp_sw; in osm_switch_delete()
109 osm_switch_t *osm_switch_new(IN osm_node_t * p_node, in osm_switch_new()
112 osm_switch_t *p_sw; in osm_switch_new()
160 boolean_t osm_switch_get_lft_block(IN const osm_switch_t * p_sw, in osm_switch_get_lft_block()
177 switch_find_guid_common(IN const osm_switch_t * p_sw, in switch_find_guid_common()
219 switch_find_sys_guid_count(IN const osm_switch_t * p_sw, in switch_find_sys_guid_count()
227 switch_find_node_guid_count(IN const osm_switch_t * p_sw, in switch_find_node_guid_count()
234 uint8_t osm_switch_recommend_path(IN const osm_switch_t * p_sw, in osm_switch_recommend_path()
[all …]
H A Dosm_ucast_lash.c119 static osm_switch_t *get_osm_switch_from_port(const osm_port_t * port) in get_osm_switch_from_port()
607 static switch_t *switch_create(lash_t * p_lash, unsigned id, osm_switch_t * p_sw) in switch_create()
966 static unsigned get_lash_id(osm_switch_t * p_sw) in get_lash_id()
990 osm_switch_t *p_sw, *p_next_sw, *p_dst_sw; in populate_fwd_tbls()
996 p_next_sw = (osm_switch_t *) cl_qmap_head(&p_subn->sw_guid_tbl); in populate_fwd_tbls()
999 while (p_next_sw != (osm_switch_t *) cl_qmap_end(&p_subn->sw_guid_tbl)) { in populate_fwd_tbls()
1003 p_next_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item); in populate_fwd_tbls()
1057 static void osm_lash_process_switch(lash_t * p_lash, osm_switch_t * p_sw) in osm_lash_process_switch()
1106 osm_switch_t *p_next_sw, *p_sw; in lash_cleanup()
1109 p_next_sw = (osm_switch_t *) cl_qmap_head(&p_subn->sw_guid_tbl); in lash_cleanup()
[all …]
H A Dosm_dump.c72 osm_switch_t *p_sw = (osm_switch_t *) item; in dump_ucast_path_distribution()
129 osm_switch_t *p_sw = (osm_switch_t *) item; in dump_ucast_routes()
241 osm_switch_t *p_sw = (osm_switch_t *) item; in dump_mcast_routes()
305 osm_switch_t *p_sw = (osm_switch_t *) item; in dump_lid_matrix()
333 osm_switch_t *p_sw = (osm_switch_t *) item; in dump_ucast_lfts()
H A Dosm_sw_info_rcv.c65 static void si_rcv_get_fwd_tbl(IN osm_sm_t * sm, IN osm_switch_t * p_sw)
111 static void si_rcv_get_mcast_fwd_tbl(IN osm_sm_t * sm, IN osm_switch_t * p_sw)
199 osm_switch_t *p_sw; in si_rcv_process_new()
200 osm_switch_t *p_check; in si_rcv_process_new()
243 p_check = (osm_switch_t *) cl_qmap_insert(p_sw_guid_tbl, in si_rcv_process_new()
288 osm_switch_t *p_sw = p_node->sw; in si_rcv_process_existing()
H A Dosm_sa_sw_info_record.c71 IN const osm_switch_t * p_sw, in sir_rcv_new_sir()
103 static void sir_rcv_create_sir(IN osm_sa_t * sa, IN const osm_switch_t * p_sw, in sir_rcv_create_sir()
169 const osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in sir_rcv_by_comp_mask()
H A Dosm_sa_lft_record.c71 IN const osm_switch_t * p_sw, in lftr_rcv_new_lftr()
112 const osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in lftr_rcv_by_comp_mask()
H A Dosm_sa_mft_record.c71 IN osm_switch_t * p_sw, in mftr_rcv_new_mftr()
117 osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in mftr_rcv_by_comp_mask()
H A Dosm_ucast_cache.c311 cache_switch_t * p_cache_sw, osm_switch_t * p_sw) in cache_restore_ucast_info()
408 osm_switch_t *p_sw; in ucast_cache_validate()
409 osm_switch_t *p_remote_sw; in ucast_cache_validate()
433 for (p_sw = (osm_switch_t *) cl_qmap_head(p_sw_tbl); in ucast_cache_validate()
434 p_sw != (osm_switch_t *) cl_qmap_end(p_sw_tbl); in ucast_cache_validate()
435 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) { in ucast_cache_validate()
1027 osm_switch_t *p_sw; in osm_ucast_cache_process()
1042 p_sw = (osm_switch_t *) item; in osm_ucast_cache_process()
H A Dosm_ucast_file.c81 osm_switch_t * p_sw, uint16_t lid, uint8_t port_num, in add_path()
109 static void add_lid_hops(osm_opensm_t * p_osm, osm_switch_t * p_sw, in add_lid_hops()
129 osm_switch_t *p_sw; in do_ucast_file_load()
271 osm_switch_t *p_sw; in do_lid_matrix_file_load()
H A Dosm_ucast_dfsssp.c97 osm_switch_t *sw; /* selfpointer */
1031 static void add_sw_endports_to_order_list(osm_switch_t * sw, in add_sw_endports_to_order_list()
1213 osm_switch_t *sw = NULL; in dfsssp_build_graph()
1266 sw = (osm_switch_t *) item; in dfsssp_build_graph()
1579 osm_switch_t *p_sw = NULL; in update_lft()
1674 osm_switch_t *sw = NULL; in update_mgrp_membership()
1710 cl_qmap_t * port_map, osm_switch_t * root_sw) in update_mcft()
1716 osm_switch_t *p_sw = NULL; in update_mcft()
1839 osm_switch_t *sw = NULL; in get_avail_vl_in_subn()
1844 sw = (osm_switch_t *) item; in get_avail_vl_in_subn()
[all …]
H A Dosm_console.c1040 osm_switch_t * p_sw, FILE * out, int verbose) in switchbalance_check()
1139 osm_switch_t *p_sw; in switchbalance_parse()
1172 for (p_sw = (osm_switch_t *) cl_qmap_head(p_sw_guid_tbl); in switchbalance_parse()
1173 p_sw != (osm_switch_t *) cl_qmap_end(p_sw_guid_tbl); in switchbalance_parse()
1174 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) in switchbalance_parse()
1183 osm_switch_t * p_sw, FILE * out) in lidbalance_check()
1347 osm_switch_t *p_sw; in lidbalance_parse()
1371 for (p_sw = (osm_switch_t *) cl_qmap_head(p_sw_guid_tbl); in lidbalance_parse()
1372 p_sw != (osm_switch_t *) cl_qmap_end(p_sw_guid_tbl); in lidbalance_parse()
1373 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) in lidbalance_parse()
H A Dosm_state_mgr.c118 osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in state_mgr_reset_switch_count()
130 osm_switch_t *const p_sw = (osm_switch_t *) p_object; in state_mgr_get_sw_info()
646 osm_switch_t *p_sw = (osm_switch_t *) obj; in state_mgr_reset_state_change_bit()
1231 osm_switch_t *sw = (osm_switch_t *) item; in check_switch_lft()
H A Dosm_mtree.c52 osm_mtree_node_t *osm_mtree_node_new(IN const osm_switch_t * p_sw) in osm_mtree_node_new()
H A Dosm_lin_fwd_rcv.c64 osm_switch_t *p_sw; in osm_lft_rcv_process()
H A Dosm_mcast_fwd_rcv.c68 osm_switch_t *p_sw; in osm_mft_rcv_process()
H A Dosm_drop_mgr.c308 osm_switch_t *p_sw; in drop_mgr_remove_switch()
317 p_sw = (osm_switch_t *) cl_qmap_remove(p_sw_guid_tbl, node_guid); in drop_mgr_remove_switch()
318 if (p_sw == (osm_switch_t *) cl_qmap_end(p_sw_guid_tbl)) { in drop_mgr_remove_switch()

12