tb_switch_find_port
nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI);
up = tb_switch_find_port(sw, TB_TYPE_PCIE_UP);
up = tb_switch_find_port(sw, TB_TYPE_PCIE_UP);
nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI);
nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI);
up = tb_switch_find_port(sw, TB_TYPE_USB3_UP);
parent_up = tb_switch_find_port(parent, TB_TYPE_USB3_UP);
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
if (!tb_switch_find_port(port->sw, TB_TYPE_PCIE_UP))
if (!tb_switch_find_port(port->remote->sw, TB_TYPE_PCIE_DOWN))
if (!tb_switch_find_port(port->sw, TB_TYPE_PCIE_DOWN))
if (!tb_switch_find_port(port->remote->sw, TB_TYPE_PCIE_UP))
tb_switch_find_port(parent, TB_TYPE_USB3_DOWN)) {
tb_switch_find_port(parent, TB_TYPE_PCIE_DOWN)) {