drivers/thunderbolt/acpi.c
188
static int tb_acpi_retimer_set_power(struct tb_port *port, bool power)
drivers/thunderbolt/acpi.c
263
int tb_acpi_power_on_retimers(struct tb_port *port)
drivers/thunderbolt/acpi.c
277
int tb_acpi_power_off_retimers(struct tb_port *port)
drivers/thunderbolt/acpi.c
297
struct tb_port *port = tb_switch_downstream_port(sw);
drivers/thunderbolt/cap.c
124
int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
drivers/thunderbolt/cap.c
18
static int tb_port_enable_tmu(struct tb_port *port, bool enable)
drivers/thunderbolt/cap.c
47
static void tb_port_dummy_read(struct tb_port *port)
drivers/thunderbolt/cap.c
76
int tb_port_next_cap(struct tb_port *port, unsigned int offset)
drivers/thunderbolt/cap.c
91
static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
drivers/thunderbolt/clx.c
103
static int tb_port_clx_set(struct tb_port *port, unsigned int clx, bool enable)
drivers/thunderbolt/clx.c
132
static int tb_port_clx_disable(struct tb_port *port, unsigned int clx)
drivers/thunderbolt/clx.c
137
static int tb_port_clx_enable(struct tb_port *port, unsigned int clx)
drivers/thunderbolt/clx.c
142
static int tb_port_clx(struct tb_port *port)
drivers/thunderbolt/clx.c
173
bool tb_port_clx_is_enabled(struct tb_port *port, unsigned int clx)
drivers/thunderbolt/clx.c
213
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
242
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
325
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
38
static int tb_port_pm_secondary_set(struct tb_port *port, bool secondary)
drivers/thunderbolt/clx.c
401
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
57
static int tb_port_pm_secondary_enable(struct tb_port *port)
drivers/thunderbolt/clx.c
62
static int tb_port_pm_secondary_disable(struct tb_port *port)
drivers/thunderbolt/clx.c
68
static bool tb_port_clx_supported(struct tb_port *port, unsigned int clx)
drivers/thunderbolt/debugfs.c
1223
struct tb_port *port = margining->port;
drivers/thunderbolt/debugfs.c
1600
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
1627
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
1644
static struct tb_margining *margining_alloc(struct tb_port *port,
drivers/thunderbolt/debugfs.c
1761
static void margining_port_init(struct tb_port *port)
drivers/thunderbolt/debugfs.c
1776
static void margining_port_remove(struct tb_port *port)
drivers/thunderbolt/debugfs.c
1795
struct tb_port *upstream, *downstream;
drivers/thunderbolt/debugfs.c
1812
struct tb_port *upstream, *downstream;
drivers/thunderbolt/debugfs.c
1830
struct tb_port *downstream;
drivers/thunderbolt/debugfs.c
1841
struct tb_port *downstream;
drivers/thunderbolt/debugfs.c
1870
static int port_clear_all_counters(struct tb_port *port)
drivers/thunderbolt/debugfs.c
1891
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
1935
struct tb_port *port, unsigned int cap,
drivers/thunderbolt/debugfs.c
1958
struct tb_port *port, unsigned int cap, u8 cap_id,
drivers/thunderbolt/debugfs.c
1988
static void port_cap_show(struct tb_port *port, struct seq_file *s,
drivers/thunderbolt/debugfs.c
207
static int path_write_one(struct tb_port *port, u32 val, u32 offset)
drivers/thunderbolt/debugfs.c
2071
static void port_caps_show(struct tb_port *port, struct seq_file *s)
drivers/thunderbolt/debugfs.c
2082
static int port_basic_regs_show(struct tb_port *port, struct seq_file *s)
drivers/thunderbolt/debugfs.c
2099
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
221
static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port,
drivers/thunderbolt/debugfs.c
2233
static int path_show_one(struct tb_port *port, struct seq_file *s, int hopid)
drivers/thunderbolt/debugfs.c
2255
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
2294
static int counter_set_regs_show(struct tb_port *port, struct seq_file *s,
drivers/thunderbolt/debugfs.c
2318
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
2348
static int sb_regs_show(struct tb_port *port, const struct sb_reg *sb_regs,
drivers/thunderbolt/debugfs.c
2378
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
2411
struct tb_port *port;
drivers/thunderbolt/debugfs.c
277
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
286
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
330
static ssize_t sb_regs_write(struct tb_port *port, const struct sb_reg *sb_regs,
drivers/thunderbolt/debugfs.c
385
struct tb_port *port = s->private;
drivers/thunderbolt/debugfs.c
490
struct tb_port *port;
drivers/thunderbolt/debugfs.c
522
struct tb_port *port = margining->port;
drivers/thunderbolt/debugfs.c
814
struct tb_port *port = margining->port;
drivers/thunderbolt/debugfs.c
856
struct tb_port *port = margining->port;
drivers/thunderbolt/eeprom.c
365
struct tb_port *port;
drivers/thunderbolt/icm.c
2044
struct tb_port *port;
drivers/thunderbolt/icm.c
2089
struct tb_port *port;
drivers/thunderbolt/icm.c
385
struct tb_port *nhi_port, *dst_port;
drivers/thunderbolt/lc.c
141
int tb_lc_configure_port(struct tb_port *port)
drivers/thunderbolt/lc.c
154
void tb_lc_unconfigure_port(struct tb_port *port)
drivers/thunderbolt/lc.c
159
static int tb_lc_set_xdomain_configured(struct tb_port *port, bool configure)
drivers/thunderbolt/lc.c
199
int tb_lc_configure_xdomain(struct tb_port *port)
drivers/thunderbolt/lc.c
210
void tb_lc_unconfigure_xdomain(struct tb_port *port)
drivers/thunderbolt/lc.c
225
int tb_lc_start_lane_initialization(struct tb_port *port)
drivers/thunderbolt/lc.c
259
bool tb_lc_is_clx_supported(struct tb_port *port)
drivers/thunderbolt/lc.c
283
bool tb_lc_is_usb_plugged(struct tb_port *port)
drivers/thunderbolt/lc.c
310
bool tb_lc_is_xhci_connected(struct tb_port *port)
drivers/thunderbolt/lc.c
330
static int __tb_lc_xhci_connect(struct tb_port *port, bool connect)
drivers/thunderbolt/lc.c
34
static int find_port_lc_cap(struct tb_port *port)
drivers/thunderbolt/lc.c
364
int tb_lc_xhci_connect(struct tb_port *port)
drivers/thunderbolt/lc.c
383
void tb_lc_xhci_disconnect(struct tb_port *port)
drivers/thunderbolt/lc.c
517
struct tb_port *up;
drivers/thunderbolt/lc.c
537
struct tb_port *in)
drivers/thunderbolt/lc.c
539
struct tb_port *port;
drivers/thunderbolt/lc.c
588
bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/lc.c
618
int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/lc.c
62
int tb_lc_reset_port(struct tb_port *port)
drivers/thunderbolt/lc.c
667
int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/lc.c
96
static int tb_lc_set_port_configured(struct tb_port *port, bool configured)
drivers/thunderbolt/path.c
101
struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
drivers/thunderbolt/path.c
102
struct tb_port *dst, int dst_hopid,
drivers/thunderbolt/path.c
103
struct tb_port **last, const char *name,
drivers/thunderbolt/path.c
106
struct tb_port *out_port;
drivers/thunderbolt/path.c
110
struct tb_port *p;
drivers/thunderbolt/path.c
18
const struct tb_port *port = hop->in_port;
drivers/thunderbolt/path.c
238
struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
drivers/thunderbolt/path.c
239
struct tb_port *dst, int dst_hopid, int link_nr,
drivers/thunderbolt/path.c
242
struct tb_port *in_port, *out_port, *first_port, *last_port;
drivers/thunderbolt/path.c
34
static struct tb_port *tb_path_find_dst_port(struct tb_port *src, int src_hopid,
drivers/thunderbolt/path.c
37
struct tb_port *port, *out_port = NULL;
drivers/thunderbolt/path.c
392
static int __tb_path_deactivate_hop(struct tb_port *port, int hop_index,
drivers/thunderbolt/path.c
459
int tb_path_deactivate_hop(struct tb_port *port, int hop_index)
drivers/thunderbolt/path.c
621
bool tb_path_port_on_path(const struct tb_path *path, const struct tb_port *port)
drivers/thunderbolt/path.c
65
static int tb_path_find_src_hopid(struct tb_port *src,
drivers/thunderbolt/path.c
66
const struct tb_port *dst, int dst_hopid)
drivers/thunderbolt/path.c
68
struct tb_port *out;
drivers/thunderbolt/quirks.c
32
struct tb_port *port;
drivers/thunderbolt/retimer.c
197
static void tb_retimer_nvm_authenticate_status(struct tb_port *port, u32 *status)
drivers/thunderbolt/retimer.c
214
static void tb_retimer_set_inbound_sbtx(struct tb_port *port)
drivers/thunderbolt/retimer.c
231
static void tb_retimer_unset_inbound_sbtx(struct tb_port *port)
drivers/thunderbolt/retimer.c
389
static int tb_retimer_add(struct tb_port *port, u8 index, u32 auth_status,
drivers/thunderbolt/retimer.c
474
const struct tb_port *port;
drivers/thunderbolt/retimer.c
486
static struct tb_retimer *tb_port_find_retimer(struct tb_port *port, u8 index)
drivers/thunderbolt/retimer.c
510
int tb_retimer_scan(struct tb_port *port, bool add)
drivers/thunderbolt/retimer.c
579
struct tb_port *port = data;
drivers/thunderbolt/retimer.c
592
void tb_retimer_remove_all(struct tb_port *port)
drivers/thunderbolt/switch.c
1035
int tb_port_set_link_width(struct tb_port *port, enum tb_link_width width)
drivers/thunderbolt/switch.c
1089
static int tb_port_set_lane_bonding(struct tb_port *port, bool bonding)
drivers/thunderbolt/switch.c
1123
int tb_port_lane_bonding_enable(struct tb_port *port)
drivers/thunderbolt/switch.c
1181
void tb_port_lane_bonding_disable(struct tb_port *port)
drivers/thunderbolt/switch.c
1207
int tb_port_wait_for_link_width(struct tb_port *port, unsigned int width,
drivers/thunderbolt/switch.c
1238
static int tb_port_do_update_credits(struct tb_port *port)
drivers/thunderbolt/switch.c
1273
int tb_port_update_credits(struct tb_port *port)
drivers/thunderbolt/switch.c
1286
static int tb_port_start_lane_initialization(struct tb_port *port)
drivers/thunderbolt/switch.c
1301
static bool tb_port_resume(struct tb_port *port)
drivers/thunderbolt/switch.c
1330
bool tb_port_is_enabled(struct tb_port *port)
drivers/thunderbolt/switch.c
1356
bool tb_usb3_port_is_enabled(struct tb_port *port)
drivers/thunderbolt/switch.c
1374
int tb_usb3_port_enable(struct tb_port *port, bool enable)
drivers/thunderbolt/switch.c
1391
bool tb_pci_port_is_enabled(struct tb_port *port)
drivers/thunderbolt/switch.c
1409
int tb_pci_port_enable(struct tb_port *port, bool enable)
drivers/thunderbolt/switch.c
1426
int tb_dp_port_hpd_is_active(struct tb_port *port)
drivers/thunderbolt/switch.c
1447
int tb_dp_port_hpd_clear(struct tb_port *port)
drivers/thunderbolt/switch.c
1475
int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
drivers/thunderbolt/switch.c
1509
bool tb_dp_port_is_enabled(struct tb_port *port)
drivers/thunderbolt/switch.c
1530
int tb_dp_port_enable(struct tb_port *port, bool enable)
drivers/thunderbolt/switch.c
1588
struct tb_port *port;
drivers/thunderbolt/switch.c
2296
struct tb_port *port;
drivers/thunderbolt/switch.c
2328
const struct tb_port *port;
drivers/thunderbolt/switch.c
2466
struct tb_port *down;
drivers/thunderbolt/switch.c
2825
struct tb_port *port = &sw->ports[i];
drivers/thunderbolt/switch.c
2826
struct tb_port *subordinate;
drivers/thunderbolt/switch.c
2852
const struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
2864
struct tb_port *up;
drivers/thunderbolt/switch.c
2897
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
2951
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3003
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3035
struct tb_port *up, *down, *port;
drivers/thunderbolt/switch.c
3078
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3128
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3199
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3228
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3267
struct tb_port *port;
drivers/thunderbolt/switch.c
3427
struct tb_port *port;
drivers/thunderbolt/switch.c
3468
struct tb_port *port;
drivers/thunderbolt/switch.c
3522
struct tb_port *port;
drivers/thunderbolt/switch.c
3625
struct tb_port *port;
drivers/thunderbolt/switch.c
3673
bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3690
int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3716
void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3855
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/switch.c
3858
struct tb_port *port;
drivers/thunderbolt/switch.c
3963
struct tb_port *port1, *port3;
drivers/thunderbolt/switch.c
4008
struct tb_port *port1 = &sw->ports[1];
drivers/thunderbolt/switch.c
4009
struct tb_port *port3 = &sw->ports[3];
drivers/thunderbolt/switch.c
446
static void tb_dump_port(struct tb *tb, const struct tb_port *port)
drivers/thunderbolt/switch.c
471
int tb_port_state(struct tb_port *port)
drivers/thunderbolt/switch.c
502
int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged)
drivers/thunderbolt/switch.c
571
int tb_port_add_nfc_credits(struct tb_port *port, int credits)
drivers/thunderbolt/switch.c
608
int tb_port_clear_counter(struct tb_port *port, int counter)
drivers/thunderbolt/switch.c
624
int tb_port_unlock(struct tb_port *port)
drivers/thunderbolt/switch.c
635
static int __tb_port_enable(struct tb_port *port, bool enable)
drivers/thunderbolt/switch.c
671
int tb_port_enable(struct tb_port *port)
drivers/thunderbolt/switch.c
684
int tb_port_disable(struct tb_port *port)
drivers/thunderbolt/switch.c
689
static int tb_port_reset(struct tb_port *port)
drivers/thunderbolt/switch.c
704
static int tb_init_port(struct tb_port *port)
drivers/thunderbolt/switch.c
767
static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid,
drivers/thunderbolt/switch.c
803
int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid)
drivers/thunderbolt/switch.c
817
int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid)
drivers/thunderbolt/switch.c
827
void tb_port_release_in_hopid(struct tb_port *port, int hopid)
drivers/thunderbolt/switch.c
837
void tb_port_release_out_hopid(struct tb_port *port, int hopid)
drivers/thunderbolt/switch.c
864
struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
drivers/thunderbolt/switch.c
865
struct tb_port *prev)
drivers/thunderbolt/switch.c
867
struct tb_port *next;
drivers/thunderbolt/switch.c
909
int tb_port_get_link_speed(struct tb_port *port)
drivers/thunderbolt/switch.c
945
int tb_port_get_link_generation(struct tb_port *port)
drivers/thunderbolt/switch.c
970
int tb_port_get_link_width(struct tb_port *port)
drivers/thunderbolt/switch.c
998
bool tb_port_width_supported(struct tb_port *port, unsigned int width)
drivers/thunderbolt/tb.c
1039
static int tb_configure_asym(struct tb *tb, struct tb_port *src_port,
drivers/thunderbolt/tb.c
1040
struct tb_port *dst_port, int requested_up,
drivers/thunderbolt/tb.c
1045
struct tb_port *up;
drivers/thunderbolt/tb.c
1059
struct tb_port *down = tb_switch_downstream_port(up->sw);
drivers/thunderbolt/tb.c
114
struct tb_port *port;
drivers/thunderbolt/tb.c
1147
static int tb_configure_sym(struct tb *tb, struct tb_port *src_port,
drivers/thunderbolt/tb.c
1148
struct tb_port *dst_port, bool keep_asym)
drivers/thunderbolt/tb.c
1152
struct tb_port *up;
drivers/thunderbolt/tb.c
1232
static void tb_configure_link(struct tb_port *down, struct tb_port *up,
drivers/thunderbolt/tb.c
1260
struct tb_port *host_port;
drivers/thunderbolt/tb.c
1275
struct tb_port *port;
drivers/thunderbolt/tb.c
1289
static void tb_scan_port(struct tb_port *port)
drivers/thunderbolt/tb.c
1292
struct tb_port *upstream_port;
drivers/thunderbolt/tb.c
141
struct tb_port *port, *tmp;
drivers/thunderbolt/tb.c
1436
struct tb_port *in;
drivers/thunderbolt/tb.c
1446
struct tb_port *out;
drivers/thunderbolt/tb.c
1546
struct tb_port *in;
drivers/thunderbolt/tb.c
1561
in = list_first_entry(&group->ports, struct tb_port, group_list);
drivers/thunderbolt/tb.c
157
static void tb_discover_dp_resource(struct tb *tb, struct tb_port *port)
drivers/thunderbolt/tb.c
1596
struct tb_port *in)
drivers/thunderbolt/tb.c
160
struct tb_port *p;
drivers/thunderbolt/tb.c
1622
tb_attach_bandwidth_group(struct tb_cm *tcm, struct tb_port *in,
drivers/thunderbolt/tb.c
1623
struct tb_port *out)
drivers/thunderbolt/tb.c
1658
static void tb_discover_bandwidth_group(struct tb_cm *tcm, struct tb_port *in,
drivers/thunderbolt/tb.c
1659
struct tb_port *out)
drivers/thunderbolt/tb.c
1676
static void tb_detach_bandwidth_group(struct tb_port *in)
drivers/thunderbolt/tb.c
1710
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tb.c
1711
struct tb_port *out = tunnel->dst_port;
drivers/thunderbolt/tb.c
1724
struct tb_port *src_port, *dst_port;
drivers/thunderbolt/tb.c
1792
struct tb_port *port;
drivers/thunderbolt/tb.c
1814
static struct tb_port *tb_find_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/tb.c
1815
const struct tb_port *port)
drivers/thunderbolt/tb.c
1817
struct tb_port *down = NULL;
drivers/thunderbolt/tb.c
1863
static struct tb_port *tb_find_dp_out(struct tb *tb, struct tb_port *in)
drivers/thunderbolt/tb.c
1865
struct tb_port *host_port, *port;
drivers/thunderbolt/tb.c
1893
struct tb_port *p;
drivers/thunderbolt/tb.c
1908
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tb.c
1909
struct tb_port *out = tunnel->dst_port;
drivers/thunderbolt/tb.c
1946
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tb.c
1971
static void tb_tunnel_one_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tb.c
1972
struct tb_port *out)
drivers/thunderbolt/tb.c
2066
struct tb_port *port, *in, *out;
drivers/thunderbolt/tb.c
2104
static void tb_enter_redrive(struct tb_port *port)
drivers/thunderbolt/tb.c
2129
static void tb_exit_redrive(struct tb_port *port)
drivers/thunderbolt/tb.c
2149
struct tb_port *port;
drivers/thunderbolt/tb.c
2161
struct tb_port *port;
drivers/thunderbolt/tb.c
2178
static void tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port,
drivers/thunderbolt/tb.c
2181
struct tb_port *in, *out;
drivers/thunderbolt/tb.c
2209
static void tb_dp_resource_available(struct tb *tb, struct tb_port *port)
drivers/thunderbolt/tb.c
2212
struct tb_port *p;
drivers/thunderbolt/tb.c
2246
struct tb_port *port;
drivers/thunderbolt/tb.c
2249
struct tb_port, list);
drivers/thunderbolt/tb.c
2257
struct tb_port *up;
drivers/thunderbolt/tb.c
2277
struct tb_port *up, *down, *port;
drivers/thunderbolt/tb.c
2324
struct tb_port *nhi_port, *dst_port;
drivers/thunderbolt/tb.c
2373
struct tb_port *nhi_port, *dst_port;
drivers/thunderbolt/tb.c
2427
struct tb_port *port;
drivers/thunderbolt/tb.c
2541
struct tb_port *in, *out;
drivers/thunderbolt/tb.c
2739
struct tb_port *in;
drivers/thunderbolt/tb.c
3083
struct tb_port *port;
drivers/thunderbolt/tb.c
3176
struct tb_port *port;
drivers/thunderbolt/tb.c
381
struct tb_port *port;
drivers/thunderbolt/tb.c
416
static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd)
drivers/thunderbolt/tb.c
423
static void tb_port_unconfigure_xdomain(struct tb_port *port)
drivers/thunderbolt/tb.c
431
static void tb_scan_xdomain(struct tb_port *port)
drivers/thunderbolt/tb.c
460
static struct tb_port *tb_find_unused_port(struct tb_switch *sw,
drivers/thunderbolt/tb.c
463
struct tb_port *port;
drivers/thunderbolt/tb.c
479
static struct tb_port *tb_find_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/tb.c
480
const struct tb_port *port)
drivers/thunderbolt/tb.c
482
struct tb_port *down;
drivers/thunderbolt/tb.c
491
struct tb_port *src_port,
drivers/thunderbolt/tb.c
492
struct tb_port *dst_port)
drivers/thunderbolt/tb.c
509
struct tb_port *src_port,
drivers/thunderbolt/tb.c
510
struct tb_port *dst_port)
drivers/thunderbolt/tb.c
512
struct tb_port *port, *usb3_down;
drivers/thunderbolt/tb.c
552
struct tb_port *src_port,
drivers/thunderbolt/tb.c
553
struct tb_port *dst_port,
drivers/thunderbolt/tb.c
554
struct tb_port *port,
drivers/thunderbolt/tb.c
606
struct tb_port *src_port,
drivers/thunderbolt/tb.c
607
struct tb_port *dst_port,
drivers/thunderbolt/tb.c
608
struct tb_port *port,
drivers/thunderbolt/tb.c
675
static bool tb_asym_supported(struct tb_port *src_port, struct tb_port *dst_port,
drivers/thunderbolt/tb.c
676
struct tb_port *port)
drivers/thunderbolt/tb.c
707
static int tb_maximum_bandwidth(struct tb *tb, struct tb_port *src_port,
drivers/thunderbolt/tb.c
708
struct tb_port *dst_port, struct tb_port *port,
drivers/thunderbolt/tb.c
815
static int tb_available_bandwidth(struct tb *tb, struct tb_port *src_port,
drivers/thunderbolt/tb.c
816
struct tb_port *dst_port, int *available_up,
drivers/thunderbolt/tb.c
819
struct tb_port *port;
drivers/thunderbolt/tb.c
86
static void tb_scan_port(struct tb_port *port);
drivers/thunderbolt/tb.c
867
struct tb_port *src_port,
drivers/thunderbolt/tb.c
868
struct tb_port *dst_port)
drivers/thunderbolt/tb.c
876
static void tb_reclaim_usb3_bandwidth(struct tb *tb, struct tb_port *src_port,
drivers/thunderbolt/tb.c
877
struct tb_port *dst_port)
drivers/thunderbolt/tb.c
88
static void tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port,
drivers/thunderbolt/tb.c
909
struct tb_port *up, *down, *port;
drivers/thunderbolt/tb.c
935
struct tb_port *parent_up;
drivers/thunderbolt/tb.c
999
struct tb_port *port;
drivers/thunderbolt/tb.h
1030
bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1031
int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1032
void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1069
bool tb_port_clx_is_enabled(struct tb_port *port, unsigned int clx);
drivers/thunderbolt/tb.h
1097
int tb_port_state(struct tb_port *port);
drivers/thunderbolt/tb.h
1098
int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
drivers/thunderbolt/tb.h
1099
int tb_port_add_nfc_credits(struct tb_port *port, int credits);
drivers/thunderbolt/tb.h
1100
int tb_port_clear_counter(struct tb_port *port, int counter);
drivers/thunderbolt/tb.h
1101
int tb_port_unlock(struct tb_port *port);
drivers/thunderbolt/tb.h
1102
int tb_port_enable(struct tb_port *port);
drivers/thunderbolt/tb.h
1103
int tb_port_disable(struct tb_port *port);
drivers/thunderbolt/tb.h
1104
int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
drivers/thunderbolt/tb.h
1105
void tb_port_release_in_hopid(struct tb_port *port, int hopid);
drivers/thunderbolt/tb.h
1106
int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
drivers/thunderbolt/tb.h
1107
void tb_port_release_out_hopid(struct tb_port *port, int hopid);
drivers/thunderbolt/tb.h
1108
struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
drivers/thunderbolt/tb.h
1109
struct tb_port *prev);
drivers/thunderbolt/tb.h
1120
tb_port_path_direction_downstream(const struct tb_port *src,
drivers/thunderbolt/tb.h
1121
const struct tb_port *dst)
drivers/thunderbolt/tb.h
1126
static inline bool tb_port_use_credit_allocation(const struct tb_port *port)
drivers/thunderbolt/tb.h
1158
int tb_port_get_link_speed(struct tb_port *port);
drivers/thunderbolt/tb.h
1159
int tb_port_get_link_generation(struct tb_port *port);
drivers/thunderbolt/tb.h
1160
int tb_port_get_link_width(struct tb_port *port);
drivers/thunderbolt/tb.h
1161
bool tb_port_width_supported(struct tb_port *port, unsigned int width);
drivers/thunderbolt/tb.h
1162
int tb_port_set_link_width(struct tb_port *port, enum tb_link_width width);
drivers/thunderbolt/tb.h
1163
int tb_port_lane_bonding_enable(struct tb_port *port);
drivers/thunderbolt/tb.h
1164
void tb_port_lane_bonding_disable(struct tb_port *port);
drivers/thunderbolt/tb.h
1165
int tb_port_wait_for_link_width(struct tb_port *port, unsigned int width,
drivers/thunderbolt/tb.h
1167
int tb_port_update_credits(struct tb_port *port);
drivers/thunderbolt/tb.h
1172
int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
drivers/thunderbolt/tb.h
1173
int tb_port_next_cap(struct tb_port *port, unsigned int offset);
drivers/thunderbolt/tb.h
1174
bool tb_port_is_enabled(struct tb_port *port);
drivers/thunderbolt/tb.h
1176
bool tb_usb3_port_is_enabled(struct tb_port *port);
drivers/thunderbolt/tb.h
1177
int tb_usb3_port_enable(struct tb_port *port, bool enable);
drivers/thunderbolt/tb.h
1179
bool tb_pci_port_is_enabled(struct tb_port *port);
drivers/thunderbolt/tb.h
1180
int tb_pci_port_enable(struct tb_port *port, bool enable);
drivers/thunderbolt/tb.h
1182
int tb_dp_port_hpd_is_active(struct tb_port *port);
drivers/thunderbolt/tb.h
1183
int tb_dp_port_hpd_clear(struct tb_port *port);
drivers/thunderbolt/tb.h
1184
int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
drivers/thunderbolt/tb.h
1186
bool tb_dp_port_is_enabled(struct tb_port *port);
drivers/thunderbolt/tb.h
1187
int tb_dp_port_enable(struct tb_port *port, bool enable);
drivers/thunderbolt/tb.h
1189
struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
drivers/thunderbolt/tb.h
1190
struct tb_port *dst, int dst_hopid,
drivers/thunderbolt/tb.h
1191
struct tb_port **last, const char *name,
drivers/thunderbolt/tb.h
1193
struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
drivers/thunderbolt/tb.h
1194
struct tb_port *dst, int dst_hopid, int link_nr,
drivers/thunderbolt/tb.h
1199
int tb_path_deactivate_hop(struct tb_port *port, int hop_index);
drivers/thunderbolt/tb.h
1202
const struct tb_port *port);
drivers/thunderbolt/tb.h
1219
int tb_lc_reset_port(struct tb_port *port);
drivers/thunderbolt/tb.h
1220
int tb_lc_configure_port(struct tb_port *port);
drivers/thunderbolt/tb.h
1221
void tb_lc_unconfigure_port(struct tb_port *port);
drivers/thunderbolt/tb.h
1222
int tb_lc_configure_xdomain(struct tb_port *port);
drivers/thunderbolt/tb.h
1223
void tb_lc_unconfigure_xdomain(struct tb_port *port);
drivers/thunderbolt/tb.h
1224
int tb_lc_start_lane_initialization(struct tb_port *port);
drivers/thunderbolt/tb.h
1225
bool tb_lc_is_clx_supported(struct tb_port *port);
drivers/thunderbolt/tb.h
1226
bool tb_lc_is_usb_plugged(struct tb_port *port);
drivers/thunderbolt/tb.h
1227
bool tb_lc_is_xhci_connected(struct tb_port *port);
drivers/thunderbolt/tb.h
1228
int tb_lc_xhci_connect(struct tb_port *port);
drivers/thunderbolt/tb.h
1229
void tb_lc_xhci_disconnect(struct tb_port *port);
drivers/thunderbolt/tb.h
1233
bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1234
int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1235
int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1251
static inline u64 tb_downstream_route(struct tb_port *port)
drivers/thunderbolt/tb.h
1279
static inline struct tb_port *tb_xdomain_downstream_port(struct tb_xdomain *xd)
drivers/thunderbolt/tb.h
1286
int tb_retimer_scan(struct tb_port *port, bool add);
drivers/thunderbolt/tb.h
1287
void tb_retimer_remove_all(struct tb_port *port);
drivers/thunderbolt/tb.h
1342
bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1343
int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1344
int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1345
struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/tb.h
1346
const struct tb_port *port);
drivers/thunderbolt/tb.h
1347
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/tb.h
1348
const struct tb_port *port);
drivers/thunderbolt/tb.h
1352
int usb4_port_unlock(struct tb_port *port);
drivers/thunderbolt/tb.h
1353
int usb4_port_hotplug_enable(struct tb_port *port);
drivers/thunderbolt/tb.h
1354
int usb4_port_reset(struct tb_port *port);
drivers/thunderbolt/tb.h
1355
int usb4_port_configure(struct tb_port *port);
drivers/thunderbolt/tb.h
1356
void usb4_port_unconfigure(struct tb_port *port);
drivers/thunderbolt/tb.h
1357
int usb4_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd);
drivers/thunderbolt/tb.h
1358
void usb4_port_unconfigure_xdomain(struct tb_port *port);
drivers/thunderbolt/tb.h
1359
int usb4_port_router_offline(struct tb_port *port);
drivers/thunderbolt/tb.h
1360
int usb4_port_router_online(struct tb_port *port);
drivers/thunderbolt/tb.h
1361
int usb4_port_enumerate_retimers(struct tb_port *port);
drivers/thunderbolt/tb.h
1362
bool usb4_port_clx_supported(struct tb_port *port);
drivers/thunderbolt/tb.h
1364
bool usb4_port_asym_supported(struct tb_port *port);
drivers/thunderbolt/tb.h
1365
int usb4_port_asym_set_link_width(struct tb_port *port, enum tb_link_width width);
drivers/thunderbolt/tb.h
1366
int usb4_port_asym_start(struct tb_port *port);
drivers/thunderbolt/tb.h
1380
int usb4_port_sb_read(struct tb_port *port, enum usb4_sb_target target, u8 index,
drivers/thunderbolt/tb.h
1382
int usb4_port_sb_write(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/tb.h
1429
int usb4_port_margining_caps(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/tb.h
1431
int usb4_port_hw_margin(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/tb.h
1434
int usb4_port_sw_margin(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/tb.h
1437
int usb4_port_sw_margin_errors(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/tb.h
1440
int usb4_port_retimer_set_inbound_sbtx(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1441
int usb4_port_retimer_unset_inbound_sbtx(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1442
int usb4_port_retimer_is_last(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1443
int usb4_port_retimer_is_cable(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1444
int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1445
int usb4_port_retimer_nvm_set_offset(struct tb_port *port, u8 index,
drivers/thunderbolt/tb.h
1447
int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index,
drivers/thunderbolt/tb.h
1450
int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index);
drivers/thunderbolt/tb.h
1451
int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index,
drivers/thunderbolt/tb.h
1453
int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index,
drivers/thunderbolt/tb.h
1456
int usb4_usb3_port_max_link_rate(struct tb_port *port);
drivers/thunderbolt/tb.h
1457
int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/tb.h
1459
int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/tb.h
1461
int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/tb.h
1464
int usb4_dp_port_set_cm_id(struct tb_port *port, int cm_id);
drivers/thunderbolt/tb.h
1465
bool usb4_dp_port_bandwidth_mode_supported(struct tb_port *port);
drivers/thunderbolt/tb.h
1466
bool usb4_dp_port_bandwidth_mode_enabled(struct tb_port *port);
drivers/thunderbolt/tb.h
1467
int usb4_dp_port_set_cm_bandwidth_mode_supported(struct tb_port *port,
drivers/thunderbolt/tb.h
1469
int usb4_dp_port_group_id(struct tb_port *port);
drivers/thunderbolt/tb.h
1470
int usb4_dp_port_set_group_id(struct tb_port *port, int group_id);
drivers/thunderbolt/tb.h
1471
int usb4_dp_port_nrd(struct tb_port *port, int *rate, int *lanes);
drivers/thunderbolt/tb.h
1472
int usb4_dp_port_set_nrd(struct tb_port *port, int rate, int lanes);
drivers/thunderbolt/tb.h
1473
int usb4_dp_port_granularity(struct tb_port *port);
drivers/thunderbolt/tb.h
1474
int usb4_dp_port_set_granularity(struct tb_port *port, int granularity);
drivers/thunderbolt/tb.h
1475
int usb4_dp_port_set_estimated_bandwidth(struct tb_port *port, int bw);
drivers/thunderbolt/tb.h
1476
int usb4_dp_port_allocated_bandwidth(struct tb_port *port);
drivers/thunderbolt/tb.h
1477
int usb4_dp_port_allocate_bandwidth(struct tb_port *port, int bw);
drivers/thunderbolt/tb.h
1478
int usb4_dp_port_requested_bandwidth(struct tb_port *port);
drivers/thunderbolt/tb.h
1480
int usb4_pci_port_set_ext_encapsulation(struct tb_port *port, bool enable);
drivers/thunderbolt/tb.h
1494
struct usb4_port *usb4_port_device_add(struct tb_port *port);
drivers/thunderbolt/tb.h
1497
int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port);
drivers/thunderbolt/tb.h
1517
int tb_acpi_power_on_retimers(struct tb_port *port);
drivers/thunderbolt/tb.h
1518
int tb_acpi_power_off_retimers(struct tb_port *port);
drivers/thunderbolt/tb.h
1530
static inline int tb_acpi_power_on_retimers(struct tb_port *port) { return 0; }
drivers/thunderbolt/tb.h
1531
static inline int tb_acpi_power_off_retimers(struct tb_port *port) { return 0; }
drivers/thunderbolt/tb.h
174
struct tb_port *ports;
drivers/thunderbolt/tb.h
283
struct tb_port *remote;
drivers/thunderbolt/tb.h
293
struct tb_port *dual_link_port;
drivers/thunderbolt/tb.h
318
struct tb_port *port;
drivers/thunderbolt/tb.h
345
struct tb_port *port;
drivers/thunderbolt/tb.h
382
struct tb_port *in_port;
drivers/thunderbolt/tb.h
383
struct tb_port *out_port;
drivers/thunderbolt/tb.h
564
static inline struct tb_port *tb_upstream_port(struct tb_switch *sw)
drivers/thunderbolt/tb.h
576
static inline bool tb_is_upstream_port(const struct tb_port *port)
drivers/thunderbolt/tb.h
578
const struct tb_port *upstream_port = tb_upstream_port(port->sw);
drivers/thunderbolt/tb.h
587
static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw)
drivers/thunderbolt/tb.h
619
static inline bool tb_port_has_remote(const struct tb_port *port)
drivers/thunderbolt/tb.h
631
static inline bool tb_port_is_null(const struct tb_port *port)
drivers/thunderbolt/tb.h
636
static inline bool tb_port_is_nhi(const struct tb_port *port)
drivers/thunderbolt/tb.h
641
static inline bool tb_port_is_pcie_down(const struct tb_port *port)
drivers/thunderbolt/tb.h
646
static inline bool tb_port_is_pcie_up(const struct tb_port *port)
drivers/thunderbolt/tb.h
651
static inline bool tb_port_is_dpin(const struct tb_port *port)
drivers/thunderbolt/tb.h
656
static inline bool tb_port_is_dpout(const struct tb_port *port)
drivers/thunderbolt/tb.h
661
static inline bool tb_port_is_usb3_down(const struct tb_port *port)
drivers/thunderbolt/tb.h
666
static inline bool tb_port_is_usb3_up(const struct tb_port *port)
drivers/thunderbolt/tb.h
699
static inline int tb_port_read(struct tb_port *port, void *buffer,
drivers/thunderbolt/tb.h
713
static inline int tb_port_write(struct tb_port *port, const void *buffer,
drivers/thunderbolt/tb.h
746
const struct tb_port *__port = (_port); \
drivers/thunderbolt/tb.h
858
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/tb.h
913
static inline struct tb_port *tb_switch_downstream_port(struct tb_switch *sw)
drivers/thunderbolt/test.c
1037
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1053
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/test.c
1117
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1133
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/test.c
1208
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1225
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/test.c
1300
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1317
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/test.c
1338
struct tb_port *down, *up;
drivers/thunderbolt/test.c
1392
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1430
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1476
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1527
struct tb_port *in, *out;
drivers/thunderbolt/test.c
1606
struct tb_port *in1, *in2, *in3, *out1, *out2, *out3;
drivers/thunderbolt/test.c
1672
struct tb_port *down, *up;
drivers/thunderbolt/test.c
1726
struct tb_port *in, *out, *port;
drivers/thunderbolt/test.c
1791
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
1834
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
1871
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
1909
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
194
struct tb_port *port, *upstream_port;
drivers/thunderbolt/test.c
1974
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
2026
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2059
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2092
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2125
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2175
struct tb_port *in, *out;
drivers/thunderbolt/test.c
2219
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2252
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
2289
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
2385
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2415
struct tb_port *in, *out;
drivers/thunderbolt/test.c
2452
struct tb_port *in, *out;
drivers/thunderbolt/test.c
2489
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2519
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
2549
struct tb_port *nhi, *port;
drivers/thunderbolt/test.c
425
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
442
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
496
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
554
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
615
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
695
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
743
struct tb_port *src_port, *dst_port, *p;
drivers/thunderbolt/test.c
845
struct tb_port *down, *up;
drivers/thunderbolt/test.c
897
struct tb_port *down, *up;
drivers/thunderbolt/test.c
911
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/test.c
959
struct tb_port *in, *out;
drivers/thunderbolt/test.c
973
const struct tb_port *in_port, *out_port;
drivers/thunderbolt/tmu.c
166
static int tb_port_tmu_write(struct tb_port *port, u8 offset, u32 mask,
drivers/thunderbolt/tmu.c
183
static int tb_port_tmu_set_unidirectional(struct tb_port *port,
drivers/thunderbolt/tmu.c
195
static inline int tb_port_tmu_unidirectional_disable(struct tb_port *port)
drivers/thunderbolt/tmu.c
200
static inline int tb_port_tmu_unidirectional_enable(struct tb_port *port)
drivers/thunderbolt/tmu.c
205
static bool tb_port_tmu_is_unidirectional(struct tb_port *port)
drivers/thunderbolt/tmu.c
218
static bool tb_port_tmu_is_enhanced(struct tb_port *port)
drivers/thunderbolt/tmu.c
232
static int tb_port_tmu_enhanced_enable(struct tb_port *port, bool enable)
drivers/thunderbolt/tmu.c
254
static int tb_port_set_tmu_mode_params(struct tb_port *port,
drivers/thunderbolt/tmu.c
295
static int tb_port_tmu_rate_write(struct tb_port *port, int rate)
drivers/thunderbolt/tmu.c
315
static int tb_port_tmu_time_sync(struct tb_port *port, bool time_sync)
drivers/thunderbolt/tmu.c
322
static int tb_port_tmu_time_sync_disable(struct tb_port *port)
drivers/thunderbolt/tmu.c
327
static int tb_port_tmu_time_sync_enable(struct tb_port *port)
drivers/thunderbolt/tmu.c
378
struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
413
struct tb_port *port;
drivers/thunderbolt/tmu.c
540
static int disable_enhanced(struct tb_port *up, struct tb_port *down)
drivers/thunderbolt/tmu.c
572
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
630
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
670
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
706
struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
734
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
778
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
823
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
869
struct tb_port *up, *down;
drivers/thunderbolt/tunnel.c
1015
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
1034
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
114
static inline unsigned int tb_usable_credits(const struct tb_port *port)
drivers/thunderbolt/tunnel.c
1167
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
1202
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
1237
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
127
static unsigned int tb_available_credits(const struct tb_port *port,
drivers/thunderbolt/tunnel.c
1275
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
1311
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
1427
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
1456
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
1509
struct tb_port *in, *out;
drivers/thunderbolt/tunnel.c
1560
struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1564
struct tb_port *port;
drivers/thunderbolt/tunnel.c
1661
struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
drivers/thunderbolt/tunnel.c
1662
struct tb_port *out, int link_nr,
drivers/thunderbolt/tunnel.c
170
struct tb_port *out_port = hop->out_port;
drivers/thunderbolt/tunnel.c
171
struct tb_port *in_port = hop->in_port;
drivers/thunderbolt/tunnel.c
1725
static unsigned int tb_dma_available_credits(const struct tb_port *port)
drivers/thunderbolt/tunnel.c
1740
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
1831
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
1874
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.c
1875
struct tb_port *dst, int transmit_path,
drivers/thunderbolt/tunnel.c
1998
static int tb_usb3_max_link_rate(struct tb_port *up, struct tb_port *down)
drivers/thunderbolt/tunnel.c
2042
struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw);
drivers/thunderbolt/tunnel.c
2133
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
2176
struct tb_tunnel *tb_tunnel_discover_usb3(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
2281
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
2282
struct tb_port *down, int max_up,
drivers/thunderbolt/tunnel.c
2458
const struct tb_port *port)
drivers/thunderbolt/tunnel.c
249
const struct tb_port *src_port,
drivers/thunderbolt/tunnel.c
250
const struct tb_port *dst_port)
drivers/thunderbolt/tunnel.c
301
struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw);
drivers/thunderbolt/tunnel.c
365
struct tb_port *port = hop->in_port;
drivers/thunderbolt/tunnel.c
424
struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
drivers/thunderbolt/tunnel.c
504
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
505
struct tb_port *down)
drivers/thunderbolt/tunnel.c
556
bool tb_tunnel_reserved_pci(struct tb_port *port, int *reserved_up,
drivers/thunderbolt/tunnel.c
595
static int tb_dp_cm_handshake(struct tb_port *in, struct tb_port *out,
drivers/thunderbolt/tunnel.c
789
struct tb_port *out = tunnel->dst_port;
drivers/thunderbolt/tunnel.c
790
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
888
struct tb_port *out = tunnel->dst_port;
drivers/thunderbolt/tunnel.c
889
struct tb_port *in = tunnel->src_port;
drivers/thunderbolt/tunnel.c
989
struct tb_port *in = tunnel->src_port;
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
115
struct tb_port *down);
drivers/thunderbolt/tunnel.h
116
bool tb_tunnel_reserved_pci(struct tb_port *port, int *reserved_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
121
struct tb_port *out, int link_nr,
drivers/thunderbolt/tunnel.h
125
struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
drivers/thunderbolt/tunnel.h
126
struct tb_port *dst, 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
134
struct tb_port *down, int max_up,
drivers/thunderbolt/tunnel.h
158
const struct tb_port *port);
drivers/thunderbolt/tunnel.h
218
const struct tb_port *src_port,
drivers/thunderbolt/tunnel.h
219
const struct tb_port *dst_port);
drivers/thunderbolt/tunnel.h
76
struct tb_port *src_port;
drivers/thunderbolt/tunnel.h
77
struct tb_port *dst_port;
drivers/thunderbolt/usb4.c
1010
struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1011
const struct tb_port *port)
drivers/thunderbolt/usb4.c
1014
struct tb_port *p;
drivers/thunderbolt/usb4.c
1043
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1044
const struct tb_port *port)
drivers/thunderbolt/usb4.c
1047
struct tb_port *p;
drivers/thunderbolt/usb4.c
1075
struct tb_port *port;
drivers/thunderbolt/usb4.c
1108
struct tb_port *port;
drivers/thunderbolt/usb4.c
1127
int usb4_port_unlock(struct tb_port *port)
drivers/thunderbolt/usb4.c
1149
int usb4_port_hotplug_enable(struct tb_port *port)
drivers/thunderbolt/usb4.c
1170
int usb4_port_reset(struct tb_port *port)
drivers/thunderbolt/usb4.c
1203
static int usb4_port_set_configured(struct tb_port *port, bool configured)
drivers/thunderbolt/usb4.c
1233
int usb4_port_configure(struct tb_port *port)
drivers/thunderbolt/usb4.c
1246
void usb4_port_unconfigure(struct tb_port *port)
drivers/thunderbolt/usb4.c
1251
static int usb4_set_xdomain_configured(struct tb_port *port, bool configured)
drivers/thunderbolt/usb4.c
1283
int usb4_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd)
drivers/thunderbolt/usb4.c
1295
void usb4_port_unconfigure_xdomain(struct tb_port *port)
drivers/thunderbolt/usb4.c
1300
static int usb4_port_wait_for_bit(struct tb_port *port, u32 offset, u32 bit,
drivers/thunderbolt/usb4.c
1322
static int usb4_port_read_data(struct tb_port *port, void *data, size_t dwords)
drivers/thunderbolt/usb4.c
1331
static int usb4_port_write_data(struct tb_port *port, const void *data,
drivers/thunderbolt/usb4.c
1354
int usb4_port_sb_read(struct tb_port *port, enum usb4_sb_target target, u8 index,
drivers/thunderbolt/usb4.c
1407
int usb4_port_sb_write(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1468
static int usb4_port_sb_op(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1499
static int usb4_port_set_router_offline(struct tb_port *port, bool offline)
drivers/thunderbolt/usb4.c
1524
int usb4_port_router_offline(struct tb_port *port)
drivers/thunderbolt/usb4.c
1537
int usb4_port_router_online(struct tb_port *port)
drivers/thunderbolt/usb4.c
1551
int usb4_port_enumerate_retimers(struct tb_port *port)
drivers/thunderbolt/usb4.c
1569
bool usb4_port_clx_supported(struct tb_port *port)
drivers/thunderbolt/usb4.c
1590
bool usb4_port_asym_supported(struct tb_port *port)
drivers/thunderbolt/usb4.c
1613
int usb4_port_asym_set_link_width(struct tb_port *port, enum tb_link_width width)
drivers/thunderbolt/usb4.c
1661
int usb4_port_asym_start(struct tb_port *port)
drivers/thunderbolt/usb4.c
167
struct tb_port *port;
drivers/thunderbolt/usb4.c
1706
int usb4_port_margining_caps(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1734
int usb4_port_hw_margin(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1781
int usb4_port_sw_margin(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1829
int usb4_port_sw_margin_errors(struct tb_port *port, enum usb4_sb_target target,
drivers/thunderbolt/usb4.c
1843
static inline int usb4_port_retimer_op(struct tb_port *port, u8 index,
drivers/thunderbolt/usb4.c
1861
int usb4_port_retimer_set_inbound_sbtx(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
1890
int usb4_port_retimer_unset_inbound_sbtx(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
1908
int usb4_port_retimer_is_last(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
1934
int usb4_port_retimer_is_cable(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
1963
int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
1989
int usb4_port_retimer_nvm_set_offset(struct tb_port *port, u8 index,
drivers/thunderbolt/usb4.c
2009
struct tb_port *port;
drivers/thunderbolt/usb4.c
2018
struct tb_port *port = info->port;
drivers/thunderbolt/usb4.c
2047
int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index, unsigned int address,
drivers/thunderbolt/usb4.c
2074
int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index)
drivers/thunderbolt/usb4.c
2101
int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index,
drivers/thunderbolt/usb4.c
213
static bool link_is_usb4(struct tb_port *port)
drivers/thunderbolt/usb4.c
2137
struct tb_port *port = info->port;
drivers/thunderbolt/usb4.c
2174
int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index,
drivers/thunderbolt/usb4.c
2184
usb4_usb3_port_max_bandwidth(const struct tb_port *port, unsigned int bw)
drivers/thunderbolt/usb4.c
2199
int usb4_usb3_port_max_link_rate(struct tb_port *port)
drivers/thunderbolt/usb4.c
2218
static int usb4_usb3_port_cm_request(struct tb_port *port, bool request)
drivers/thunderbolt/usb4.c
2253
static inline int usb4_usb3_port_set_cm_request(struct tb_port *port)
drivers/thunderbolt/usb4.c
2258
static inline int usb4_usb3_port_clear_cm_request(struct tb_port *port)
drivers/thunderbolt/usb4.c
2280
static int usb4_usb3_port_read_allocated_bandwidth(struct tb_port *port,
drivers/thunderbolt/usb4.c
2319
int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/usb4.c
2335
static int usb4_usb3_port_read_consumed_bandwidth(struct tb_port *port,
drivers/thunderbolt/usb4.c
2363
static int usb4_usb3_port_write_allocated_bandwidth(struct tb_port *port,
drivers/thunderbolt/usb4.c
2421
int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/usb4.c
246
struct tb_port *down;
drivers/thunderbolt/usb4.c
2463
int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw,
drivers/thunderbolt/usb4.c
2499
static bool is_usb4_dpin(const struct tb_port *port)
drivers/thunderbolt/usb4.c
2520
int usb4_dp_port_set_cm_id(struct tb_port *port, int cm_id)
drivers/thunderbolt/usb4.c
2550
bool usb4_dp_port_bandwidth_mode_supported(struct tb_port *port)
drivers/thunderbolt/usb4.c
2576
bool usb4_dp_port_bandwidth_mode_enabled(struct tb_port *port)
drivers/thunderbolt/usb4.c
2606
int usb4_dp_port_set_cm_bandwidth_mode_supported(struct tb_port *port,
drivers/thunderbolt/usb4.c
2641
int usb4_dp_port_group_id(struct tb_port *port)
drivers/thunderbolt/usb4.c
2669
int usb4_dp_port_set_group_id(struct tb_port *port, int group_id)
drivers/thunderbolt/usb4.c
2702
int usb4_dp_port_nrd(struct tb_port *port, int *rate, int *lanes)
drivers/thunderbolt/usb4.c
2761
int usb4_dp_port_set_nrd(struct tb_port *port, int rate, int lanes)
drivers/thunderbolt/usb4.c
2826
int usb4_dp_port_granularity(struct tb_port *port)
drivers/thunderbolt/usb4.c
2867
int usb4_dp_port_set_granularity(struct tb_port *port, int granularity)
drivers/thunderbolt/usb4.c
2914
int usb4_dp_port_set_estimated_bandwidth(struct tb_port *port, int bw)
drivers/thunderbolt/usb4.c
2948
int usb4_dp_port_allocated_bandwidth(struct tb_port *port)
drivers/thunderbolt/usb4.c
2972
static int __usb4_dp_port_set_cm_ack(struct tb_port *port, bool ack)
drivers/thunderbolt/usb4.c
2991
static inline int usb4_dp_port_set_cm_ack(struct tb_port *port)
drivers/thunderbolt/usb4.c
2996
static int usb4_dp_port_wait_and_clear_cm_ack(struct tb_port *port,
drivers/thunderbolt/usb4.c
3045
int usb4_dp_port_allocate_bandwidth(struct tb_port *port, int bw)
drivers/thunderbolt/usb4.c
3093
int usb4_dp_port_requested_bandwidth(struct tb_port *port)
drivers/thunderbolt/usb4.c
3127
int usb4_pci_port_set_ext_encapsulation(struct tb_port *port, bool enable)
drivers/thunderbolt/usb4.c
399
struct tb_port *up;
drivers/thunderbolt/usb4.c
423
struct tb_port *port;
drivers/thunderbolt/usb4.c
757
const struct tb_port *port;
drivers/thunderbolt/usb4.c
895
bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
928
int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
953
int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
977
int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port)
drivers/thunderbolt/usb4.c
979
struct tb_port *p;
drivers/thunderbolt/usb4_port.c
102
struct tb_port *port = usb4->port;
drivers/thunderbolt/usb4_port.c
163
struct tb_port *port = usb4->port;
drivers/thunderbolt/usb4_port.c
214
struct tb_port *port = usb4->port;
drivers/thunderbolt/usb4_port.c
303
struct usb4_port *usb4_port_device_add(struct tb_port *port)
drivers/thunderbolt/usb4_port.c
45
struct tb_port *port = usb4->port;
drivers/thunderbolt/usb4_port.c
78
struct tb_port *port = usb4->port;
drivers/thunderbolt/xdomain.c
1170
struct tb_port *port;
drivers/thunderbolt/xdomain.c
1287
struct tb_port *port = tb_xdomain_downstream_port(xd);
drivers/thunderbolt/xdomain.c
1328
struct tb_port *port;
drivers/thunderbolt/xdomain.c
1462
struct tb_port *port;
drivers/thunderbolt/xdomain.c
1907
static void tb_xdomain_link_init(struct tb_xdomain *xd, struct tb_port *down)
drivers/thunderbolt/xdomain.c
1926
struct tb_port *down = tb_xdomain_downstream_port(xd);
drivers/thunderbolt/xdomain.c
1971
struct tb_port *down;
drivers/thunderbolt/xdomain.c
2105
struct tb_port *port;
drivers/thunderbolt/xdomain.c
2156
struct tb_port *port;
drivers/thunderbolt/xdomain.c
2309
struct tb_port *port;
drivers/thunderbolt/xdomain.c
541
struct tb_port *port = tb_xdomain_downstream_port(xd);