Lines Matching refs:path_to_down
71 tunnel->path_to_down = tb_path_alloc(up->sw->tb, 2); in tb_pci_alloc()
72 if (!tunnel->path_to_down) in tb_pci_alloc()
75 tb_pci_init_path(tunnel->path_to_down); in tb_pci_alloc()
89 tunnel->path_to_down->hops[0].in_port = up; in tb_pci_alloc()
90 tunnel->path_to_down->hops[0].in_hop_index = 8; in tb_pci_alloc()
91 tunnel->path_to_down->hops[0].in_counter_index = -1; in tb_pci_alloc()
92 tunnel->path_to_down->hops[0].out_port = tb_upstream_port(up->sw); in tb_pci_alloc()
93 tunnel->path_to_down->hops[0].next_hop_index = 8; in tb_pci_alloc()
95 tunnel->path_to_down->hops[1].in_port = in tb_pci_alloc()
97 tunnel->path_to_down->hops[1].in_hop_index = 8; in tb_pci_alloc()
98 tunnel->path_to_down->hops[1].in_counter_index = -1; in tb_pci_alloc()
99 tunnel->path_to_down->hops[1].out_port = down; in tb_pci_alloc()
100 tunnel->path_to_down->hops[1].next_hop_index = 8; in tb_pci_alloc()
105 if (tunnel->path_to_down) in tb_pci_alloc()
106 tb_path_free(tunnel->path_to_down); in tb_pci_alloc()
121 if (tunnel->path_to_up->activated || tunnel->path_to_down->activated) { in tb_pci_free()
126 tb_path_free(tunnel->path_to_down); in tb_pci_free()
136 WARN_ON(!tunnel->path_to_down->activated); in tb_pci_is_invalid()
139 || tb_path_is_invalid(tunnel->path_to_down); in tb_pci_is_invalid()
165 tunnel->path_to_down->activated = false; in tb_pci_restart()
172 res = tb_path_activate(tunnel->path_to_down); in tb_pci_restart()
198 if (tunnel->path_to_up->activated || tunnel->path_to_down->activated) { in tb_pci_activate()
226 if (tunnel->path_to_down->activated) in tb_pci_deactivate()
227 tb_path_deactivate(tunnel->path_to_down); in tb_pci_deactivate()