Lines Matching full:tunnel

22  * struct tb_tunnel - Tunnel between two ports
24 * @src_port: Source port of the tunnel
25 * @dst_port: Destination port of the tunnel. For discovered incomplete
27 * @paths: All paths required by the tunnel
29 * @init: Optional tunnel specific initialization
30 * @deinit: Optional tunnel specific de-initialization
31 * @activate: Optional tunnel specific activation/deactivation
32 * @consumed_bandwidth: Return how much bandwidth the tunnel consumes
36 * @type: Type of the tunnel
37 * @max_up: Maximum upstream bandwidth (Mb/s) available for the tunnel.
39 * @max_down: Maximum downstream bandwidth (Mb/s) available for the tunnel.
50 int (*init)(struct tb_tunnel *tunnel);
51 void (*deinit)(struct tb_tunnel *tunnel);
52 int (*activate)(struct tb_tunnel *tunnel, bool activate);
53 int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up,
55 int (*release_unused_bandwidth)(struct tb_tunnel *tunnel);
56 void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel,
80 bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
88 void tb_tunnel_free(struct tb_tunnel *tunnel);
89 int tb_tunnel_activate(struct tb_tunnel *tunnel);
90 int tb_tunnel_restart(struct tb_tunnel *tunnel);
91 void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
92 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
93 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
95 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
97 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel);
98 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
102 static inline bool tb_tunnel_is_pci(const struct tb_tunnel *tunnel) in tb_tunnel_is_pci() argument
104 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci()
107 static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel) in tb_tunnel_is_dp() argument
109 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp()
112 static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel) in tb_tunnel_is_dma() argument
114 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma()
117 static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel) in tb_tunnel_is_usb3() argument
119 return tunnel->type == TB_TUNNEL_USB3; in tb_tunnel_is_usb3()