Lines Matching refs:remote
48 if (port->remote) { in tb_scan_port()
55 port->remote = tb_upstream_port(sw); in tb_scan_port()
56 tb_upstream_port(sw)->remote = port; in tb_scan_port()
86 if (!port->remote) in tb_free_unplugged_children()
88 if (port->remote->sw->is_unplugged) { in tb_free_unplugged_children()
89 tb_switch_free(port->remote->sw); in tb_free_unplugged_children()
90 port->remote = NULL; in tb_free_unplugged_children()
92 tb_free_unplugged_children(port->remote->sw); in tb_free_unplugged_children()
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()
247 if (port->remote) { in tb_handle_hotplug()
249 tb_sw_set_unpplugged(port->remote->sw); in tb_handle_hotplug()
251 tb_switch_free(port->remote->sw); in tb_handle_hotplug()
252 port->remote = NULL; in tb_handle_hotplug()
257 } else if (port->remote) { in tb_handle_hotplug()
263 if (!port->remote) { in tb_handle_hotplug()
265 } else if (port->remote->sw->config.depth > 1) { in tb_handle_hotplug()
266 tb_sw_warn(port->remote->sw, in tb_handle_hotplug()
269 tb_sw_info(port->remote->sw, in tb_handle_hotplug()