Lines Matching refs:remote
62 if (port->remote) { in tb_scan_port()
83 port->remote = tb_upstream_port(sw); in tb_scan_port()
84 tb_upstream_port(sw)->remote = port; in tb_scan_port()
116 if (!port->remote) in tb_free_unplugged_children()
118 if (port->remote->sw->is_unplugged) { in tb_free_unplugged_children()
119 tb_switch_remove(port->remote->sw); in tb_free_unplugged_children()
120 port->remote = NULL; in tb_free_unplugged_children()
122 tb_free_unplugged_children(port->remote->sw); in tb_free_unplugged_children()
190 if (!tb->root_switch->ports[i].remote) in tb_activate_pcie_devices()
192 sw = tb->root_switch->ports[i].remote->sw; in tb_activate_pcie_devices()
282 if (port->remote) { in tb_handle_hotplug()
284 tb_sw_set_unplugged(port->remote->sw); in tb_handle_hotplug()
286 tb_switch_remove(port->remote->sw); in tb_handle_hotplug()
287 port->remote = NULL; in tb_handle_hotplug()
292 } else if (port->remote) { in tb_handle_hotplug()
298 if (!port->remote) { in tb_handle_hotplug()
300 } else if (port->remote->sw->config.depth > 1) { in tb_handle_hotplug()
301 tb_sw_warn(port->remote->sw, in tb_handle_hotplug()
304 tb_sw_info(port->remote->sw, in tb_handle_hotplug()