Lines Matching refs:down
244 struct tb_port *down; in tb_find_usb3_down() local
246 down = usb4_switch_map_usb3_down(sw, port); in tb_find_usb3_down()
247 if (down && !tb_usb3_port_is_enabled(down)) in tb_find_usb3_down()
248 return down; in tb_find_usb3_down()
433 struct tb_port *up, *down, *port; in tb_tunnel_usb3() local
449 down = tb_find_usb3_down(parent, port); in tb_tunnel_usb3()
450 if (!down) in tb_tunnel_usb3()
465 ret = tb_release_unused_usb3_bandwidth(tb, down, up); in tb_tunnel_usb3()
470 ret = tb_available_bandwidth(tb, down, up, &available_up, in tb_tunnel_usb3()
478 tunnel = tb_tunnel_alloc_usb3(tb, up, down, available_up, in tb_tunnel_usb3()
494 tb_reclaim_usb3_bandwidth(tb, down, up); in tb_tunnel_usb3()
502 tb_reclaim_usb3_bandwidth(tb, down, up); in tb_tunnel_usb3()
751 struct tb_port *down = NULL; in tb_find_pcie_down() local
758 down = usb4_switch_map_pcie_down(sw, port); in tb_find_pcie_down()
781 down = &sw->ports[index]; in tb_find_pcie_down()
784 if (down) { in tb_find_pcie_down()
785 if (WARN_ON(!tb_port_is_pcie_down(down))) in tb_find_pcie_down()
787 if (tb_pci_port_is_enabled(down)) in tb_find_pcie_down()
790 return down; in tb_find_pcie_down()
1007 struct tb_port *up, *down, *port; in tb_tunnel_pci() local
1022 down = tb_find_pcie_down(parent_sw, port); in tb_tunnel_pci()
1023 if (!down) in tb_tunnel_pci()
1026 tunnel = tb_tunnel_alloc_pci(tb, up, down); in tb_tunnel_pci()