Home
last modified time | relevance | path

Searched refs:tb_tunnel (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/drivers/thunderbolt/
H A Dtunnel.h22 * struct tb_tunnel - Tunnel between two ports
49 struct tb_tunnel { struct
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 *tunne
[all...]
H A Dtunnel.c63 struct tb_tunnel *__tunnel = (tunnel); \
134 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc()
137 struct tb_tunnel *tunnel; in tb_tunnel_alloc()
157 static int tb_pci_set_ext_encapsulation(struct tb_tunnel *tunnel, bool enable) in tb_pci_set_ext_encapsulation()
179 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate) in tb_pci_activate()
262 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down, in tb_tunnel_discover_pci()
265 struct tb_tunnel *tunnel; in tb_tunnel_discover_pci()
340 * Return: Returns a tb_tunnel on success or NULL on failure.
342 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci()
345 struct tb_tunnel *tunne in tb_tunnel_alloc_pci()
[all...]
H A Dtb.c99 struct tb_tunnel *tunnel; in tb_attach_bandwidth_group()
235 struct tb_tunnel *tunnel; in tb_discover_dp_resources()
248 const struct tb_tunnel *tunnel; in tb_enable_clx()
325 static void tb_increase_tmu_accuracy(struct tb_tunnel *tunnel) in tb_increase_tmu_accuracy()
392 struct tb_tunnel *tunnel = NULL; in tb_switch_discover_tunnels()
427 struct tb_tunnel *tunnel; in tb_discover_tunnels()
530 static struct tb_tunnel *tb_find_tunnel(struct tb *tb, enum tb_tunnel_type type, in tb_find_tunnel()
535 struct tb_tunnel *tunnel; in tb_find_tunnel()
548 static struct tb_tunnel *tb_find_first_usb3_tunnel(struct tb *tb, in tb_find_first_usb3_tunnel()
580 struct tb_tunnel *tunne in tb_available_bandwidth()
[all...]
H A Dtest.c1337 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_pcie()
1393 struct tb_tunnel *tunnel; in tb_test_tunnel_dp()
1431 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_chain()
1477 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_tree()
1528 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_max_length()
1607 struct tb_tunnel *tunnel1, *tunnel2, *tunnel3; in tb_test_tunnel_3dp()
1671 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_usb3()
1727 struct tb_tunnel *dp_tunnel; in tb_test_tunnel_port_on_path()
1792 struct tb_tunnel *tunnel; in tb_test_tunnel_dma()
1835 struct tb_tunnel *tunne in tb_test_tunnel_dma_rx()
[all...]
/kernel/linux/linux-5.10/drivers/thunderbolt/
H A Dtunnel.h22 * struct tb_tunnel - Tunnel between two ports
43 struct tb_tunnel { struct
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_d
[all...]
H A Dtunnel.c44 struct tb_tunnel *__tunnel = (tunnel); \
63 static struct tb_tunnel *tb_tunnel_alloc(struct tb *tb, size_t npaths, in tb_tunnel_alloc()
66 struct tb_tunnel *tunnel; in tb_tunnel_alloc()
86 static int tb_pci_activate(struct tb_tunnel *tunnel, bool activate) in tb_pci_activate()
141 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_pci()
143 struct tb_tunnel *tunnel; in tb_tunnel_discover_pci()
216 * Return: Returns a tb_tunnel on success or NULL on failure.
218 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci()
221 struct tb_tunnel *tunnel; in tb_tunnel_alloc_pci()
421 static int tb_dp_xchg_caps(struct tb_tunnel *tunne
[all...]
H A Dtb.c112 struct tb_tunnel *tunnel = NULL; in tb_discover_tunnels()
256 static struct tb_tunnel *tb_find_tunnel(struct tb *tb, enum tb_tunnel_type type, in tb_find_tunnel()
261 struct tb_tunnel *tunnel; in tb_find_tunnel()
274 static struct tb_tunnel *tb_find_first_usb3_tunnel(struct tb *tb, in tb_find_first_usb3_tunnel()
306 struct tb_tunnel *tunnel; in tb_available_bandwidth()
398 struct tb_tunnel *tunnel; in tb_release_unused_usb3_bandwidth()
408 struct tb_tunnel *tunnel; in tb_reclaim_usb3_bandwidth()
439 struct tb_tunnel *tunnel; in tb_tunnel_usb3()
667 static void tb_deactivate_and_free_tunnel(struct tb_tunnel *tunnel) in tb_deactivate_and_free_tunnel()
717 struct tb_tunnel *tunne in tb_free_invalid_tunnels()
[all...]
H A Dtest.c1210 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_pcie()
1266 struct tb_tunnel *tunnel; in tb_test_tunnel_dp()
1304 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_chain()
1350 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_tree()
1401 struct tb_tunnel *tunnel; in tb_test_tunnel_dp_max_length()
1479 struct tb_tunnel *tunnel1, *tunnel2; in tb_test_tunnel_usb3()
1535 struct tb_tunnel *dp_tunnel; in tb_test_tunnel_port_on_path()

Completed in 12 milliseconds