Lines Matching refs:root_switch
193 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid,
288 if (sw == tb->root_switch)
292 port = tb_port_at(tb_route(sw), tb->root_switch);
294 usb3_down = usb4_switch_map_usb3_down(tb->root_switch, port);
807 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL;
827 p = tb_port_at(tb_route(port->sw), tb->root_switch);
1054 nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI);
1261 tb_switch_remove(tb->root_switch);
1291 tb->root_switch = tb_switch_alloc(tb, &tb->dev, 0);
1292 if (IS_ERR(tb->root_switch))
1293 return PTR_ERR(tb->root_switch);
1300 tb->root_switch->no_nvm_upgrade = true;
1302 tb->root_switch->rpm = tb_switch_is_usb4(tb->root_switch);
1304 ret = tb_switch_configure(tb->root_switch);
1306 tb_switch_put(tb->root_switch);
1311 ret = tb_switch_add(tb->root_switch);
1313 tb_switch_put(tb->root_switch);
1318 tb_switch_tmu_enable(tb->root_switch);
1320 tb_scan_switch(tb->root_switch);
1322 tb_discover_tunnels(tb->root_switch);
1327 tb_create_usb3_tunnels(tb->root_switch);
1329 tb_add_dp_resources(tb->root_switch);
1331 device_for_each_child(&tb->root_switch->dev, NULL,
1345 tb_switch_suspend(tb->root_switch, false);
1386 tb_switch_reset(tb->root_switch);
1388 tb_switch_resume(tb->root_switch);
1390 tb_free_unplugged_children(tb->root_switch);
1391 tb_restore_children(tb->root_switch);
1455 if (tb_free_unplugged_xdomains(tb->root_switch))
1456 tb_scan_switch(tb->root_switch);
1465 tb_switch_suspend(tb->root_switch, true);
1478 if (tb->root_switch) {
1479 tb_free_unplugged_children(tb->root_switch);
1480 tb_free_unplugged_xdomains(tb->root_switch);
1491 tb_switch_resume(tb->root_switch);
1493 tb_restore_children(tb->root_switch);