Lines Matching defs:tb_tunnel

22  * struct tb_tunnel - Tunnel between two ports
43 struct tb_tunnel {
49 int (*init)(struct tb_tunnel *tunnel);
50 int (*activate)(struct tb_tunnel *tunnel, bool activate);
51 int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up,
53 int (*release_unused_bandwidth)(struct tb_tunnel *tunnel);
54 void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel,
65 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down);
66 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
68 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in);
69 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
72 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
76 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down);
77 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
81 void tb_tunnel_free(struct tb_tunnel *tunnel);
82 int tb_tunnel_activate(struct tb_tunnel *tunnel);
83 int tb_tunnel_restart(struct tb_tunnel *tunnel);
84 void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
85 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
86 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
88 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
90 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel);
91 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
95 static inline bool tb_tunnel_is_pci(const struct tb_tunnel *tunnel)
100 static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel)
105 static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel)
110 static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel)