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,
66 struct tb_tunnel *tunnel;
86 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate)
141 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down)
143 struct tb_tunnel *tunnel;
216 * Return: Returns a tb_tunnel on success or NULL on failure.
218 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
221 struct tb_tunnel *tunnel;
421 static int tb_dp_xchg_caps(struct tb_tunnel *tunnel)
507 static int tb_dp_activate(struct tb_tunnel *tunnel, bool active)
544 static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
654 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in)
656 struct tb_tunnel *tunnel;
736 * Return: Returns a tb_tunnel on success or NULL on failure.
738 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
742 struct tb_tunnel *tunnel;
800 static int tb_dma_activate(struct tb_tunnel *tunnel, bool active)
838 * Return: Returns a tb_tunnel on success or NULL on failure.
840 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
845 struct tb_tunnel *tunnel;
896 static int tb_usb3_init(struct tb_tunnel *tunnel)
906 static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate)
920 static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
932 static int tb_usb3_release_unused_bandwidth(struct tb_tunnel *tunnel)
947 static void tb_usb3_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
1033 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down)
1035 struct tb_tunnel *tunnel;
1135 * Return: Returns a tb_tunnel on success or %NULL on failure.
1137 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
1141 struct tb_tunnel *tunnel;
1214 void tb_tunnel_free(struct tb_tunnel *tunnel)
1234 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel)
1253 int tb_tunnel_restart(struct tb_tunnel *tunnel)
1302 int tb_tunnel_activate(struct tb_tunnel *tunnel)
1321 void tb_tunnel_deactivate(struct tb_tunnel *tunnel)
1344 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
1360 static bool tb_tunnel_is_active(const struct tb_tunnel *tunnel)
1386 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
1423 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel)
1450 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,