Lines Matching refs:tb_port
69 struct tb_port *in) in tb_bandwidth_group_attach_port()
95 tb_attach_bandwidth_group(struct tb_cm *tcm, struct tb_port *in, in tb_attach_bandwidth_group()
96 struct tb_port *out) in tb_attach_bandwidth_group()
131 static void tb_discover_bandwidth_group(struct tb_cm *tcm, struct tb_port *in, in tb_discover_bandwidth_group()
132 struct tb_port *out) in tb_discover_bandwidth_group()
149 static void tb_detach_bandwidth_group(struct tb_port *in) in tb_detach_bandwidth_group()
184 struct tb_port *port; in tb_add_dp_resources()
201 struct tb_port *port, *tmp; in tb_remove_dp_resources()
217 static void tb_discover_dp_resource(struct tb *tb, struct tb_port *port) in tb_discover_dp_resource()
220 struct tb_port *p; in tb_discover_dp_resource()
389 struct tb_port *port; in tb_switch_discover_tunnels()
440 struct tb_port *in = tunnel->src_port; in tb_discover_tunnels()
441 struct tb_port *out = tunnel->dst_port; in tb_discover_tunnels()
452 static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd) in tb_port_configure_xdomain()
459 static void tb_port_unconfigure_xdomain(struct tb_port *port) in tb_port_unconfigure_xdomain()
469 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain()
500 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
503 struct tb_port *port; in tb_find_unused_port()
519 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down()
520 const struct tb_port *port) in tb_find_usb3_down()
522 struct tb_port *down; in tb_find_usb3_down()
531 struct tb_port *src_port, in tb_find_tunnel()
532 struct tb_port *dst_port) in tb_find_tunnel()
549 struct tb_port *src_port, in tb_find_first_usb3_tunnel()
550 struct tb_port *dst_port) in tb_find_first_usb3_tunnel()
552 struct tb_port *port, *usb3_down; in tb_find_first_usb3_tunnel()
575 static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_available_bandwidth()
576 struct tb_port *dst_port, int *available_up, int *available_down) in tb_available_bandwidth()
581 struct tb_port *port; in tb_available_bandwidth()
713 struct tb_port *src_port, in tb_release_unused_usb3_bandwidth()
714 struct tb_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()
723 struct tb_port *dst_port) in tb_reclaim_usb3_bandwidth()
755 struct tb_port *up, *down, *port; in tb_tunnel_usb3()
781 struct tb_port *parent_up; in tb_tunnel_usb3()
836 struct tb_port *port; in tb_create_usb3_tunnels()
859 static void tb_scan_port(struct tb_port *port);
866 struct tb_port *port; in tb_scan_switch()
880 static void tb_scan_port(struct tb_port *port) in tb_scan_port()
883 struct tb_port *upstream_port; in tb_scan_port()
1022 struct tb_port *src_port, *dst_port; in tb_deactivate_and_free_tunnel()
1085 struct tb_port *port; in tb_free_unplugged_children()
1106 static struct tb_port *tb_find_pcie_down(struct tb_switch *sw, in tb_find_pcie_down()
1107 const struct tb_port *port) in tb_find_pcie_down()
1109 struct tb_port *down = NULL; in tb_find_pcie_down()
1160 struct tb_port *in; in tb_recalc_estimated_bandwidth_for_group()
1170 struct tb_port *out; in tb_recalc_estimated_bandwidth_for_group()
1248 static struct tb_port *tb_find_dp_out(struct tb *tb, struct tb_port *in) in tb_find_dp_out()
1250 struct tb_port *host_port, *port; in tb_find_dp_out()
1272 struct tb_port *p; in tb_find_dp_out()
1289 struct tb_port *port, *in, *out; in tb_tunnel_dp()
1419 static void tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port) in tb_dp_resource_unavailable()
1421 struct tb_port *in, *out; in tb_dp_resource_unavailable()
1446 static void tb_dp_resource_available(struct tb *tb, struct tb_port *port) in tb_dp_resource_available()
1449 struct tb_port *p; in tb_dp_resource_available()
1482 struct tb_port *port; in tb_disconnect_and_release_dp()
1485 struct tb_port, list); in tb_disconnect_and_release_dp()
1493 struct tb_port *up; in tb_disconnect_pci()
1513 struct tb_port *up, *down, *port; in tb_tunnel_pci()
1560 struct tb_port *nhi_port, *dst_port; in tb_approve_xdomain_paths()
1609 struct tb_port *nhi_port, *dst_port; in __tb_disconnect_xdomain_paths()
1663 struct tb_port *port; in tb_handle_hotplug()
1775 struct tb_port *in, *out; in tb_alloc_dp_bandwidth()
1888 struct tb_port *in, *out; in tb_handle_dp_bandwidth_request()
2165 struct tb_port *port; in tb_restore_children()
2252 struct tb_port *port; in tb_free_unplugged_xdomains()