Lines Matching full:paths
143 tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL); in tb_tunnel_alloc()
144 if (!tunnel->paths) { in tb_tunnel_alloc()
279 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_pci()
290 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_discover_pci()
291 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_UP])) in tb_tunnel_discover_pci()
298 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_discover_pci()
299 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_DOWN])) in tb_tunnel_discover_pci()
360 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_alloc_pci()
368 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_alloc_pci()
817 struct tb_path **paths; in tb_dp_activate() local
820 paths = tunnel->paths; in tb_dp_activate()
821 last = paths[TB_DP_VIDEO_PATH_OUT]->path_length - 1; in tb_dp_activate()
824 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
825 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
826 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate()
829 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate()
830 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate()
831 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate()
1324 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
1325 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT])) in tb_tunnel_discover_dp()
1332 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
1333 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT]); in tb_tunnel_discover_dp()
1339 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
1340 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN]); in tb_tunnel_discover_dp()
1393 struct tb_path **paths; in tb_tunnel_alloc_dp() local
1415 paths = tunnel->paths; in tb_tunnel_alloc_dp()
1422 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1429 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1436 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1574 if (!tunnel->paths[i]) in tb_dma_deinit()
1576 tb_dma_deinit_path(tunnel->paths[i]); in tb_dma_deinit()
1631 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1643 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1681 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
1909 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_usb3()
1920 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
1921 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
1927 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
1928 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
2042 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
2051 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
2085 if (tunnel->paths[i]) in tb_tunnel_free()
2086 tb_path_free(tunnel->paths[i]); in tb_tunnel_free()
2089 kfree(tunnel->paths); in tb_tunnel_free()
2102 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
2103 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
2123 * Make sure all paths are properly disabled before enabling in tb_tunnel_restart()
2127 if (tunnel->paths[i]->activated) { in tb_tunnel_restart()
2128 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_restart()
2129 tunnel->paths[i]->activated = false; in tb_tunnel_restart()
2140 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_restart()
2170 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
2194 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
2195 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
2213 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
2216 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()
2228 if (!tunnel->paths[i]) in tb_tunnel_is_active()
2230 if (!tunnel->paths[i]->activated) in tb_tunnel_is_active()