Lines Matching full:paths
156 tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL); in tb_tunnel_alloc()
157 if (!tunnel->paths) { in tb_tunnel_alloc()
311 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_pci()
322 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_discover_pci()
323 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_UP])) in tb_tunnel_discover_pci()
330 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_discover_pci()
331 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_DOWN])) in tb_tunnel_discover_pci()
392 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_alloc_pci()
400 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_alloc_pci()
897 struct tb_path **paths; in tb_dp_activate() local
900 paths = tunnel->paths; in tb_dp_activate()
901 last = paths[TB_DP_VIDEO_PATH_OUT]->path_length - 1; in tb_dp_activate()
904 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
905 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
906 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate()
909 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate()
910 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate()
911 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate()
1384 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
1385 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT], false)) in tb_tunnel_discover_dp()
1392 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
1393 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT], false); in tb_tunnel_discover_dp()
1399 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
1400 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN], false); in tb_tunnel_discover_dp()
1453 struct tb_path **paths; in tb_tunnel_alloc_dp() local
1476 paths = tunnel->paths; in tb_tunnel_alloc_dp()
1484 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1491 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1498 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1636 if (!tunnel->paths[i]) in tb_dma_deinit()
1638 tb_dma_deinit_path(tunnel->paths[i]); in tb_dma_deinit()
1693 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1705 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1743 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
1973 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_usb3()
1984 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
1985 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
1991 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
1992 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
2101 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
2110 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
2144 if (tunnel->paths[i]) in tb_tunnel_free()
2145 tb_path_free(tunnel->paths[i]); in tb_tunnel_free()
2148 kfree(tunnel->paths); in tb_tunnel_free()
2161 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
2162 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
2182 * Make sure all paths are properly disabled before enabling in tb_tunnel_restart()
2186 if (tunnel->paths[i]->activated) { in tb_tunnel_restart()
2187 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_restart()
2188 tunnel->paths[i]->activated = false; in tb_tunnel_restart()
2199 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_restart()
2229 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
2253 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
2254 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
2272 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
2275 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()
2287 if (!tunnel->paths[i]) in tb_tunnel_is_active()
2289 if (!tunnel->paths[i]->activated) in tb_tunnel_is_active()