Lines Matching refs:src_port

191 			while (parent != tunnel->src_port->sw) {  in tb_discover_tunnels()
197 pm_runtime_get_sync(&tunnel->src_port->sw->dev); in tb_discover_tunnels()
301 struct tb_port *src_port, in tb_find_tunnel() argument
309 ((src_port && src_port == tunnel->src_port) || in tb_find_tunnel()
319 struct tb_port *src_port, in tb_find_first_usb3_tunnel() argument
326 if (dst_port->sw->config.depth > src_port->sw->config.depth) in tb_find_first_usb3_tunnel()
329 sw = src_port->sw; in tb_find_first_usb3_tunnel()
345 static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_available_bandwidth() argument
355 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_available_bandwidth()
369 tb_for_each_port_on_path(src_port, dst_port, port) { in tb_available_bandwidth()
439 struct tb_port *src_port, in tb_release_unused_usb3_bandwidth() argument
444 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_release_unused_usb3_bandwidth()
448 static void tb_reclaim_usb3_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_reclaim_usb3_bandwidth() argument
454 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_reclaim_usb3_bandwidth()
464 ret = tb_available_bandwidth(tb, tunnel->src_port, tunnel->dst_port, in tb_reclaim_usb3_bandwidth()
740 struct tb_port *src_port, *dst_port; in tb_deactivate_and_free_tunnel() local
750 src_port = tunnel->src_port; in tb_deactivate_and_free_tunnel()
759 tb_switch_dealloc_dp_resource(src_port->sw, src_port); in tb_deactivate_and_free_tunnel()
763 pm_runtime_mark_last_busy(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
764 pm_runtime_put_autosuspend(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
768 tb_reclaim_usb3_bandwidth(tb, src_port, dst_port); in tb_deactivate_and_free_tunnel()
1223 if (tunnel->src_port != nhi_port || tunnel->dst_port != dst_port) in __tb_disconnect_xdomain_paths()