• Home
  • Raw
  • Download

Lines Matching +full:0 +full: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()
208 return 0; in tb_enable_tmu()
318 usb3_consumed_up = 0; in tb_available_bandwidth()
319 usb3_consumed_down = 0; in tb_available_bandwidth()
335 if (link_speed < 0) in tb_available_bandwidth()
386 if (*available_up < 0) in tb_available_bandwidth()
387 *available_up = 0; in tb_available_bandwidth()
388 if (*available_down < 0) in tb_available_bandwidth()
389 *available_down = 0; in tb_available_bandwidth()
391 return 0; in tb_available_bandwidth()
401 return tunnel ? tb_tunnel_release_unused_bandwidth(tunnel) : 0; in tb_release_unused_usb3_bandwidth()
443 return 0; in tb_tunnel_usb3()
446 return 0; in tb_tunnel_usb3()
455 return 0; in tb_tunnel_usb3()
466 return 0; in tb_tunnel_usb3()
500 return 0; in tb_tunnel_usb3()
530 return 0; in tb_create_usb3_tunnels()
576 * Only scan on the primary port (link_nr == 0). in tb_scan_port()
578 if (tb_wait_for_port(port, false) <= 0) in tb_scan_port()
1018 return 0; in tb_tunnel_pci()
1028 return 0; in tb_tunnel_pci()
1042 return 0; in tb_tunnel_pci()
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()
1075 return 0; 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()
1103 return 0; 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()
1283 return 0; in tb_scan_finalize_switch()
1291 tb->root_switch = tb_switch_alloc(tb, &tb->dev, 0); in tb_start()
1336 return 0; in tb_start()
1349 return 0; in tb_suspend_noirq()
1406 return 0; in tb_resume_noirq()
1412 int ret = 0; in tb_free_unplugged_xdomains()
1436 return 0; in tb_freeze_noirq()
1444 return 0; in tb_thaw_noirq()
1469 return 0; in tb_runtime_suspend()
1505 return 0; in tb_runtime_resume()