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()
1400 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
1401 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT], false)) in tb_tunnel_discover_dp()
1408 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
1409 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT], false); in tb_tunnel_discover_dp()
1415 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
1416 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN], false); in tb_tunnel_discover_dp()
1469 struct tb_path **paths; in tb_tunnel_alloc_dp() local
1492 paths = tunnel->paths; in tb_tunnel_alloc_dp()
1500 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1507 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1514 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1652 if (!tunnel->paths[i]) in tb_dma_deinit()
1654 tb_dma_deinit_path(tunnel->paths[i]); in tb_dma_deinit()
1709 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1721 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1759 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
1989 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_usb3()
2000 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
2001 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
2007 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
2008 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
2122 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
2131 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
2165 if (tunnel->paths[i]) in tb_tunnel_free()
2166 tb_path_free(tunnel->paths[i]); in tb_tunnel_free()
2169 kfree(tunnel->paths); in tb_tunnel_free()
2182 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
2183 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
2203 * Make sure all paths are properly disabled before enabling in tb_tunnel_restart()
2207 if (tunnel->paths[i]->activated) { in tb_tunnel_restart()
2208 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_restart()
2209 tunnel->paths[i]->activated = false; in tb_tunnel_restart()
2220 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_restart()
2250 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
2274 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
2275 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
2293 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
2296 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()
2308 if (!tunnel->paths[i]) in tb_tunnel_is_active()
2310 if (!tunnel->paths[i]->activated) in tb_tunnel_is_active()