Lines Matching refs: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,
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) in tb_tunnel_is_pci() argument
97 return tunnel->type == TB_TUNNEL_PCI; in tb_tunnel_is_pci()
100 static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel) in tb_tunnel_is_dp() argument
102 return tunnel->type == TB_TUNNEL_DP; in tb_tunnel_is_dp()
105 static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel) in tb_tunnel_is_dma() argument
107 return tunnel->type == TB_TUNNEL_DMA; in tb_tunnel_is_dma()
110 static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel) in tb_tunnel_is_usb3() argument
112 return tunnel->type == TB_TUNNEL_USB3; in tb_tunnel_is_usb3()