Lines Matching refs:xd

186 	struct tb_xdomain *xd;  in tb_scan_xdomain()  local
193 xd = tb_xdomain_find_by_route(tb, route); in tb_scan_xdomain()
194 if (xd) { in tb_scan_xdomain()
195 tb_xdomain_put(xd); in tb_scan_xdomain()
199 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid, in tb_scan_xdomain()
201 if (xd) { in tb_scan_xdomain()
202 tb_port_at(route, sw)->xdomain = xd; in tb_scan_xdomain()
204 tb_xdomain_add(xd); in tb_scan_xdomain()
1083 static int tb_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in tb_approve_xdomain_paths() argument
1092 sw = tb_to_switch(xd->dev.parent); in tb_approve_xdomain_paths()
1093 dst_port = tb_port_at(xd->route, sw); in tb_approve_xdomain_paths()
1117 static void __tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in __tb_disconnect_xdomain_paths() argument
1126 sw = tb_to_switch(xd->dev.parent); in __tb_disconnect_xdomain_paths()
1127 dst_port = tb_port_at(xd->route, sw); in __tb_disconnect_xdomain_paths()
1142 static int tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd, in tb_disconnect_xdomain_paths() argument
1146 if (!xd->is_unplugged) { in tb_disconnect_xdomain_paths()
1148 __tb_disconnect_xdomain_paths(tb, xd, transmit_path, in tb_disconnect_xdomain_paths()
1218 struct tb_xdomain *xd = tb_xdomain_get(port->xdomain); in tb_handle_hotplug() local
1228 xd->is_unplugged = true; in tb_handle_hotplug()
1229 tb_xdomain_remove(xd); in tb_handle_hotplug()
1231 __tb_disconnect_xdomain_paths(tb, xd, -1, -1, -1, -1); in tb_handle_hotplug()
1232 tb_xdomain_put(xd); in tb_handle_hotplug()