Lines Matching refs:tb_tunnel

63 		struct tb_tunnel *__tunnel = (tunnel);                  \
134 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths,
137 struct tb_tunnel *tunnel;
157 static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunnel, bool enable)
179 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate)
262 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
265 struct tb_tunnel *tunnel;
340 * Return: Returns a tb_tunnel on success or NULL on failure.
342 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
345 struct tb_tunnel *tunnel;
576 static int tb_dp_xchg_caps(struct tb_tunnel *tunnel)
672 static int tb_dp_bandwidth_alloc_mode_enable(struct tb_tunnel *tunnel)
774 static int tb_dp_init(struct tb_tunnel *tunnel)
800 static void tb_dp_deinit(struct tb_tunnel *tunnel)
812 static int tb_dp_activate(struct tb_tunnel *tunnel, bool active)
850 static int tb_dp_bandwidth_mode_maximum_bandwidth(struct tb_tunnel *tunnel,
898 static int tb_dp_bandwidth_mode_consumed_bandwidth(struct tb_tunnel *tunnel,
938 static int tb_dp_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
976 static int tb_dp_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
1015 static int tb_dp_read_dprx(struct tb_tunnel *tunnel, u32 *rate, u32 *lanes,
1049 static int tb_dp_read_cap(struct tb_tunnel *tunnel, unsigned int cap, u32 *rate,
1082 static int tb_dp_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
1106 static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
1241 static void tb_dp_dump(struct tb_tunnel *tunnel)
1294 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
1297 struct tb_tunnel *tunnel;
1386 * Return: Returns a tb_tunnel on success or NULL on failure.
1388 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
1392 struct tb_tunnel *tunnel;
1569 static void tb_dma_deinit(struct tb_tunnel *tunnel)
1592 * Return: Returns a tb_tunnel on success or NULL on failure.
1594 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
1599 struct tb_tunnel *tunnel;
1671 bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
1734 static int tb_usb3_init(struct tb_tunnel *tunnel)
1744 static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate)
1758 static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
1772 static int tb_usb3_release_unused_bandwidth(struct tb_tunnel *tunnel)
1787 static void tb_usb3_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
1892 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
1895 struct tb_tunnel *tunnel;
1995 * Return: Returns a tb_tunnel on success or %NULL on failure.
1997 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
2001 struct tb_tunnel *tunnel;
2074 void tb_tunnel_free(struct tb_tunnel *tunnel)
2097 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel)
2116 int tb_tunnel_restart(struct tb_tunnel *tunnel)
2165 int tb_tunnel_activate(struct tb_tunnel *tunnel)
2184 void tb_tunnel_deactivate(struct tb_tunnel *tunnel)
2207 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
2223 static bool tb_tunnel_is_active(const struct tb_tunnel *tunnel)
2247 int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
2268 int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
2291 int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
2315 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
2352 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel)
2379 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,