Home
last modified time | relevance | path

Searched refs:hops (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-14.2/contrib/ofed/opensm/opensm/
H A Dosm_switch.c256 uint8_t hops; in osm_switch_recommend_path() local
340 hops = in osm_switch_recommend_path()
645 hops = malloc((max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
646 if (!hops) in osm_switch_prepare_path_rebuild()
648 memset(hops, 0, (max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
649 p_sw->hops = hops; in osm_switch_prepare_path_rebuild()
652 hops = realloc(p_sw->hops, (max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
653 if (!hops) in osm_switch_prepare_path_rebuild()
657 p_sw->hops = hops; in osm_switch_prepare_path_rebuild()
685 return hops != OSM_NO_PATH ? hops + 1 : OSM_NO_PATH; in osm_switch_get_port_least_hops()
[all …]
H A Dosm_sa_multipath_record.c164 int hops = 0; in mpr_rcv_get_path_parms() local
298 hops++; in mpr_rcv_get_path_parms()
299 if (hops > MAX_HOPS) { in mpr_rcv_get_path_parms()
308 p_dest_physp->p_node->print_desc, hops, in mpr_rcv_get_path_parms()
815 p_parms->hops = hops; in mpr_rcv_get_path_parms()
942 p_pr_item->resp.mpr_rec.hops = path_parms.hops; in mpr_rcv_get_lid_pair_path()
1426 sumA += matrix[0][0]->resp.mpr_rec.hops; in mpr_rcv_get_apm_paths()
1427 minA = matrix[0][0]->resp.mpr_rec.hops; in mpr_rcv_get_apm_paths()
1430 sumA += matrix[1][1]->resp.mpr_rec.hops; in mpr_rcv_get_apm_paths()
1434 minA = matrix[1][1]->resp.mpr_rec.hops; in mpr_rcv_get_apm_paths()
[all …]
H A Dosm_ucast_cache.c75 uint8_t **hops; member
124 if (p_sw->hops) { in cache_sw_destroy()
126 if (p_sw->hops[i]) in cache_sw_destroy()
127 free(p_sw->hops[i]); in cache_sw_destroy()
128 free(p_sw->hops); in cache_sw_destroy()
330 if (p_sw->hops) in cache_restore_ucast_info()
331 free(p_sw->hops); in cache_restore_ucast_info()
332 p_sw->hops = p_cache_sw->hops; in cache_restore_ucast_info()
333 p_cache_sw->hops = NULL; in cache_restore_ucast_info()
984 p_cache_sw->hops = p_node->sw->hops; in osm_ucast_cache_add_node()
[all …]
H A Dosm_ucast_file.c111 uint8_t hops[], unsigned len) in add_lid_hops() argument
119 osm_switch_set_hops(p_sw, lid, i, hops[i]); in add_lid_hops()
266 uint8_t hops[256]; in do_lid_matrix_file_load() local
336 memset(hops, 0xff, sizeof(hops)); in do_lid_matrix_file_load()
363 hops[len++] = (uint8_t) num; in do_lid_matrix_file_load()
390 add_lid_hops(p_osm, p_sw, lid, guid, hops, len); in do_lid_matrix_file_load()
H A Dosm_mcast_mgr.c191 uint32_t hops = 0; in mcast_mgr_compute_avg_hops() local
207 hops += (least_hops + 1) * sw->num_of_mcm + in mcast_mgr_compute_avg_hops()
215 avg_hops = (float)(hops / num_ports); in mcast_mgr_compute_avg_hops()
224 uint32_t max_hops = 0, hops; in mcast_mgr_compute_max_hops() local
238 hops = osm_switch_get_least_hops(this_sw, lid); in mcast_mgr_compute_max_hops()
240 hops += 1; in mcast_mgr_compute_max_hops()
241 if (hops > max_hops) in mcast_mgr_compute_max_hops()
242 max_hops = hops; in mcast_mgr_compute_max_hops()
266 float hops = 0; in mcast_mgr_find_optimal_switch() local
290 if (hops < best_hops) { in mcast_mgr_find_optimal_switch()
[all …]
H A Dosm_ucast_ftree.c181 uint8_t *hops; member
591 p_sw->hops = malloc((p_osm_sw->max_lid_ho + 1) * sizeof(*(p_sw->hops))); in sw_create()
592 if (p_sw->hops == NULL) in sw_create()
618 free(p_sw->hops); in sw_destroy()
762 p_sw->hops[lid] = hops; in sw_set_hops()
780 p_remote_sw->hops[target_lid] = hops; in set_hops_on_remote_sw()
802 CL_ASSERT(p_sw->hops != NULL); in sw_get_least_hops()
803 return p_sw->hops[target_lid]; in sw_get_least_hops()
2901 p_ftree_sw->hops[0] = OSM_NO_PATH; in fabric_route_to_cns()
3124 p_sw->hops[p_leaf_sw->lid] + in fabric_route_roots()
[all …]
H A Dosm_ucast_mgr.c139 uint16_t hops; in ucast_mgr_process_neighbor() local
158 hops = osm_switch_get_least_hops(p_remote_sw, lid_ho); in ucast_mgr_process_neighbor()
159 if (hops == OSM_NO_PATH) in ucast_mgr_process_neighbor()
161 hops += p->hop_wf; in ucast_mgr_process_neighbor()
162 if (hops < in ucast_mgr_process_neighbor()
165 (p_this_sw, lid_ho, port_num, (uint8_t) hops) != 0) in ucast_mgr_process_neighbor()
H A Dosm_ucast_dfsssp.c89 uint8_t hops; member
159 vertex->hops = 0; in set_default_vertex()
1441 adj_list[i].hops = 0; in dijkstra()
1527 adj_list[index].hops = 0; /* the source has hop count = 0 */ in dijkstra()
1544 current->hops = in dijkstra()
1545 adj_list[current->used_link->from].hops + 1; in dijkstra()
1578 uint8_t hops = 0; in update_lft() local
1592 hops = adj_list[i].hops; in update_lft()
1652 ret = osm_switch_set_hops(p_sw, lid, port, hops); in update_lft()
H A Dosm_ucast_updn.c291 if (sw->hops[i]) { in updn_clear_non_root_hops()
296 memset(sw->hops[i], 0xff, sw->num_ports); in updn_clear_non_root_hops()
H A Dosm_sa_path_record.c178 int hops = 0; in pr_rcv_get_path_parms() local
404 hops++; in pr_rcv_get_path_parms()
405 if (hops > MAX_HOPS) { in pr_rcv_get_path_parms()
418 hops, in pr_rcv_get_path_parms()
/freebsd-14.2/usr.sbin/bhyve/
H A Dhda_codec.c473 hops = hci->hops; in hda_codec_reset()
474 assert(hops); in hda_codec_reset()
489 if (!hops->signal) { in hda_codec_reset()
495 return (hops->signal(hci)); in hda_codec_reset()
526 hops = hci->hops; in hda_codec_command()
527 assert(hops); in hda_codec_command()
537 if (!hops->response) { in hda_codec_command()
691 hops = hci->hops; in hda_codec_audio_output_do_transfer()
692 assert(hops); in hda_codec_audio_output_do_transfer()
752 hops = hci->hops; in hda_codec_audio_input_do_transfer()
[all …]
H A Dpci_hda.h68 const struct hda_ops *hops; member
H A Dpci_hda.c262 static const struct hda_ops hops = { variable
440 hci->hops = &hops; in hda_codec_constructor()
/freebsd-14.2/contrib/ofed/opensm/include/opensm/
H A Dosm_switch.h101 uint8_t **hops; member
270 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? in osm_switch_get_hop_count()
271 OSM_NO_PATH : p_sw->hops[lid_ho][port_num]; in osm_switch_get_hop_count()
358 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? in osm_switch_get_least_hops()
359 OSM_NO_PATH : p_sw->hops[lid_ho][0]; in osm_switch_get_least_hops()
H A Dosm_sa.h118 int hops; member
581 int hops; member
/freebsd-14.2/libexec/bootpd/bootpgw/
H A Dbootpgw.c515 u_char hops; in handle_request() local
529 hops = bp->bp_hops; in handle_request()
530 if (++hops > maxhops) { in handle_request()
535 bp->bp_hops = hops; in handle_request()
/freebsd-14.2/contrib/wpa/src/common/
H A Ddhcp.h46 u8 hops; member
65 u8 hops; member
/freebsd-14.2/contrib/ntp/clockstuff/
H A Dpropdelay.c284 int hops; in doit() local
287 hops = finddelay(lat1, long1, lat2, long2, h, &delay); in doit()
289 str, h, hops, delay); in doit()
/freebsd-14.2/usr.sbin/traceroute6/
H A Dtraceroute6.c368 u_long probe, hops, lport, ltclass; in main() local
962 for (hops = first_hop; hops <= max_hops; ++hops) { in main()
967 printf("%2lu ", hops); in main()
974 send_probe(++seq, hops); in main()
1116 send_probe(int seq, u_long hops) in send_probe() argument
1127 i = hops; in send_probe()
/freebsd-14.2/sys/contrib/device-tree/include/dt-bindings/usb/
H A Dpd.h404 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \ argument
407 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
/freebsd-14.2/sbin/dhclient/
H A Ddhcp.h63 u_int8_t hops; /* Number of relay agent hops from client */ member
/freebsd-14.2/tools/tools/net80211/wesside/
H A DREADME9 * Channel hops, finds a WEP wifi, finds a MAC to spoof if necessary and
/freebsd-14.2/share/examples/ipfilter/rules/
H A Dfirewall31 closest to your internal network in terms of network hops.
/freebsd-14.2/contrib/tcpdump/
H A Dprint-decnet.c473 u_int hops; in decnet_print() local
538 hops = GET_U_1(rhp->rh_long.lg_visits); in decnet_print()
545 hops = (GET_U_1(rhp->rh_short.sh_visits) & VIS_MASK)+1; in decnet_print()
564 ND_PRINT("%u hops ", hops); in decnet_print()
/freebsd-14.2/sbin/ping/
H A Dping6.c955 int hops; in ping6() local
968 for (hops = 0; hops < argc - 1; hops++) { in ping6()
972 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in ping6()

12