Lines Matching refs:tb_tunnel
44 struct tb_tunnel *__tunnel = (tunnel); \
63 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc()
66 struct tb_tunnel *tunnel; in tb_tunnel_alloc()
86 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate) in tb_pci_activate()
141 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_pci()
143 struct tb_tunnel *tunnel; in tb_tunnel_discover_pci()
218 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci()
221 struct tb_tunnel *tunnel; in tb_tunnel_alloc_pci()
421 static int tb_dp_xchg_caps(struct tb_tunnel *tunnel) in tb_dp_xchg_caps()
507 static int tb_dp_activate(struct tb_tunnel *tunnel, bool active) in tb_dp_activate()
544 static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up, in tb_dp_consumed_bandwidth()
654 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in) in tb_tunnel_discover_dp()
656 struct tb_tunnel *tunnel; in tb_tunnel_discover_dp()
738 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, in tb_tunnel_alloc_dp()
742 struct tb_tunnel *tunnel; in tb_tunnel_alloc_dp()
800 static int tb_dma_activate(struct tb_tunnel *tunnel, bool active) in tb_dma_activate()
840 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, in tb_tunnel_alloc_dma()
845 struct tb_tunnel *tunnel; in tb_tunnel_alloc_dma()
896 static int tb_usb3_init(struct tb_tunnel *tunnel) in tb_usb3_init()
906 static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate) in tb_usb3_activate()
920 static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel, in tb_usb3_consumed_bandwidth()
932 static int tb_usb3_release_unused_bandwidth(struct tb_tunnel *tunnel) in tb_usb3_release_unused_bandwidth()
947 static void tb_usb3_reclaim_available_bandwidth(struct tb_tunnel *tunnel, in tb_usb3_reclaim_available_bandwidth()
1033 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_usb3()
1035 struct tb_tunnel *tunnel; in tb_tunnel_discover_usb3()
1137 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_usb3()
1141 struct tb_tunnel *tunnel; in tb_tunnel_alloc_usb3()
1214 void tb_tunnel_free(struct tb_tunnel *tunnel) in tb_tunnel_free()
1234 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel) in tb_tunnel_is_invalid()
1253 int tb_tunnel_restart(struct tb_tunnel *tunnel) in tb_tunnel_restart()
1302 int tb_tunnel_activate(struct tb_tunnel *tunnel) in tb_tunnel_activate()
1321 void tb_tunnel_deactivate(struct tb_tunnel *tunnel) in tb_tunnel_deactivate()
1344 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel, in tb_tunnel_port_on_path()
1360 static bool tb_tunnel_is_active(const struct tb_tunnel *tunnel) in tb_tunnel_is_active()
1386 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up, in tb_tunnel_consumed_bandwidth()
1423 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel) in tb_tunnel_release_unused_bandwidth()
1450 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel, in tb_tunnel_reclaim_available_bandwidth()