Lines Matching defs:xd
416 static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd)
419 return usb4_port_configure_xdomain(port, xd);
435 struct tb_xdomain *xd;
442 xd = tb_xdomain_find_by_route(tb, route);
443 if (xd) {
444 tb_xdomain_put(xd);
448 xd = tb_xdomain_alloc(tb, &sw->dev, route, tb->root_switch->uuid,
450 if (xd) {
451 tb_port_at(route, sw)->xdomain = xd;
452 tb_port_configure_xdomain(port, xd);
453 tb_xdomain_add(xd);
2319 static int tb_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
2329 sw = tb_to_switch(xd->dev.parent);
2330 dst_port = tb_port_at(xd->route, sw);
2368 static void __tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
2377 sw = tb_to_switch(xd->dev.parent);
2378 dst_port = tb_port_at(xd->route, sw);
2400 static int tb_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
2404 if (!xd->is_unplugged) {
2406 __tb_disconnect_xdomain_paths(tb, xd, transmit_path,
2478 struct tb_xdomain *xd = tb_xdomain_get(port->xdomain);
2488 xd->is_unplugged = true;
2489 tb_xdomain_remove(xd);
2491 __tb_disconnect_xdomain_paths(tb, xd, -1, -1, -1, -1);
2492 tb_xdomain_put(xd);