Lines Matching full:paths

177 	tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL);  in tb_tunnel_alloc()
178 if (!tunnel->paths) { in tb_tunnel_alloc()
208 if (tunnel->paths[i]) in tb_tunnel_destroy()
209 tb_path_free(tunnel->paths[i]); in tb_tunnel_destroy()
212 kfree(tunnel->paths); in tb_tunnel_destroy()
364 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_pci()
375 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_discover_pci()
376 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_UP])) in tb_tunnel_discover_pci()
383 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_discover_pci()
384 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_DOWN])) in tb_tunnel_discover_pci()
445 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_alloc_pci()
453 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_alloc_pci()
1039 struct tb_path **paths; in tb_dp_activate() local
1042 paths = tunnel->paths; in tb_dp_activate()
1043 last = paths[TB_DP_VIDEO_PATH_OUT]->path_length - 1; in tb_dp_activate()
1046 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
1047 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
1048 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate()
1051 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate()
1052 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate()
1053 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate()
1508 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
1509 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT], false)) in tb_tunnel_discover_dp()
1516 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
1517 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT], false); in tb_tunnel_discover_dp()
1523 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
1524 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN], false); in tb_tunnel_discover_dp()
1586 struct tb_path **paths; in tb_tunnel_alloc_dp() local
1612 paths = tunnel->paths; in tb_tunnel_alloc_dp()
1620 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1627 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1634 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1772 if (!tunnel->paths[i]) in tb_dma_destroy()
1774 tb_dma_destroy_path(tunnel->paths[i]); in tb_dma_destroy()
1829 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1841 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1879 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
2109 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_usb3()
2120 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
2121 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
2127 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
2128 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
2237 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
2246 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
2272 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
2273 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
2296 * Make sure all paths are properly disabled before enabling in tb_tunnel_activate()
2300 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
2301 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_activate()
2302 tunnel->paths[i]->activated = false; in tb_tunnel_activate()
2315 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_activate()
2352 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
2353 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
2376 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
2379 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()