Lines Matching refs:tunnel
65 struct tb_pci_tunnel *tunnel; in tb_free_invalid_tunnels() local
67 list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list) in tb_free_invalid_tunnels()
69 if (tb_pci_is_invalid(tunnel)) { in tb_free_invalid_tunnels()
70 tb_pci_deactivate(tunnel); in tb_free_invalid_tunnels()
71 tb_pci_free(tunnel); in tb_free_invalid_tunnels()
151 struct tb_pci_tunnel *tunnel; in tb_activate_pcie_devices() local
185 tunnel = tb_pci_alloc(tb, up_port, down_port); in tb_activate_pcie_devices()
186 if (!tunnel) { in tb_activate_pcie_devices()
192 if (tb_pci_activate(tunnel)) { in tb_activate_pcie_devices()
195 tb_pci_free(tunnel); in tb_activate_pcie_devices()
308 struct tb_pci_tunnel *tunnel; in thunderbolt_shutdown_and_free() local
314 list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list) { in thunderbolt_shutdown_and_free()
315 tb_pci_deactivate(tunnel); in thunderbolt_shutdown_and_free()
316 tb_pci_free(tunnel); in thunderbolt_shutdown_and_free()
411 struct tb_pci_tunnel *tunnel, *n; in thunderbolt_resume() local
422 list_for_each_entry_safe(tunnel, n, &tb->tunnel_list, list) in thunderbolt_resume()
423 tb_pci_restart(tunnel); in thunderbolt_resume()