Lines Matching refs:paths

185 	tunnel->paths = kcalloc(npaths, sizeof(tunnel->paths[0]), GFP_KERNEL);  in tb_tunnel_alloc()
186 if (!tunnel->paths) { in tb_tunnel_alloc()
216 if (tunnel->paths[i]) in tb_tunnel_destroy()
217 tb_path_free(tunnel->paths[i]); in tb_tunnel_destroy()
220 kfree(tunnel->paths); in tb_tunnel_destroy()
449 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_discover_pci()
450 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_UP])) in tb_tunnel_discover_pci()
457 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_discover_pci()
458 if (tb_pci_init_path(tunnel->paths[TB_PCI_PATH_DOWN])) in tb_tunnel_discover_pci()
519 tunnel->paths[TB_PCI_PATH_DOWN] = path; in tb_tunnel_alloc_pci()
527 tunnel->paths[TB_PCI_PATH_UP] = path; in tb_tunnel_alloc_pci()
1113 struct tb_path **paths; in tb_dp_activate() local
1116 paths = tunnel->paths; in tb_dp_activate()
1117 last = paths[TB_DP_VIDEO_PATH_OUT]->path_length - 1; in tb_dp_activate()
1120 paths[TB_DP_VIDEO_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
1121 paths[TB_DP_AUX_PATH_OUT]->hops[0].in_hop_index, in tb_dp_activate()
1122 paths[TB_DP_AUX_PATH_IN]->hops[last].next_hop_index); in tb_dp_activate()
1125 paths[TB_DP_VIDEO_PATH_OUT]->hops[last].next_hop_index, in tb_dp_activate()
1126 paths[TB_DP_AUX_PATH_IN]->hops[0].in_hop_index, in tb_dp_activate()
1127 paths[TB_DP_AUX_PATH_OUT]->hops[last].next_hop_index); in tb_dp_activate()
1582 tunnel->paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_discover_dp()
1583 if (tb_dp_init_video_path(tunnel->paths[TB_DP_VIDEO_PATH_OUT], false)) in tb_tunnel_discover_dp()
1590 tunnel->paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_discover_dp()
1591 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_OUT], false); in tb_tunnel_discover_dp()
1597 tunnel->paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_discover_dp()
1598 tb_dp_init_aux_path(tunnel->paths[TB_DP_AUX_PATH_IN], false); in tb_tunnel_discover_dp()
1660 struct tb_path **paths; in tb_tunnel_alloc_dp() local
1686 paths = tunnel->paths; in tb_tunnel_alloc_dp()
1694 paths[TB_DP_VIDEO_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1701 paths[TB_DP_AUX_PATH_OUT] = path; in tb_tunnel_alloc_dp()
1708 paths[TB_DP_AUX_PATH_IN] = path; in tb_tunnel_alloc_dp()
1846 if (!tunnel->paths[i]) in tb_dma_destroy()
1848 tb_dma_destroy_path(tunnel->paths[i]); in tb_dma_destroy()
1903 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1915 tunnel->paths[i++] = path; in tb_tunnel_alloc_dma()
1953 const struct tb_path *path = tunnel->paths[i]; in tb_tunnel_match_dma()
2194 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_discover_usb3()
2195 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_DOWN]); in tb_tunnel_discover_usb3()
2201 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_discover_usb3()
2202 tb_usb3_init_path(tunnel->paths[TB_USB3_PATH_UP]); in tb_tunnel_discover_usb3()
2309 tunnel->paths[TB_USB3_PATH_DOWN] = path; in tb_tunnel_alloc_usb3()
2316 tunnel->paths[TB_USB3_PATH_UP] = path; in tb_tunnel_alloc_usb3()
2346 WARN_ON(!tunnel->paths[i]->activated); in tb_tunnel_is_invalid()
2347 if (tb_path_is_invalid(tunnel->paths[i])) in tb_tunnel_is_invalid()
2374 if (tunnel->paths[i]->activated) { in tb_tunnel_activate()
2375 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_activate()
2376 tunnel->paths[i]->activated = false; in tb_tunnel_activate()
2389 res = tb_path_activate(tunnel->paths[i]); in tb_tunnel_activate()
2426 if (tunnel->paths[i] && tunnel->paths[i]->activated) in tb_tunnel_deactivate()
2427 tb_path_deactivate(tunnel->paths[i]); in tb_tunnel_deactivate()
2450 if (!tunnel->paths[i]) in tb_tunnel_port_on_path()
2453 if (tb_path_port_on_path(tunnel->paths[i], port)) in tb_tunnel_port_on_path()