Lines Matching refs:src_port

111 		if (tunnel->src_port->sw == in->sw &&  in tb_attach_bandwidth_group()
113 group = tunnel->src_port->group; in tb_attach_bandwidth_group()
435 while (parent != tunnel->src_port->sw) { in tb_discover_tunnels()
440 struct tb_port *in = tunnel->src_port; in tb_discover_tunnels()
531 struct tb_port *src_port, in tb_find_tunnel() argument
539 ((src_port && src_port == tunnel->src_port) || in tb_find_tunnel()
549 struct tb_port *src_port, in tb_find_first_usb3_tunnel() argument
556 if (dst_port->sw->config.depth > src_port->sw->config.depth) in tb_find_first_usb3_tunnel()
559 sw = src_port->sw; in tb_find_first_usb3_tunnel()
575 static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_available_bandwidth() argument
584 tb_route(src_port->sw), src_port->port, tb_route(dst_port->sw), in tb_available_bandwidth()
587 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_available_bandwidth()
588 if (tunnel && tunnel->src_port != src_port && in tb_available_bandwidth()
603 tb_for_each_port_on_path(src_port, dst_port, port) { in tb_available_bandwidth()
675 if (tunnel->src_port == src_port && in tb_available_bandwidth()
713 struct tb_port *src_port, in tb_release_unused_usb3_bandwidth() argument
718 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_release_unused_usb3_bandwidth()
722 static void tb_reclaim_usb3_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_reclaim_usb3_bandwidth() argument
728 tunnel = tb_find_first_usb3_tunnel(tb, src_port, dst_port); in tb_reclaim_usb3_bandwidth()
738 ret = tb_available_bandwidth(tb, tunnel->src_port, tunnel->dst_port, in tb_reclaim_usb3_bandwidth()
1022 struct tb_port *src_port, *dst_port; in tb_deactivate_and_free_tunnel() local
1032 src_port = tunnel->src_port; in tb_deactivate_and_free_tunnel()
1037 tb_detach_bandwidth_group(src_port); in tb_deactivate_and_free_tunnel()
1042 tb_switch_dealloc_dp_resource(src_port->sw, src_port); in tb_deactivate_and_free_tunnel()
1046 pm_runtime_mark_last_busy(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
1047 pm_runtime_put_autosuspend(&src_port->sw->dev); in tb_deactivate_and_free_tunnel()
1051 tb_reclaim_usb3_bandwidth(tb, src_port, dst_port); in tb_deactivate_and_free_tunnel()
1189 first_tunnel->src_port, first_tunnel->dst_port); in tb_recalc_estimated_bandwidth_for_group()
1225 tb_reclaim_usb3_bandwidth(tb, first_tunnel->src_port, in tb_recalc_estimated_bandwidth_for_group()
1620 if (tunnel->src_port != nhi_port || tunnel->dst_port != dst_port) in __tb_disconnect_xdomain_paths()
1781 in = tunnel->src_port; in tb_alloc_dp_bandwidth()