Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/thunderbolt/
Dpath.c40 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
41 if (!path->hops) { in tb_path_alloc()
59 kfree(path->hops); in tb_path_free()
67 res = tb_port_add_nfc_credits(path->hops[i].in_port, in __tb_path_deallocate_nfc()
70 tb_port_warn(path->hops[i].in_port, in __tb_path_deallocate_nfc()
81 res = tb_port_write(path->hops[i].in_port, &hop, TB_CFG_HOPS, in __tb_path_deactivate_hops()
82 2 * path->hops[i].in_hop_index, 2); in __tb_path_deactivate_hops()
84 tb_port_warn(path->hops[i].in_port, in __tb_path_deactivate_hops()
86 i, path->hops[i].in_hop_index); in __tb_path_deactivate_hops()
98 tb_route(path->hops[0].in_port->sw), in tb_path_deactivate()
[all …]
Dtunnel_pci.c77 tunnel->path_to_up->hops[0].in_port = down; in tb_pci_alloc()
78 tunnel->path_to_up->hops[0].in_hop_index = 8; in tb_pci_alloc()
79 tunnel->path_to_up->hops[0].in_counter_index = -1; in tb_pci_alloc()
80 tunnel->path_to_up->hops[0].out_port = tb_upstream_port(up->sw)->remote; in tb_pci_alloc()
81 tunnel->path_to_up->hops[0].next_hop_index = 8; in tb_pci_alloc()
83 tunnel->path_to_up->hops[1].in_port = tb_upstream_port(up->sw); in tb_pci_alloc()
84 tunnel->path_to_up->hops[1].in_hop_index = 8; in tb_pci_alloc()
85 tunnel->path_to_up->hops[1].in_counter_index = -1; in tb_pci_alloc()
86 tunnel->path_to_up->hops[1].out_port = up; in tb_pci_alloc()
87 tunnel->path_to_up->hops[1].next_hop_index = 8; in tb_pci_alloc()
[all …]
Dtb.h91 struct tb_path_hop *hops; member
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dconfig.c585 lnet_parse_hops(char *str, unsigned int *hops) in lnet_parse_hops() argument
590 return (sscanf(str, "%u%n", hops, &nob) >= 1 && in lnet_parse_hops()
592 *hops > 0 && *hops < 256); in lnet_parse_hops()
645 unsigned int hops; in lnet_parse_route() local
679 lnet_parse_hops(token, &hops)) { in lnet_parse_route()
730 hops = 1; in lnet_parse_route()
751 rc = lnet_add_route(net, hops, nid, priority); in lnet_parse_route()
Drouter.c292 lnet_add_route(__u32 net, unsigned int hops, lnet_nid_t gateway, in lnet_add_route() argument
304 libcfs_net2str(net), hops, priority, libcfs_nid2str(gateway)); in lnet_add_route()
311 hops < 1 || hops > 255) in lnet_add_route()
322 libcfs_net2str(net), hops, libcfs_nid2str(gateway)); in lnet_add_route()
332 route->lr_hops = hops; in lnet_add_route()
348 libcfs_net2str(net), hops, in lnet_add_route()
542 lnet_get_route(int idx, __u32 *net, __u32 *hops, in lnet_get_route() argument
566 *hops = route->lr_hops; in lnet_get_route()
Drouter_proc.c240 unsigned int hops = route->lr_hops; in proc_lnet_routes() local
247 libcfs_net2str(net), hops, in proc_lnet_routes()
Dlib-move.c2357 int hops; in LNetDist() local
2419 hops = shortest->lr_hops; in LNetDist()
2425 return hops + 1; in LNetDist()
/linux-4.4.14/net/ipv6/
Dexthdrs.c660 int hops; in ipv6_push_rthdr() local
667 hops = ihdr->rt_hdr.hdrlen >> 1; in ipv6_push_rthdr()
669 if (hops > 1) in ipv6_push_rthdr()
671 (hops - 1) * sizeof(struct in6_addr)); in ipv6_push_rthdr()
673 phdr->addr[hops - 1] = **addr_p; in ipv6_push_rthdr()
/linux-4.4.14/net/decnet/
Ddn_neigh.c243 lp->visit_ct = cb->hops & 0x3f; in dn_long_output()
286 sp->forward = cb->hops & 0x3f; in dn_short_output()
328 sp->forward = cb->hops & 0x3f; in dn_phase3_output()
Ddn_route.c574 cb->hops = *ptr++; /* Visit Count */ in dn_route_rx_long()
602 cb->hops = *ptr & 0x3f; in dn_route_rx_short()
771 cb->hops = 0; in dn_output()
806 if (++cb->hops > 30) in dn_forward()
/linux-4.4.14/arch/s390/kernel/
Ddis.c1967 int start, end, opsize, hops, i; in show_code() local
1992 for (i = 0, hops = 0; start + i < 32 && hops < 3; hops++) { in show_code()
2005 hops = 0; in show_code()
2006 while (start < end && hops < 8) { in show_code()
2028 hops++; in show_code()
/linux-4.4.14/include/net/
Ddn.h161 __u16 hops; member
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
Dlib-lnet.h439 int lnet_add_route(__u32 net, unsigned int hops, lnet_nid_t gateway_nid,
444 int lnet_get_route(int idx, __u32 *net, __u32 *hops,
/linux-4.4.14/Documentation/rapidio/
Dsysfs.txt78 hopcount - number of hops on the path to the switch
/linux-4.4.14/drivers/staging/gdm724x/
Dgdm_lte.c600 u8 hops; /* used by relay agents only */ in gdm_lte_netif_rx() member
/linux-4.4.14/net/ipv4/
Dipconfig.c625 u8 hops; /* Used only by gateways */ member
/linux-4.4.14/Documentation/
Dworkqueue.txt182 hops through different CPUs.