Lines Matching defs:tb_tunnel
22 * struct tb_tunnel - Tunnel between two ports
49 struct tb_tunnel {
55 int (*init)(struct tb_tunnel *tunnel);
56 void (*deinit)(struct tb_tunnel *tunnel);
57 int (*activate)(struct tb_tunnel *tunnel, bool activate);
58 int (*maximum_bandwidth)(struct tb_tunnel *tunnel, int *max_up,
60 int (*allocated_bandwidth)(struct tb_tunnel *tunnel, int *allocated_up,
62 int (*alloc_bandwidth)(struct tb_tunnel *tunnel, int *alloc_up,
64 int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up,
66 int (*release_unused_bandwidth)(struct tb_tunnel *tunnel);
67 void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel,
79 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
81 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
83 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
85 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
88 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
92 bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
94 struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
96 struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
100 void tb_tunnel_free(struct tb_tunnel *tunnel);
101 int tb_tunnel_activate(struct tb_tunnel *tunnel);
102 int tb_tunnel_restart(struct tb_tunnel *tunnel);
103 void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
104 bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
105 bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
107 int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
109 int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
111 int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
113 int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
115 int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel);
116 void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
120 static inline bool tb_tunnel_is_pci(const struct tb_tunnel *tunnel)
125 static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel)
130 static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel)
135 static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel)