Lines Matching refs:down

215 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down)  in tb_tunnel_discover_pci()  argument
220 if (!tb_pci_port_is_enabled(down)) in tb_tunnel_discover_pci()
228 tunnel->src_port = down; in tb_tunnel_discover_pci()
235 path = tb_path_discover(down, TB_PCI_HOPID, NULL, -1, in tb_tunnel_discover_pci()
239 tb_pci_port_enable(down, false); in tb_tunnel_discover_pci()
246 path = tb_path_discover(tunnel->dst_port, -1, down, TB_PCI_HOPID, NULL, in tb_tunnel_discover_pci()
261 if (down != tunnel->src_port) { in tb_tunnel_discover_pci()
295 struct tb_port *down) in tb_tunnel_alloc_pci() argument
305 tunnel->src_port = down; in tb_tunnel_alloc_pci()
308 path = tb_path_alloc(tb, down, TB_PCI_HOPID, up, TB_PCI_HOPID, 0, in tb_tunnel_alloc_pci()
316 path = tb_path_alloc(tb, up, TB_PCI_HOPID, down, TB_PCI_HOPID, 0, in tb_tunnel_alloc_pci()
1177 static int tb_usb3_max_link_rate(struct tb_port *up, struct tb_port *down) in tb_usb3_max_link_rate() argument
1186 ret = usb4_usb3_port_max_link_rate(down); in tb_usb3_max_link_rate()
1351 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_usb3() argument
1356 if (!tb_usb3_port_is_enabled(down)) in tb_tunnel_discover_usb3()
1364 tunnel->src_port = down; in tb_tunnel_discover_usb3()
1371 path = tb_path_discover(down, TB_USB3_HOPID, NULL, -1, in tb_tunnel_discover_usb3()
1375 tb_usb3_port_enable(down, false); in tb_tunnel_discover_usb3()
1381 path = tb_path_discover(tunnel->dst_port, -1, down, TB_USB3_HOPID, NULL, in tb_tunnel_discover_usb3()
1395 if (down != tunnel->src_port) { in tb_tunnel_discover_usb3()
1406 if (!tb_route(down->sw)) { in tb_tunnel_discover_usb3()
1413 ret = usb4_usb3_port_allocated_bandwidth(down, in tb_tunnel_discover_usb3()
1456 struct tb_port *down, int max_up, in tb_tunnel_alloc_usb3() argument
1468 max_rate = tb_usb3_max_link_rate(down, up); in tb_tunnel_alloc_usb3()
1488 tunnel->src_port = down; in tb_tunnel_alloc_usb3()
1493 path = tb_path_alloc(tb, down, TB_USB3_HOPID, up, TB_USB3_HOPID, 0, in tb_tunnel_alloc_usb3()
1502 path = tb_path_alloc(tb, up, TB_USB3_HOPID, down, TB_USB3_HOPID, 0, in tb_tunnel_alloc_usb3()
1511 if (!tb_route(down->sw)) { in tb_tunnel_alloc_usb3()