Lines Matching full:down

135  * @down: PCIe downstream adapter
137 * If @down adapter is active, follows the tunnel to the PCIe upstream
141 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_pci() argument
146 if (!tb_pci_port_is_enabled(down)) in tb_tunnel_discover_pci()
154 tunnel->src_port = down; in tb_tunnel_discover_pci()
161 path = tb_path_discover(down, TB_PCI_HOPID, NULL, -1, in tb_tunnel_discover_pci()
165 tb_pci_port_enable(down, false); in tb_tunnel_discover_pci()
171 path = tb_path_discover(tunnel->dst_port, -1, down, TB_PCI_HOPID, NULL, in tb_tunnel_discover_pci()
172 "PCIe Down"); in tb_tunnel_discover_pci()
185 if (down != tunnel->src_port) { in tb_tunnel_discover_pci()
211 * @down: PCIe downstream adapter port
219 struct tb_port *down) in tb_tunnel_alloc_pci() argument
229 tunnel->src_port = down; in tb_tunnel_alloc_pci()
232 path = tb_path_alloc(tb, down, TB_PCI_HOPID, up, TB_PCI_HOPID, 0, in tb_tunnel_alloc_pci()
233 "PCIe Down"); in tb_tunnel_alloc_pci()
241 path = tb_path_alloc(tb, up, TB_PCI_HOPID, down, TB_PCI_HOPID, 0, in tb_tunnel_alloc_pci()
879 static int tb_usb3_max_link_rate(struct tb_port *up, struct tb_port *down) in tb_usb3_max_link_rate() argument
888 ret = usb4_usb3_port_max_link_rate(down); in tb_usb3_max_link_rate()
1027 * @down: USB3 downstream adapter
1029 * If @down adapter is active, follows the tunnel to the USB3 upstream
1033 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_usb3() argument
1038 if (!tb_usb3_port_is_enabled(down)) in tb_tunnel_discover_usb3()
1046 tunnel->src_port = down; in tb_tunnel_discover_usb3()
1053 path = tb_path_discover(down, TB_USB3_HOPID, NULL, -1, in tb_tunnel_discover_usb3()
1054 &tunnel->dst_port, "USB3 Down"); in tb_tunnel_discover_usb3()
1057 tb_usb3_port_enable(down, false); in tb_tunnel_discover_usb3()
1063 path = tb_path_discover(tunnel->dst_port, -1, down, TB_USB3_HOPID, NULL, in tb_tunnel_discover_usb3()
1077 if (down != tunnel->src_port) { in tb_tunnel_discover_usb3()
1088 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3()
1095 ret = usb4_usb3_port_allocated_bandwidth(down, in tb_tunnel_discover_usb3()
1126 * @down: USB3 downstream adapter port
1138 struct tb_port *down, int max_up, in tb_tunnel_alloc_usb3() argument
1150 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3()
1170 tunnel->src_port = down; in tb_tunnel_alloc_usb3()
1175 path = tb_path_alloc(tb, down, TB_USB3_HOPID, up, TB_USB3_HOPID, 0, in tb_tunnel_alloc_usb3()
1176 "USB3 Down"); in tb_tunnel_alloc_usb3()
1184 path = tb_path_alloc(tb, up, TB_USB3_HOPID, down, TB_USB3_HOPID, 0, in tb_tunnel_alloc_usb3()
1193 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()