Home
last modified time | relevance | path

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

12

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_switch.c71 if (!p_sw->hops[lid_ho]) { in osm_switch_set_hops()
72 p_sw->hops[lid_ho] = malloc(p_sw->num_ports); in osm_switch_set_hops()
73 if (!p_sw->hops[lid_ho]) in osm_switch_set_hops()
75 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports); in osm_switch_set_hops()
78 p_sw->hops[lid_ho][port_num] = num_hops; in osm_switch_set_hops()
79 if (p_sw->hops[lid_ho][0] > num_hops) in osm_switch_set_hops()
80 p_sw->hops[lid_ho][0] = num_hops; in osm_switch_set_hops()
99 if (p_sw->hops) { in osm_switch_delete()
101 if (p_sw->hops[i]) in osm_switch_delete()
102 free(p_sw->hops[i]); in osm_switch_delete()
[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()
820 pkt_life, cl_ntoh16(required_pkey), required_sl, 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()
1210 src_lid_ho, dest_lid_ho, p_pr_item->resp.mpr_rec.hops); in mpr_rcv_get_apm_port_pair_paths()
1411 matrix[0][0] ? matrix[0][0]->resp.mpr_rec.hops : 0, in mpr_rcv_get_apm_paths()
1414 matrix[0][1] ? matrix[0][1]->resp.mpr_rec.hops : 0, 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()
319 p_cache_sw->num_hops && p_cache_sw->hops); in cache_restore_ucast_info()
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()
[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
281 hops = mcast_mgr_compute_avg_hops(sm, &mgrp_sw_map, p_sw); 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()
595 memset(p_sw->hops, OSM_NO_PATH, p_osm_sw->max_lid_ho + 1); in sw_create()
618 free(p_sw->hops); in sw_destroy()
758 IN uint8_t port_num, IN uint8_t hops, in sw_set_hops() argument
762 p_sw->hops[lid] = hops; in sw_set_hops()
764 return osm_switch_set_hops(p_sw->p_osm_sw, lid, port_num, hops); in sw_set_hops()
771 IN uint16_t target_lid, IN uint8_t hops, in set_hops_on_remote_sw() argument
780 p_remote_sw->hops[target_lid] = hops; in set_hops_on_remote_sw()
[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/usr.sbin/bhyve/
H A Dhda_codec.c466 const struct hda_ops *hops = NULL; in hda_codec_reset() local
473 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()
501 const struct hda_ops *hops = NULL; in hda_codec_command() local
526 hops = hci->hops; in hda_codec_command()
527 assert(hops); in hda_codec_command()
537 if (!hops->response) { in hda_codec_command()
575 return (hops->response(hci, res, HDA_CODEC_RESPONSE_EX_SOL)); in hda_codec_command()
[all …]
H A Dpci_hda.h68 const struct hda_ops *hops; member
H A Dpci_hda.c261 static const struct hda_ops hops = { variable
439 hci->hops = &hops; in hda_codec_constructor()
/freebsd/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/libexec/bootpd/bootpgw/
H A Dbootpgw.c514 u_char hops; in handle_request() local
528 hops = bp->bp_hops; in handle_request()
529 if (++hops > maxhops) { in handle_request()
534 bp->bp_hops = hops; in handle_request()
/freebsd/contrib/wpa/src/common/
H A Ddhcp.h46 u8 hops; member
65 u8 hops; member
/freebsd/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/usr.sbin/traceroute6/
H A Dtraceroute6.c355 u_long probe, hops, lport, ltclass; in main() local
948 for (hops = first_hop; hops <= max_hops; ++hops) { in main()
953 printf("%2lu ", hops); in main()
960 send_probe(++seq, hops); in main()
1102 send_probe(int seq, u_long hops) in send_probe() argument
1113 i = hops; in send_probe()
/freebsd/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/sbin/dhclient/
H A Ddhcp.h63 u_int8_t hops; /* Number of relay agent hops from client */ member
/freebsd/tools/tools/net80211/wesside/
H A DREADME9 * Channel hops, finds a WEP wifi, finds a MAC to spoof if necessary and
/freebsd/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/share/examples/ipfilter/rules/
H A Dfirewall31 closest to your internal network in terms of network hops.
/freebsd/sbin/ping/
H A Dping6.c942 int hops; in ping6() local
955 for (hops = 0; hops < argc - 1; hops++) { in ping6()
959 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints, in ping6()

12