Home
last modified time | relevance | path

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

/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
/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()
/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,
/drivers/staging/gdm724x/
Dgdm_lte.c600 u8 hops; /* used by relay agents only */ in gdm_lte_netif_rx() member