Lines Matching refs:root_switch

199 	xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid,  in tb_scan_xdomain()
294 if (sw == tb->root_switch) in tb_find_first_usb3_tunnel()
298 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel()
300 usb3_down = usb4_switch_map_usb3_down(tb->root_switch, port); in tb_find_first_usb3_tunnel()
821 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL; in tb_find_dp_out()
841 p = tb_port_at(tb_route(port->sw), tb->root_switch); in tb_find_dp_out()
1094 nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI); in tb_approve_xdomain_paths()
1128 nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI); in __tb_disconnect_xdomain_paths()
1311 tb_switch_remove(tb->root_switch); in tb_stop()
1341 tb->root_switch = tb_switch_alloc(tb, &tb->dev, 0); in tb_start()
1342 if (IS_ERR(tb->root_switch)) in tb_start()
1343 return PTR_ERR(tb->root_switch); in tb_start()
1350 tb->root_switch->no_nvm_upgrade = true; in tb_start()
1352 tb->root_switch->rpm = tb_switch_is_usb4(tb->root_switch); in tb_start()
1354 ret = tb_switch_configure(tb->root_switch); in tb_start()
1356 tb_switch_put(tb->root_switch); in tb_start()
1361 ret = tb_switch_add(tb->root_switch); in tb_start()
1363 tb_switch_put(tb->root_switch); in tb_start()
1368 tb_switch_tmu_enable(tb->root_switch); in tb_start()
1370 tb_scan_switch(tb->root_switch); in tb_start()
1372 tb_discover_tunnels(tb->root_switch); in tb_start()
1377 tb_create_usb3_tunnels(tb->root_switch); in tb_start()
1379 tb_add_dp_resources(tb->root_switch); in tb_start()
1381 device_for_each_child(&tb->root_switch->dev, NULL, in tb_start()
1395 tb_switch_suspend(tb->root_switch, false); in tb_suspend_noirq()
1436 tb_switch_reset(tb->root_switch); in tb_resume_noirq()
1438 tb_switch_resume(tb->root_switch); in tb_resume_noirq()
1440 tb_free_unplugged_children(tb->root_switch); in tb_resume_noirq()
1441 tb_restore_children(tb->root_switch); in tb_resume_noirq()
1505 if (tb_free_unplugged_xdomains(tb->root_switch)) in tb_complete()
1506 tb_scan_switch(tb->root_switch); in tb_complete()
1515 tb_switch_suspend(tb->root_switch, true); in tb_runtime_suspend()
1528 if (tb->root_switch) { in tb_remove_work()
1529 tb_free_unplugged_children(tb->root_switch); in tb_remove_work()
1530 tb_free_unplugged_xdomains(tb->root_switch); in tb_remove_work()
1541 tb_switch_resume(tb->root_switch); in tb_runtime_resume()
1543 tb_restore_children(tb->root_switch); in tb_runtime_resume()