Lines Matching refs:tb_port
75 struct tb_port *port; in tb_add_dp_resources()
92 struct tb_port *port, *tmp; in tb_remove_dp_resources()
108 static void tb_discover_dp_resource(struct tb *tb, struct tb_port *port) in tb_discover_dp_resource()
111 struct tb_port *p; in tb_discover_dp_resource()
139 struct tb_port *port; in tb_switch_discover_tunnels()
203 static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd) in tb_port_configure_xdomain()
210 static void tb_port_unconfigure_xdomain(struct tb_port *port) in tb_port_unconfigure_xdomain()
220 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain()
270 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
273 struct tb_port *port; in tb_find_unused_port()
289 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down()
290 const struct tb_port *port) in tb_find_usb3_down()
292 struct tb_port *down; in tb_find_usb3_down()
301 struct tb_port *src_port, in tb_find_tunnel()
302 struct tb_port *dst_port) in tb_find_tunnel()
319 struct tb_port *src_port, in tb_find_first_usb3_tunnel()
320 struct tb_port *dst_port) in tb_find_first_usb3_tunnel()
322 struct tb_port *port, *usb3_down; in tb_find_first_usb3_tunnel()
345 static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port, in tb_available_bandwidth()
346 struct tb_port *dst_port, int *available_up, int *available_down) in tb_available_bandwidth()
351 struct tb_port *port; in tb_available_bandwidth()
439 struct tb_port *src_port, in tb_release_unused_usb3_bandwidth()
440 struct tb_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()
449 struct tb_port *dst_port) in tb_reclaim_usb3_bandwidth()
481 struct tb_port *up, *down, *port; in tb_tunnel_usb3()
507 struct tb_port *parent_up; in tb_tunnel_usb3()
562 struct tb_port *port; in tb_create_usb3_tunnels()
585 static void tb_scan_port(struct tb_port *port);
592 struct tb_port *port; in tb_scan_switch()
606 static void tb_scan_port(struct tb_port *port) in tb_scan_port()
609 struct tb_port *upstream_port; in tb_scan_port()
750 struct tb_port *src_port, *dst_port; in tb_deactivate_and_free_tunnel()
812 struct tb_port *port; in tb_free_unplugged_children()
833 static struct tb_port *tb_find_pcie_down(struct tb_switch *sw, in tb_find_pcie_down()
834 const struct tb_port *port) in tb_find_pcie_down()
836 struct tb_port *down = NULL; in tb_find_pcie_down()
882 static struct tb_port *tb_find_dp_out(struct tb *tb, struct tb_port *in) in tb_find_dp_out()
884 struct tb_port *host_port, *port; in tb_find_dp_out()
906 struct tb_port *p; in tb_find_dp_out()
923 struct tb_port *port, *in, *out; in tb_tunnel_dp()
1046 static void tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port) in tb_dp_resource_unavailable()
1048 struct tb_port *in, *out; in tb_dp_resource_unavailable()
1072 static void tb_dp_resource_available(struct tb *tb, struct tb_port *port) in tb_dp_resource_available()
1075 struct tb_port *p; in tb_dp_resource_available()
1108 struct tb_port *port; in tb_disconnect_and_release_dp()
1111 struct tb_port, list); in tb_disconnect_and_release_dp()
1119 struct tb_port *up; in tb_disconnect_pci()
1139 struct tb_port *up, *down, *port; in tb_tunnel_pci()
1188 struct tb_port *nhi_port, *dst_port; in tb_approve_xdomain_paths()
1222 struct tb_port *nhi_port, *dst_port; in __tb_disconnect_xdomain_paths()
1269 struct tb_port *port; in tb_handle_hotplug()
1521 struct tb_port *port; in tb_restore_children()
1623 struct tb_port *port; in tb_free_unplugged_xdomains()