Lines Matching refs:root_switch

382 	sw = tunnel->tb->root_switch;  in tb_increase_tmu_accuracy()
506 tb_switch_discover_tunnels(tb->root_switch, &tcm->tunnel_list, true); in tb_discover_tunnels()
563 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid, in tb_scan_xdomain()
639 if (sw == tb->root_switch) in tb_find_first_usb3_tunnel()
643 port = tb_port_at(tb_route(sw), tb->root_switch); in tb_find_first_usb3_tunnel()
645 usb3_down = usb4_switch_map_usb3_down(tb->root_switch, port); in tb_find_first_usb3_tunnel()
1308 host_port = tb_port_at(tb_route(sw), tb->root_switch); in tb_configure_link()
1707 tb_port_at(tb_route(in->sw), tb->root_switch) : NULL; in tb_find_dp_out()
1727 p = tb_port_at(tb_route(port->sw), tb->root_switch); in tb_find_dp_out()
2116 nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI); in tb_approve_xdomain_paths()
2164 nhi_port = tb_switch_find_port(tb->root_switch, TB_TYPE_NHI); in __tb_disconnect_xdomain_paths()
2633 tb_switch_remove(tb->root_switch); in tb_stop()
2663 tb->root_switch = tb_switch_alloc(tb, &tb->dev, 0); in tb_start()
2664 if (IS_ERR(tb->root_switch)) in tb_start()
2665 return PTR_ERR(tb->root_switch); in tb_start()
2675 tb->root_switch->no_nvm_upgrade = !tb_switch_is_usb4(tb->root_switch); in tb_start()
2677 tb->root_switch->rpm = tb_switch_is_usb4(tb->root_switch); in tb_start()
2679 ret = tb_switch_configure(tb->root_switch); in tb_start()
2681 tb_switch_put(tb->root_switch); in tb_start()
2686 ret = tb_switch_add(tb->root_switch); in tb_start()
2688 tb_switch_put(tb->root_switch); in tb_start()
2696 tb_switch_tmu_configure(tb->root_switch, TB_SWITCH_TMU_MODE_LOWRES); in tb_start()
2698 tb_switch_tmu_enable(tb->root_switch); in tb_start()
2706 if (reset && usb4_switch_version(tb->root_switch) == 1) { in tb_start()
2707 tb_switch_reset(tb->root_switch); in tb_start()
2710 tb_scan_switch(tb->root_switch); in tb_start()
2721 tb_create_usb3_tunnels(tb->root_switch); in tb_start()
2723 tb_add_dp_resources(tb->root_switch); in tb_start()
2724 tb_switch_enter_redrive(tb->root_switch); in tb_start()
2726 device_for_each_child(&tb->root_switch->dev, NULL, in tb_start()
2740 tb_switch_exit_redrive(tb->root_switch); in tb_suspend_noirq()
2741 tb_switch_suspend(tb->root_switch, false); in tb_suspend_noirq()
2793 if (!tb_switch_is_usb4(tb->root_switch)) in tb_resume_noirq()
2794 tb_switch_reset(tb->root_switch); in tb_resume_noirq()
2796 tb_switch_resume(tb->root_switch, false); in tb_resume_noirq()
2798 tb_free_unplugged_children(tb->root_switch); in tb_resume_noirq()
2799 tb_restore_children(tb->root_switch); in tb_resume_noirq()
2807 tb_switch_discover_tunnels(tb->root_switch, &tunnels, false); in tb_resume_noirq()
2833 tb_switch_enter_redrive(tb->root_switch); in tb_resume_noirq()
2887 if (tb_free_unplugged_xdomains(tb->root_switch)) in tb_complete()
2888 tb_scan_switch(tb->root_switch); in tb_complete()
2902 tb_switch_exit_redrive(tb->root_switch); in tb_runtime_suspend()
2903 tb_switch_suspend(tb->root_switch, true); in tb_runtime_suspend()
2916 if (tb->root_switch) { in tb_remove_work()
2917 tb_free_unplugged_children(tb->root_switch); in tb_remove_work()
2918 tb_free_unplugged_xdomains(tb->root_switch); in tb_remove_work()
2929 tb_switch_resume(tb->root_switch, true); in tb_runtime_resume()
2931 tb_restore_children(tb->root_switch); in tb_runtime_resume()
2934 tb_switch_enter_redrive(tb->root_switch); in tb_runtime_resume()