Lines Matching refs:root_switch
153 for (i = 1; i <= tb->root_switch->config.max_port_number; i++) { in tb_activate_pcie_devices()
154 if (tb_is_upstream_port(&tb->root_switch->ports[i])) in tb_activate_pcie_devices()
156 if (tb->root_switch->ports[i].config.type != TB_TYPE_PORT) in tb_activate_pcie_devices()
158 if (!tb->root_switch->ports[i].remote) in tb_activate_pcie_devices()
160 sw = tb->root_switch->ports[i].remote->sw; in tb_activate_pcie_devices()
179 down_port = tb_find_unused_down_port(tb->root_switch); in tb_activate_pcie_devices()
226 sw = get_switch_at_route(tb->root_switch, ev->route); in tb_handle_hotplug()
319 if (tb->root_switch) in thunderbolt_shutdown_and_free()
320 tb_switch_free(tb->root_switch); in thunderbolt_shutdown_and_free()
321 tb->root_switch = NULL; in thunderbolt_shutdown_and_free()
379 tb->root_switch = tb_switch_alloc(tb, 0); in thunderbolt_alloc_and_start()
380 if (!tb->root_switch) in thunderbolt_alloc_and_start()
384 tb_scan_switch(tb->root_switch); in thunderbolt_alloc_and_start()
402 tb_switch_suspend(tb->root_switch); in thunderbolt_suspend()
419 tb_switch_resume(tb->root_switch); in thunderbolt_resume()
421 tb_free_unplugged_children(tb->root_switch); in thunderbolt_resume()