Symbol: tb_tunnel
drivers/thunderbolt/tb.c
1434
struct tb_tunnel *first_tunnel;
drivers/thunderbolt/tb.c
1445
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1545
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1626
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1697
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1722
static void tb_deactivate_and_free_tunnel(struct tb_tunnel *tunnel)
drivers/thunderbolt/tb.c
175
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1778
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1779
struct tb_tunnel *n;
drivers/thunderbolt/tb.c
188
const struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
1906
static void tb_dp_tunnel_active(struct tb_tunnel *tunnel, void *data)
drivers/thunderbolt/tb.c
1976
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2182
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2234
struct tb_tunnel *tunnel, *n;
drivers/thunderbolt/tb.c
2256
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2279
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2325
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2374
struct tb_tunnel *tunnel, *n;
drivers/thunderbolt/tb.c
2538
static int tb_alloc_dp_bandwidth(struct tb_tunnel *tunnel, int *requested_up,
drivers/thunderbolt/tb.c
2740
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
281
static void tb_increase_tmu_accuracy(struct tb_tunnel *tunnel)
drivers/thunderbolt/tb.c
2944
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2945
struct tb_tunnel *n;
drivers/thunderbolt/tb.c
3144
struct tb_tunnel *tunnel, *n;
drivers/thunderbolt/tb.c
3266
struct tb_tunnel *tunnel, *n;
drivers/thunderbolt/tb.c
384
struct tb_tunnel *tunnel = NULL;
drivers/thunderbolt/tb.c
490
static struct tb_tunnel *tb_find_tunnel(struct tb *tb, enum tb_tunnel_type type,
drivers/thunderbolt/tb.c
495
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
508
static struct tb_tunnel *tb_find_first_usb3_tunnel(struct tb *tb,
drivers/thunderbolt/tb.c
559
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
614
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
870
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
880
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
911
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1337
struct tb_tunnel *tunnel1, *tunnel2;
drivers/thunderbolt/test.c
1393
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1431
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1477
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1528
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1607
struct tb_tunnel *tunnel1, *tunnel2, *tunnel3;
drivers/thunderbolt/test.c
1672
struct tb_tunnel *tunnel1, *tunnel2;
drivers/thunderbolt/test.c
1728
struct tb_tunnel *dp_tunnel;
drivers/thunderbolt/test.c
1793
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1836
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1873
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1911
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1976
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2028
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2061
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2094
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2127
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2177
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2221
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2254
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2288
struct tb_tunnel *tunnel1, *tunnel2, *tunnel3;
drivers/thunderbolt/test.c
2383
static struct tb_tunnel *TB_TEST_PCIE_TUNNEL(struct kunit *test,
drivers/thunderbolt/test.c
2387
struct tb_tunnel *pcie_tunnel;
drivers/thunderbolt/test.c
2413
static struct tb_tunnel *TB_TEST_DP_TUNNEL1(struct kunit *test,
drivers/thunderbolt/test.c
2417
struct tb_tunnel *dp_tunnel1;
drivers/thunderbolt/test.c
2450
static struct tb_tunnel *TB_TEST_DP_TUNNEL2(struct kunit *test,
drivers/thunderbolt/test.c
2454
struct tb_tunnel *dp_tunnel2;
drivers/thunderbolt/test.c
2487
static struct tb_tunnel *TB_TEST_USB3_TUNNEL(struct kunit *test,
drivers/thunderbolt/test.c
2491
struct tb_tunnel *usb3_tunnel;
drivers/thunderbolt/test.c
2517
static struct tb_tunnel *TB_TEST_DMA_TUNNEL1(struct kunit *test,
drivers/thunderbolt/test.c
2521
struct tb_tunnel *dma_tunnel1;
drivers/thunderbolt/test.c
2547
static struct tb_tunnel *TB_TEST_DMA_TUNNEL2(struct kunit *test,
drivers/thunderbolt/test.c
2551
struct tb_tunnel *dma_tunnel2;
drivers/thunderbolt/test.c
2579
struct tb_tunnel *pcie_tunnel, *dp_tunnel1, *dp_tunnel2, *usb3_tunnel;
drivers/thunderbolt/test.c
2580
struct tb_tunnel *dma_tunnel1, *dma_tunnel2;
drivers/thunderbolt/tunnel.c
1016
static int tb_dp_pre_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1042
static void tb_dp_post_deactivate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1060
static int tb_dp_wait_dprx(struct tb_tunnel *tunnel, int timeout_msec)
drivers/thunderbolt/tunnel.c
1090
struct tb_tunnel *tunnel = container_of(work, typeof(*tunnel), dprx_work.work);
drivers/thunderbolt/tunnel.c
1114
static int tb_dp_dprx_start(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1134
static void tb_dp_dprx_stop(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1144
static int tb_dp_activate(struct tb_tunnel *tunnel, bool active)
drivers/thunderbolt/tunnel.c
1193
static int tb_dp_bandwidth_mode_maximum_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
1227
static int tb_dp_bandwidth_mode_consumed_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
1263
static int tb_dp_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.c
1301
static int tb_dp_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.c
1337
static int tb_dp_read_cap(struct tb_tunnel *tunnel, unsigned int cap, u32 *rate,
drivers/thunderbolt/tunnel.c
1368
static int tb_dp_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.c
1391
static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.c
1536
static void tb_dp_dump(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1589
struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1592
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
1690
struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1693
void (*callback)(struct tb_tunnel *, void *),
drivers/thunderbolt/tunnel.c
1696
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
178
static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths,
drivers/thunderbolt/tunnel.c
181
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
1878
static void tb_dma_destroy(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1903
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.c
1908
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
197
static void tb_tunnel_get(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1981
bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
drivers/thunderbolt/tunnel.c
2044
static int tb_usb3_pre_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2054
static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate)
drivers/thunderbolt/tunnel.c
206
struct tb_tunnel *tunnel = container_of(kref, typeof(*tunnel), kref);
drivers/thunderbolt/tunnel.c
2068
static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2091
static int tb_usb3_release_unused_bandwidth(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2106
static void tb_usb3_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
220
void tb_tunnel_put(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2205
struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
2208
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
2310
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
2314
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
2382
bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2405
int tb_tunnel_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2458
void tb_tunnel_deactivate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2486
bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2503
static bool tb_tunnel_is_activated(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2520
int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.c
2545
int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.c
2570
int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.c
2603
int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.c
2641
int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2668
void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2680
const char *tb_tunnel_type_name(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
274
static inline void tb_tunnel_set_active(struct tb_tunnel *tunnel, bool active)
drivers/thunderbolt/tunnel.c
287
static inline void tb_tunnel_changed(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
312
static int tb_pci_pre_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
327
static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunnel, bool enable)
drivers/thunderbolt/tunnel.c
361
static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate)
drivers/thunderbolt/tunnel.c
452
struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
455
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
532
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
535
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
815
static int tb_dp_xchg_caps(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
914
static int tb_dp_bandwidth_alloc_mode_enable(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
107
void (*callback)(struct tb_tunnel *tunnel, void *data);
drivers/thunderbolt/tunnel.h
113
struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.h
115
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.h
119
struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.h
121
struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.h
124
void (*callback)(struct tb_tunnel *, void *),
drivers/thunderbolt/tunnel.h
126
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.h
130
bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
drivers/thunderbolt/tunnel.h
132
struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.h
134
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.h
138
void tb_tunnel_put(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
139
int tb_tunnel_activate(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
140
void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
152
static inline bool tb_tunnel_is_active(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
157
bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
158
bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.h
160
int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.h
162
int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.h
164
int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.h
166
int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.h
168
int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
169
void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.h
173
static inline bool tb_tunnel_is_pci(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
178
static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
183
static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
188
static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
193
static inline bool tb_tunnel_direction_downstream(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
222
const char *tb_tunnel_type_name(const struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
226
struct tb_tunnel *__tunnel = (tunnel); \
drivers/thunderbolt/tunnel.h
79
int (*pre_activate)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
80
int (*activate)(struct tb_tunnel *tunnel, bool activate);
drivers/thunderbolt/tunnel.h
81
void (*post_deactivate)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
82
void (*destroy)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
83
int (*maximum_bandwidth)(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.h
85
int (*allocated_bandwidth)(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.h
87
int (*alloc_bandwidth)(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.h
89
int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.h
91
int (*release_unused_bandwidth)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
92
void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel,