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
2533
static int tb_alloc_dp_bandwidth(struct tb_tunnel *tunnel, int *requested_up,
drivers/thunderbolt/tb.c
2735
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
281
static void tb_increase_tmu_accuracy(struct tb_tunnel *tunnel)
drivers/thunderbolt/tb.c
2936
struct tb_tunnel *tunnel;
drivers/thunderbolt/tb.c
2937
struct tb_tunnel *n;
drivers/thunderbolt/tb.c
3116
struct tb_tunnel *tunnel, *n;
drivers/thunderbolt/tb.c
3259
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
1671
struct tb_tunnel *tunnel1, *tunnel2;
drivers/thunderbolt/test.c
1727
struct tb_tunnel *dp_tunnel;
drivers/thunderbolt/test.c
1792
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1835
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1872
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1910
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
1975
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2027
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2060
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2093
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2126
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2176
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2220
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2253
struct tb_tunnel *tunnel;
drivers/thunderbolt/test.c
2287
struct tb_tunnel *tunnel1, *tunnel2, *tunnel3;
drivers/thunderbolt/test.c
2382
static struct tb_tunnel *TB_TEST_PCIE_TUNNEL(struct kunit *test,
drivers/thunderbolt/test.c
2386
struct tb_tunnel *pcie_tunnel;
drivers/thunderbolt/test.c
2412
static struct tb_tunnel *TB_TEST_DP_TUNNEL1(struct kunit *test,
drivers/thunderbolt/test.c
2416
struct tb_tunnel *dp_tunnel1;
drivers/thunderbolt/test.c
2449
static struct tb_tunnel *TB_TEST_DP_TUNNEL2(struct kunit *test,
drivers/thunderbolt/test.c
2453
struct tb_tunnel *dp_tunnel2;
drivers/thunderbolt/test.c
2486
static struct tb_tunnel *TB_TEST_USB3_TUNNEL(struct kunit *test,
drivers/thunderbolt/test.c
2490
struct tb_tunnel *usb3_tunnel;
drivers/thunderbolt/test.c
2516
static struct tb_tunnel *TB_TEST_DMA_TUNNEL1(struct kunit *test,
drivers/thunderbolt/test.c
2520
struct tb_tunnel *dma_tunnel1;
drivers/thunderbolt/test.c
2546
static struct tb_tunnel *TB_TEST_DMA_TUNNEL2(struct kunit *test,
drivers/thunderbolt/test.c
2550
struct tb_tunnel *dma_tunnel2;
drivers/thunderbolt/test.c
2578
struct tb_tunnel *pcie_tunnel, *dp_tunnel1, *dp_tunnel2, *usb3_tunnel;
drivers/thunderbolt/test.c
2579
struct tb_tunnel *dma_tunnel1, *dma_tunnel2;
drivers/thunderbolt/tunnel.c
1013
static void tb_dp_post_deactivate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1031
static int tb_dp_wait_dprx(struct tb_tunnel *tunnel, int timeout_msec)
drivers/thunderbolt/tunnel.c
1061
struct tb_tunnel *tunnel = container_of(work, typeof(*tunnel), dprx_work.work);
drivers/thunderbolt/tunnel.c
1085
static int tb_dp_dprx_start(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1105
static void tb_dp_dprx_stop(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1115
static int tb_dp_activate(struct tb_tunnel *tunnel, bool active)
drivers/thunderbolt/tunnel.c
1164
static int tb_dp_bandwidth_mode_maximum_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
1198
static int tb_dp_bandwidth_mode_consumed_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
1234
static int tb_dp_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.c
1272
static int tb_dp_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.c
1308
static int tb_dp_read_cap(struct tb_tunnel *tunnel, unsigned int cap, u32 *rate,
drivers/thunderbolt/tunnel.c
1339
static int tb_dp_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.c
1362
static int tb_dp_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.c
1507
static void tb_dp_dump(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1560
struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1563
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
1661
struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1664
void (*callback)(struct tb_tunnel *, void *),
drivers/thunderbolt/tunnel.c
1667
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
1849
static void tb_dma_destroy(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
1874
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.c
1879
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
1952
bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
drivers/thunderbolt/tunnel.c
2015
static int tb_usb3_pre_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
202
static void tb_tunnel_get(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2025
static int tb_usb3_activate(struct tb_tunnel *tunnel, bool activate)
drivers/thunderbolt/tunnel.c
2039
static int tb_usb3_consumed_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2062
static int tb_usb3_release_unused_bandwidth(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2077
static void tb_usb3_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
211
struct tb_tunnel *tunnel = container_of(kref, typeof(*tunnel), kref);
drivers/thunderbolt/tunnel.c
2176
struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
2179
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
226
void tb_tunnel_put(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2281
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
2285
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
2353
bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2376
int tb_tunnel_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2429
void tb_tunnel_deactivate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2457
bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2474
static bool tb_tunnel_is_activated(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2491
int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.c
2516
int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.c
2541
int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.c
2574
int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.c
2612
int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
2639
void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.c
2651
const char *tb_tunnel_type_name(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
280
static inline void tb_tunnel_set_active(struct tb_tunnel *tunnel, bool active)
drivers/thunderbolt/tunnel.c
293
static inline void tb_tunnel_changed(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
299
static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunnel, bool enable)
drivers/thunderbolt/tunnel.c
333
static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate)
drivers/thunderbolt/tunnel.c
424
struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
427
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
504
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
507
struct tb_tunnel *tunnel;
drivers/thunderbolt/tunnel.c
786
static int tb_dp_xchg_caps(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
885
static int tb_dp_bandwidth_alloc_mode_enable(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.c
987
static int tb_dp_pre_activate(struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
108
void (*callback)(struct tb_tunnel *tunnel, void *data);
drivers/thunderbolt/tunnel.h
112
struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.h
114
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.h
118
struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.h
120
struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.h
123
void (*callback)(struct tb_tunnel *, void *),
drivers/thunderbolt/tunnel.h
125
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.h
129
bool tb_tunnel_match_dma(const struct tb_tunnel *tunnel, int transmit_path,
drivers/thunderbolt/tunnel.h
131
struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.h
133
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.h
137
void tb_tunnel_put(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
138
int tb_tunnel_activate(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
139
void tb_tunnel_deactivate(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
151
static inline bool tb_tunnel_is_active(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
156
bool tb_tunnel_is_invalid(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
157
bool tb_tunnel_port_on_path(const struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.h
159
int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.h
161
int tb_tunnel_allocated_bandwidth(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.h
163
int tb_tunnel_alloc_bandwidth(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.h
165
int tb_tunnel_consumed_bandwidth(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.h
167
int tb_tunnel_release_unused_bandwidth(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
168
void tb_tunnel_reclaim_available_bandwidth(struct tb_tunnel *tunnel,
drivers/thunderbolt/tunnel.h
172
static inline bool tb_tunnel_is_pci(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
177
static inline bool tb_tunnel_is_dp(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
182
static inline bool tb_tunnel_is_dma(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
187
static inline bool tb_tunnel_is_usb3(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
192
static inline bool tb_tunnel_direction_downstream(const struct tb_tunnel *tunnel)
drivers/thunderbolt/tunnel.h
221
const char *tb_tunnel_type_name(const struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
225
struct tb_tunnel *__tunnel = (tunnel); \
drivers/thunderbolt/tunnel.h
80
int (*pre_activate)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
81
int (*activate)(struct tb_tunnel *tunnel, bool activate);
drivers/thunderbolt/tunnel.h
82
void (*post_deactivate)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
83
void (*destroy)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
84
int (*maximum_bandwidth)(struct tb_tunnel *tunnel, int *max_up,
drivers/thunderbolt/tunnel.h
86
int (*allocated_bandwidth)(struct tb_tunnel *tunnel, int *allocated_up,
drivers/thunderbolt/tunnel.h
88
int (*alloc_bandwidth)(struct tb_tunnel *tunnel, int *alloc_up,
drivers/thunderbolt/tunnel.h
90
int (*consumed_bandwidth)(struct tb_tunnel *tunnel, int *consumed_up,
drivers/thunderbolt/tunnel.h
92
int (*release_unused_bandwidth)(struct tb_tunnel *tunnel);
drivers/thunderbolt/tunnel.h
93
void (*reclaim_available_bandwidth)(struct tb_tunnel *tunnel,