Lines Matching refs:path_to_up

68 	tunnel->path_to_up = tb_path_alloc(up->sw->tb, 2);  in tb_pci_alloc()
69 if (!tunnel->path_to_up) in tb_pci_alloc()
74 tb_pci_init_path(tunnel->path_to_up); in tb_pci_alloc()
77 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()
107 if (tunnel->path_to_up) in tb_pci_alloc()
108 tb_path_free(tunnel->path_to_up); in tb_pci_alloc()
121 if (tunnel->path_to_up->activated || tunnel->path_to_down->activated) { in tb_pci_free()
125 tb_path_free(tunnel->path_to_up); in tb_pci_free()
135 WARN_ON(!tunnel->path_to_up->activated); in tb_pci_is_invalid()
138 return tb_path_is_invalid(tunnel->path_to_up) in tb_pci_is_invalid()
164 tunnel->path_to_up->activated = false; in tb_pci_restart()
169 res = tb_path_activate(tunnel->path_to_up); in tb_pci_restart()
198 if (tunnel->path_to_up->activated || tunnel->path_to_down->activated) { in tb_pci_activate()
228 if (tunnel->path_to_up->activated) in tb_pci_deactivate()
229 tb_path_deactivate(tunnel->path_to_up); in tb_pci_deactivate()