Searched refs:hops (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/contrib/ofed/opensm/opensm/
H A Dosm_switch.c71 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][0] = num_hops;
99 if (p_sw->hops) {
101 if (p_sw->hops[i])
102 free(p_sw->hops[
256 uint8_t hops; local
625 uint8_t **hops; local
677 uint8_t hops; local
695 uint8_t hops; local
[all...]
H A Dosm_sa_multipath_record.c164 int hops = 0; local
297 /* update number of hops traversed */
298 hops++;
299 if (hops > MAX_HOPS) {
303 " more than %d hops, max %d hops allowed\n",
308 p_dest_physp->p_node->print_desc, hops,
815 p_parms->hops = hops;
819 " pkey = 0x%04X, sl = %u, hops
[all...]
H A Dosm_ucast_file.c111 uint8_t hops[], unsigned len)
119 osm_switch_set_hops(p_sw, lid, i, hops[i]);
266 uint8_t hops[256]; local
336 memset(hops, 0xff, sizeof(hops));
358 "cannot parse hops number: \'%s\'\n",
363 hops[len++] = (uint8_t) num;
390 add_lid_hops(p_osm, p_sw, lid, guid, hops, len);
109 add_lid_hops(osm_opensm_t * p_osm, osm_switch_t * p_sw, uint16_t lid, ib_net64_t guid, uint8_t hops[], unsigned len) argument
H A Dosm_ucast_cache.c75 uint8_t **hops; member in struct:cache_switch
124 if (p_sw->hops) {
126 if (p_sw->hops[i])
127 free(p_sw->hops[i]);
128 free(p_sw->hops);
319 p_cache_sw->num_hops && p_cache_sw->hops);
330 if (p_sw->hops)
331 free(p_sw->hops);
332 p_sw->hops = p_cache_sw->hops;
[all...]
H A Dosm_mcast_mgr.c183 Calculate the maximal "min hops" from the given switch to any
191 uint32_t hops = 0; local
207 hops += (least_hops + 1) * sw->num_of_mcm +
215 avg_hops = (float)(hops / num_ports);
224 uint32_t max_hops = 0, hops; local
233 number of hops to its base LID.
238 hops = osm_switch_get_least_hops(this_sw, lid);
240 hops += 1;
241 if (hops > max_hops)
242 max_hops = hops;
266 float hops = 0; local
[all...]
H A Dosm_ucast_ftree.c181 uint8_t *hops; member in struct:ftree_sw_t_
591 p_sw->hops = malloc((p_osm_sw->max_lid_ho + 1) * sizeof(*(p_sw->hops)));
592 if (p_sw->hops == NULL)
595 memset(p_sw->hops, OSM_NO_PATH, p_osm_sw->max_lid_ho + 1);
618 free(p_sw->hops);
758 IN uint8_t port_num, IN uint8_t hops,
762 p_sw->hops[lid] = hops;
764 return osm_switch_set_hops(p_sw->p_osm_sw, lid, port_num, hops);
757 sw_set_hops(IN ftree_sw_t * p_sw, IN uint16_t lid, IN uint8_t port_num, IN uint8_t hops, IN boolean_t is_target_sw) argument
770 set_hops_on_remote_sw(IN ftree_port_group_t * p_group, IN uint16_t target_lid, IN uint8_t hops, IN boolean_t is_target_sw) argument
[all...]
H A Dosm_ucast_mgr.c139 uint16_t hops; local
158 hops = osm_switch_get_least_hops(p_remote_sw, lid_ho);
159 if (hops == OSM_NO_PATH)
161 hops += p->hop_wf;
162 if (hops <
165 (p_this_sw, lid_ho, port_num, (uint8_t) hops) != 0)
167 "cannot set hops for lid %u at switch 0x%"
253 The lid matrix contains the number of hops to each
H A Dosm_ucast_dfsssp.c89 uint8_t hops; member in struct:vertex
159 vertex->hops = 0;
1441 adj_list[i].hops = 0;
1527 adj_list[index].hops = 0; /* the source has hop count = 0 */
1543 if (current->used_link) /* increment the number of hops to the source for each new node */
1544 current->hops =
1545 adj_list[current->used_link->from].hops + 1;
1578 uint8_t hops = 0; local
1592 hops = adj_list[i].hops;
[all...]
H A Dosm_ucast_updn.c284 /* hack: preserve min hops entries to any other root switches */
291 if (sw->hops[i]) {
296 memset(sw->hops[i], 0xff, sw->num_ports);
H A Dosm_sa_path_record.c178 int hops = 0; local
403 /* update number of hops traversed */
404 hops++;
405 if (hops > MAX_HOPS) {
409 "needs more than %d hops, max %d hops allowed\n",
418 hops,
/freebsd-current/usr.sbin/bhyve/
H A Dhda_codec.c466 const struct hda_ops *hops = NULL; local
473 hops = hci->hops;
474 assert(hops);
489 if (!hops->signal) {
495 return (hops->signal(hci));
501 const struct hda_ops *hops = NULL; local
527 hops = hci->hops;
528 assert(hops);
678 const struct hda_ops *hops = NULL; local
739 const struct hda_ops *hops = NULL; local
[all...]
H A Dpci_hda.h68 const struct hda_ops *hops; member in struct:hda_codec_inst
H A Dpci_hda.c261 static const struct hda_ops hops = { variable in typeref:struct:hda_ops
439 hci->hops = &hops;
/freebsd-current/contrib/ofed/opensm/include/opensm/
H A Dosm_switch.h101 uint8_t **hops; member in struct:osm_switch
135 * Size of hops table for this switch.
137 * hops
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];
330 * Cleanup existing hops tables (lid matrix)
350 * Returns the number of hops in the short path to this lid from
358 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ?
359 OSM_NO_PATH : p_sw->hops[lid_ho][0];
370 * Returns the number of hops i
[all...]
H A Dosm_sa.h118 int hops; member in struct:osm_mpr_rec
581 int hops; member in struct:osm_path_parms
/freebsd-current/contrib/wpa/src/common/
H A Ddhcp.h46 u8 hops; member in struct:dhcp_data
65 u8 hops; member in struct:bootp_pkt
/freebsd-current/sbin/dhclient/
H A Ddhcp.h63 u_int8_t hops; /* Number of relay agent hops from client */ member in struct:dhcp_packet
/freebsd-current/libexec/bootpd/bootpgw/
H A Dbootpgw.c114 u_char maxhops = 4; /* Number of hops allowed for requests. */
518 u_char hops;
532 hops = bp->bp_hops;
533 if (++hops > maxhops) {
538 bp->bp_hops = hops;
514 u_char hops; local
/freebsd-current/contrib/ntp/clockstuff/
H A Dpropdelay.c284 int hops; local
287 hops = finddelay(lat1, long1, lat2, long2, h, &delay);
288 printf("%sheight %g km, hops %d, delay %g seconds\n",
289 str, h, hops, delay);
403 * height and number of hops.
418 printf("waveangle dist %g height %g hops %d angle %g\n",
442 printf("propdelay dist %g height %g hops %d time %g\n",
463 int n; /* number of hops */
/freebsd-current/sys/contrib/device-tree/include/dt-bindings/usb/
H A Dpd.h367 * <7:6> :: USB2 hub hops consumed
404 #define VDO_ACABLE2(mtemp, stemp, u3p, trans, phy, ele, u4, hops, u2, u32, lane, iso, gen) \
407 | ((hops) & 0x3) << 6 | (u2) << 5 | (u32) << 4 | (lane) << 3 \
/freebsd-current/usr.sbin/traceroute6/
H A Dtraceroute6.c70 * internet host. We find out intermediate hops by launching probe
75 * defaults to net.inet.ip.ttl hops & can be changed with the -m flag).
92 * traceroute to nis.nsf.net (35.1.1.48), 64 hops max, 40 byte packets
112 * traceroute to allspice.lcs.mit.edu (18.26.0.115), 64 hops max, 40 byte packets
133 * MIT.) Note that the gateways 12, 14, 15, 16 & 17 hops away
168 * length. I.e., rip is really only 7 hops away. A reply that
320 /* XXX: 2064 = 127(max hops in type 0 rthdr) * sizeof(ip6_hdr) + 16(margin) */
355 u_long probe, hops, lport, ltclass; local
908 fprintf(stderr, ", %lu hops max, %lu byte packets\n",
914 printf("Skipping %lu intermediate hops\
1102 send_probe(int seq, u_long hops) argument
[all...]
/freebsd-current/contrib/tcpdump/
H A Dprint-decnet.c475 u_int hops; local
540 hops = GET_U_1(rhp->rh_long.lg_visits);
547 hops = (GET_U_1(rhp->rh_short.sh_visits) & VIS_MASK)+1;
566 ND_PRINT("%u hops ", hops);
737 ND_PRINT("{ids %u-%u cost %u hops %u} ", id, id + count,
764 ND_PRINT("{areas %u-%u cost %u hops %u} ", area, area + count,
/freebsd-current/contrib/wpa/src/drivers/
H A Ddriver_wired.c63 u_int8_t hops; member in struct:dhcp_message
/freebsd-current/sbin/ping/
H A Dping6.c620 errx(1, "too many intermediate hops");
942 int hops; local
955 for (hops = 0; hops < argc - 1; hops++) {
959 if ((error = cap_getaddrinfo(capdns, argv[hops], NULL, &hints,
/freebsd-current/contrib/wpa/src/ap/
H A Dfils_hlp.c343 "FILS: HLP request DHCP: op=%u htype=%u hlen=%u hops=%u xid=0x%x",
344 dhcp->op, dhcp->htype, dhcp->hlen, dhcp->hops,

Completed in 434 milliseconds

12