Lines Matching full:paths
128 tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL); in tb_tunnel_alloc()
129 if (!tunnel->paths) { in tb_tunnel_alloc()
231 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_pci()
242 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_discover_pci()
243 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_UP])) in tb_tunnel_discover_pci()
250 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_discover_pci()
251 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_DOWN])) in tb_tunnel_discover_pci()
312 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_alloc_pci()
320 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_alloc_pci()
590 struct tb_path **paths; in tb_dp_activate() local
593 paths = tunnel->paths; in tb_dp_activate()
594 last = paths[TB_DP_VIDEO_PATH_OUT]->path_length - 1; in tb_dp_activate()
597 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
598 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
599 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate()
602 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate()
603 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate()
604 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate()
796 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
797 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT])) in tb_tunnel_discover_dp()
803 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
804 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT]); in tb_tunnel_discover_dp()
810 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
811 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN]); in tb_tunnel_discover_dp()
861 struct tb_path **paths; in tb_tunnel_alloc_dp() local
879 paths = tunnel->paths; in tb_tunnel_alloc_dp()
886 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
893 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
900 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1038 if (!tunnel->paths[i]) in tb_dma_deinit()
1040 tb_dma_deinit_path(tunnel->paths[i]); in tb_dma_deinit()
1091 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1103 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1141 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
1367 * Discover both paths even if they are not complete. We will in tb_tunnel_discover_usb3()
1378 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
1379 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
1385 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
1386 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
1500 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
1509 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
1543 if (tunnel->paths[i]) in tb_tunnel_free()
1544 tb_path_free(tunnel->paths[i]); in tb_tunnel_free()
1547 kfree(tunnel->paths); in tb_tunnel_free()
1560 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
1561 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
1581 * Make sure all paths are properly disabled before enabling in tb_tunnel_restart()
1585 if (tunnel->paths[i]->activated) { in tb_tunnel_restart()
1586 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_restart()
1587 tunnel->paths[i]->activated = false; in tb_tunnel_restart()
1598 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_restart()
1628 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
1652 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
1653 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
1671 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
1674 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()
1686 if (!tunnel->paths[i]) in tb_tunnel_is_active()
1688 if (!tunnel->paths[i]->activated) in tb_tunnel_is_active()