Searched refs:lid_ho (Results 1 - 9 of 9) sorted by relevance

/freebsd-13-stable/contrib/ofed/opensm/include/opensm/
H A Dosm_switch.h267 IN uint16_t lid_ho,
270 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ?
271 OSM_NO_PATH : p_sw->hops[lid_ho][port_num];
278 * lid_ho
301 cl_status_t osm_switch_set_hops(IN osm_switch_t * p_sw, IN uint16_t lid_ho,
308 * lid_ho
356 IN uint16_t lid_ho)
358 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho])
266 osm_switch_get_hop_count(IN const osm_switch_t * p_sw, IN uint16_t lid_ho, IN uint8_t port_num) argument
355 osm_switch_get_least_hops(IN const osm_switch_t * p_sw, IN uint16_t lid_ho) argument
434 osm_switch_get_port_by_lid(IN const osm_switch_t * p_sw, IN uint16_t lid_ho, IN osm_lft_type_enum lft_enum) argument
[all...]
/freebsd-13-stable/contrib/ofed/opensm/opensm/
H A Dosm_ucast_cache.c96 static cache_switch_t *cache_sw_new(uint16_t lid_ho, unsigned num_ports) argument
109 p_cache_sw->ports[0].remote_lid_ho = lid_ho;
133 static cache_switch_t *cache_get_sw(osm_ucast_mgr_t * p_mgr, uint16_t lid_ho) argument
136 cl_qmap_get(&p_mgr->cache_sw_tbl, lid_ho);
148 uint16_t lid_ho = cl_ntoh16(osm_node_get_base_lid(p->p_node, 0)); local
152 if (!lid_ho || !remote_lid_ho || !p->port_num)
157 lid_ho, p->port_num, remote_lid_ho, (is_ca) ? "CA/RTR" : "SW");
159 p_cache_sw = cache_get_sw(p_mgr, lid_ho);
161 p_cache_sw = cache_sw_new(lid_ho, p->p_node->sw->num_ports);
168 cl_qmap_insert(&p_mgr->cache_sw_tbl, lid_ho,
249 cache_remove_port(osm_ucast_mgr_t * p_mgr, uint16_t lid_ho, uint8_t port_num, uint16_t remote_lid_ho, boolean_t is_ca) argument
406 uint16_t lid_ho; local
906 uint16_t lid_ho; local
[all...]
H A Dosm_ucast_updn.c418 uint16_t lid_ho; local
426 lid_ho = (uint16_t) cl_ptr_vector_get_size(&p_updn->p_osm->subn.port_lid_tbl) + 1;
427 cas_per_sw = malloc(lid_ho * sizeof(*cas_per_sw));
433 memset(cas_per_sw, 0, lid_ho * sizeof(*cas_per_sw));
446 lid_ho = osm_node_get_base_lid(p_physp->p_node, 0);
447 lid_ho = cl_ntoh16(lid_ho);
448 cas_per_sw[lid_ho]++;
476 for (lid_ho = 1; lid_ho <
[all...]
H A Dosm_switch.c64 cl_status_t osm_switch_set_hops(IN osm_switch_t * p_sw, IN uint16_t lid_ho, argument
67 if (!lid_ho || lid_ho > p_sw->max_lid_ho)
71 if (!p_sw->hops[lid_ho]) {
72 p_sw->hops[lid_ho] = malloc(p_sw->num_ports);
73 if (!p_sw->hops[lid_ho])
75 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports);
78 p_sw->hops[lid_ho][port_num] = num_hops;
79 if (p_sw->hops[lid_ho][0] > num_hops)
80 p_sw->hops[lid_ho][
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
[all...]
H A Dosm_dump.c126 uint16_t lid_ho, base_lid; local
143 for (lid_ho = 1; lid_ho <= max_lid_ho; lid_ho++) {
144 fprintf(file, "0x%04X : ", lid_ho);
146 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid_ho);
152 port_num = osm_switch_get_port_by_lid(p_sw, lid_ho,
181 osm_switch_get_hop_count(p_sw, lid_ho, port_num);
184 base_lid = lid_ho;
226 lid_ho,
[all...]
H A Dosm_ucast_mgr.c138 uint16_t lid_ho; local
157 lid_ho = cl_ntoh16(osm_node_get_base_lid(p_sw->p_node, 0));
158 hops = osm_switch_get_least_hops(p_remote_sw, lid_ho);
163 osm_switch_get_hop_count(p_this_sw, lid_ho, port_num)) {
165 (p_this_sw, lid_ho, port_num, (uint8_t) hops) != 0)
168 PRIx64 "\n", lid_ho,
208 uint16_t lid_ho; local
230 lid_ho = min_lid_ho + lid_offset;
232 if (lid_ho > max_lid_ho)
238 osm_switch_get_port_by_lid(p_sw, lid_ho
[all...]
H A Dosm_drop_mgr.c169 uint16_t lid_ho; local
276 for (lid_ho = min_lid_ho; lid_ho <= max_lid_ho; lid_ho++)
277 cl_ptr_vector_set(p_port_lid_tbl, lid_ho, NULL);
H A Dosm_console.c1065 uint16_t lid_ho; local
1076 for (lid_ho = min_lid_ho; lid_ho <= max_lid_ho; lid_ho++) {
1077 port_num = osm_switch_get_port_by_lid(p_sw, lid_ho,
1206 uint16_t lid_ho; local
1224 for (lid_ho = min_lid_ho; lid_ho <= max_lid_ho; lid_ho++) {
1228 port_num = osm_switch_get_port_by_lid(p_sw, lid_ho,
[all...]
H A Dosm_state_mgr.c1114 uint16_t lid_ho; local
1139 for (lid_ho = min_lid_ho; lid_ho <= max_lid_ho; lid_ho++)
1140 cl_ptr_vector_set(&ref_port_lid_tbl, lid_ho, p_port);

Completed in 80 milliseconds