Lines Matching refs:xd

183 	struct tb_xdomain *xd;  in tb_scan_xdomain()  local
187 xd = tb_xdomain_find_by_route(tb, route); in tb_scan_xdomain()
188 if (xd) { in tb_scan_xdomain()
189 tb_xdomain_put(xd); in tb_scan_xdomain()
193 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid, in tb_scan_xdomain()
195 if (xd) { in tb_scan_xdomain()
196 tb_port_at(route, sw)->xdomain = xd; in tb_scan_xdomain()
198 tb_xdomain_add(xd); in tb_scan_xdomain()
1045 static int tb_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd) in tb_approve_xdomain_paths() argument
1052 sw = tb_to_switch(xd->dev.parent); in tb_approve_xdomain_paths()
1053 dst_port = tb_port_at(xd->route, sw); in tb_approve_xdomain_paths()
1057 tunnel = tb_tunnel_alloc_dma(tb, nhi_port, dst_port, xd->transmit_ring, in tb_approve_xdomain_paths()
1058 xd->transmit_path, xd->receive_ring, in tb_approve_xdomain_paths()
1059 xd->receive_path); in tb_approve_xdomain_paths()
1078 static void __tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd) in __tb_disconnect_xdomain_paths() argument
1084 sw = tb_to_switch(xd->dev.parent); in __tb_disconnect_xdomain_paths()
1085 dst_port = tb_port_at(xd->route, sw); in __tb_disconnect_xdomain_paths()
1096 static int tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd) in tb_disconnect_xdomain_paths() argument
1098 if (!xd->is_unplugged) { in tb_disconnect_xdomain_paths()
1100 __tb_disconnect_xdomain_paths(tb, xd); in tb_disconnect_xdomain_paths()
1168 struct tb_xdomain *xd = tb_xdomain_get(port->xdomain); in tb_handle_hotplug() local
1178 xd->is_unplugged = true; in tb_handle_hotplug()
1179 tb_xdomain_remove(xd); in tb_handle_hotplug()
1181 __tb_disconnect_xdomain_paths(tb, xd); in tb_handle_hotplug()
1182 tb_xdomain_put(xd); in tb_handle_hotplug()