Lines Matching refs:src_port

140 			while (parent != tunnel->src_port->sw) {  in tb_discover_tunnels()
146 pm_runtime_get_sync(&tunnel->src_port->sw->dev); in tb_discover_tunnels()
263 struct tb_port *src_port, in tb_find_tunnel() argument
271 ((src_port && src_port == tunnel->src_port) || in tb_find_tunnel()
281 struct tb_port *src_port, in tb_find_first_usb3_tunnel() argument
288 if (dst_port->sw->config.depth > src_port->sw->config.depth) in tb_find_first_usb3_tunnel()
291 sw = src_port->sw; in tb_find_first_usb3_tunnel()
307 static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_available_bandwidth() argument
317 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_available_bandwidth()
331 tb_for_each_port_on_path(src_port, dst_port, port) { in tb_available_bandwidth()
401 struct tb_port *src_port, in tb_release_unused_usb3_bandwidth() argument
406 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_release_unused_usb3_bandwidth()
410 static void tb_reclaim_usb3_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_reclaim_usb3_bandwidth() argument
416 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_reclaim_usb3_bandwidth()
426 ret = tb_available_bandwidth(tb, tunnel->src_port, tunnel->dst_port, in tb_reclaim_usb3_bandwidth()
683 struct tb_port *src_port, *dst_port; in tb_deactivate_and_free_tunnel() local
693 src_port = tunnel->src_port; in tb_deactivate_and_free_tunnel()
702 tb_switch_dealloc_dp_resource(src_port->sw, src_port); in tb_deactivate_and_free_tunnel()
706 pm_runtime_mark_last_busy(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
707 pm_runtime_put_autosuspend(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
711 tb_reclaim_usb3_bandwidth(tb, src_port, dst_port); in tb_deactivate_and_free_tunnel()
1133 if (tunnel->src_port != nhi_port || tunnel->dst_port != dst_port) in __tb_disconnect_xdomain_paths()