drivers/thunderbolt/acpi.c
287
static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw)
drivers/thunderbolt/acpi.c
289
struct tb_switch *parent_sw = tb_switch_parent(sw);
drivers/thunderbolt/cap.c
154
int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset)
drivers/thunderbolt/cap.c
198
int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap)
drivers/thunderbolt/cap.c
20
struct tb_switch *sw = port->sw;
drivers/thunderbolt/cap.c
234
int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec)
drivers/thunderbolt/clx.c
184
static bool tb_switch_clx_is_supported(const struct tb_switch *sw)
drivers/thunderbolt/clx.c
211
int tb_switch_clx_init(struct tb_switch *sw)
drivers/thunderbolt/clx.c
240
static int tb_switch_pm_secondary_resolve(struct tb_switch *sw)
drivers/thunderbolt/clx.c
257
static int tb_switch_mask_clx_objections(struct tb_switch *sw)
drivers/thunderbolt/clx.c
321
int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx)
drivers/thunderbolt/clx.c
324
struct tb_switch *parent_sw;
drivers/thunderbolt/clx.c
398
int tb_switch_clx_disable(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
1225
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
1226
struct tb_switch *down_sw;
drivers/thunderbolt/debugfs.c
1793
static void margining_switch_init(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
1796
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1810
static void margining_switch_remove(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
1813
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1829
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1840
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1861
static inline void margining_switch_init(struct tb_switch *sw) { }
drivers/thunderbolt/debugfs.c
1862
static inline void margining_switch_remove(struct tb_switch *sw) { }
drivers/thunderbolt/debugfs.c
1892
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
1934
static void cap_show_by_dw(struct seq_file *s, struct tb_switch *sw,
drivers/thunderbolt/debugfs.c
1957
static void cap_show(struct seq_file *s, struct tb_switch *sw,
drivers/thunderbolt/debugfs.c
2100
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2129
static void switch_cap_show(struct tb_switch *sw, struct seq_file *s,
drivers/thunderbolt/debugfs.c
2169
static void switch_caps_show(struct tb_switch *sw, struct seq_file *s)
drivers/thunderbolt/debugfs.c
2180
static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s)
drivers/thunderbolt/debugfs.c
2204
struct tb_switch *sw = s->private;
drivers/thunderbolt/debugfs.c
221
static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port,
drivers/thunderbolt/debugfs.c
2256
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2319
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2379
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2408
void tb_switch_debugfs_init(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
2452
void tb_switch_debugfs_remove(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
295
struct tb_switch *sw = s->private;
drivers/thunderbolt/debugfs.c
386
struct tb_switch *sw = port->sw;
drivers/thunderbolt/dma_port.c
168
static int dma_find_port(struct tb_switch *sw)
drivers/thunderbolt/dma_port.c
203
struct tb_dma_port *dma_port_alloc(struct tb_switch *sw)
drivers/thunderbolt/dma_port.c
245
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
283
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
308
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
330
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
431
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
55
struct tb_switch *sw;
drivers/thunderbolt/dma_port.h
15
struct tb_switch;
drivers/thunderbolt/dma_port.h
21
struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
drivers/thunderbolt/domain.c
635
int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
654
int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
656
struct tb_switch *parent_sw;
drivers/thunderbolt/domain.c
680
int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
682
struct tb_switch *parent_sw;
drivers/thunderbolt/domain.c
712
int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
717
struct tb_switch *parent_sw;
drivers/thunderbolt/eeprom.c
116
static int tb_eeprom_in(struct tb_switch *sw, u8 *val)
drivers/thunderbolt/eeprom.c
137
static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset)
drivers/thunderbolt/eeprom.c
168
static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val,
drivers/thunderbolt/eeprom.c
18
static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl)
drivers/thunderbolt/eeprom.c
26
static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl)
drivers/thunderbolt/eeprom.c
304
int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid)
drivers/thunderbolt/eeprom.c
326
static int tb_drom_parse_entry_generic(struct tb_switch *sw,
drivers/thunderbolt/eeprom.c
362
static int tb_drom_parse_entry_port(struct tb_switch *sw,
drivers/thunderbolt/eeprom.c
409
static int tb_drom_parse_entries(struct tb_switch *sw, size_t header_size)
drivers/thunderbolt/eeprom.c
42
static int tb_eeprom_active(struct tb_switch *sw, bool enable)
drivers/thunderbolt/eeprom.c
440
static int tb_switch_drom_alloc(struct tb_switch *sw, size_t size)
drivers/thunderbolt/eeprom.c
453
static void tb_switch_drom_free(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
466
static int tb_drom_copy_efi(struct tb_switch *sw, u16 *size)
drivers/thunderbolt/eeprom.c
496
static int tb_drom_copy_nvm(struct tb_switch *sw, u16 *size)
drivers/thunderbolt/eeprom.c
536
static int usb4_copy_drom(struct tb_switch *sw, u16 *size)
drivers/thunderbolt/eeprom.c
557
static int tb_drom_bit_bang(struct tb_switch *sw, u16 *size)
drivers/thunderbolt/eeprom.c
585
static int tb_drom_parse_v1(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
613
static int usb4_drom_parse(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
629
static int tb_drom_parse(struct tb_switch *sw, u16 size)
drivers/thunderbolt/eeprom.c
667
static int tb_drom_host_read(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
688
static int tb_drom_device_read(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
71
static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl,
drivers/thunderbolt/eeprom.c
716
int tb_drom_read(struct tb_switch *sw)
drivers/thunderbolt/eeprom.c
96
static int tb_eeprom_out(struct tb_switch *sw, u8 val)
drivers/thunderbolt/icm.c
1066
static int icm_tr_approve_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
1093
static int icm_tr_add_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
1121
static int icm_tr_challenge_switch_key(struct tb *tb, struct tb_switch *sw,
drivers/thunderbolt/icm.c
1236
struct tb_switch *sw, *parent_sw;
drivers/thunderbolt/icm.c
1335
struct tb_switch *sw;
drivers/thunderbolt/icm.c
1361
struct tb_switch *sw;
drivers/thunderbolt/icm.c
2042
static void icm_unplug_children(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2059
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/icm.c
2066
static void remove_unplugged_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2087
static void icm_free_unplugged_children(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2153
static int icm_runtime_suspend_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2160
static int icm_runtime_resume_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2292
static int icm_usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata,
drivers/thunderbolt/icm.c
2354
static int icm_usb4_switch_nvm_authenticate_status(struct tb_switch *sw,
drivers/thunderbolt/icm.c
498
static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
525
static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
552
static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw,
drivers/thunderbolt/icm.c
634
static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route,
drivers/thunderbolt/icm.c
638
struct tb_switch *sw;
drivers/thunderbolt/icm.c
656
static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw)
drivers/thunderbolt/icm.c
672
static void update_switch(struct tb_switch *sw, u64 route, u8 connection_id,
drivers/thunderbolt/icm.c
675
struct tb_switch *parent_sw = tb_switch_parent(sw);
drivers/thunderbolt/icm.c
698
static void remove_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
704
static void add_xdomain(struct tb_switch *sw, u64 route,
drivers/thunderbolt/icm.c
737
struct tb_switch *sw;
drivers/thunderbolt/icm.c
750
struct tb_switch *sw, *parent_sw;
drivers/thunderbolt/icm.c
897
struct tb_switch *sw;
drivers/thunderbolt/icm.c
932
struct tb_switch *sw;
drivers/thunderbolt/lc.c
161
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
20
int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid)
drivers/thunderbolt/lc.c
227
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
261
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
27
static int read_lc_desc(struct tb_switch *sw, u32 *desc)
drivers/thunderbolt/lc.c
285
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
312
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
332
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
36
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
389
static int tb_lc_set_wake_one(struct tb_switch *sw, unsigned int offset,
drivers/thunderbolt/lc.c
428
int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags)
drivers/thunderbolt/lc.c
469
int tb_lc_set_sleep(struct tb_switch *sw)
drivers/thunderbolt/lc.c
515
bool tb_lc_lane_bonding_possible(struct tb_switch *sw)
drivers/thunderbolt/lc.c
536
static int tb_lc_dp_sink_from_port(const struct tb_switch *sw,
drivers/thunderbolt/lc.c
550
static int tb_lc_dp_sink_available(struct tb_switch *sw, int sink)
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
64
struct tb_switch *sw = port->sw;
drivers/thunderbolt/lc.c
667
int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/lc.c
712
int tb_lc_force_power(struct tb_switch *sw)
drivers/thunderbolt/lc.c
99
struct tb_switch *sw = port->sw;
drivers/thunderbolt/nvm.c
138
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/nvm.c
162
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/nvm.c
296
const struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/nvm.c
58
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/nvm.c
91
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/path.c
109
struct tb_switch *sw;
drivers/thunderbolt/path.c
39
struct tb_switch *sw;
drivers/thunderbolt/quirks.c
10
static void quirk_force_power_link(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
118
void tb_check_quirks(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
16
static void quirk_dp_credit_allocation(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
24
static void quirk_clx_disable(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
30
static void quirk_usb3_maximum_bandwidth(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
46
static void quirk_block_rpm_in_redrive(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
57
void (*hook)(struct tb_switch *sw);
drivers/thunderbolt/switch.c
127
static int nvm_authenticate_host_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1551
static const char *tb_switch_generation_name(const struct tb_switch *sw)
drivers/thunderbolt/switch.c
1567
static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw)
drivers/thunderbolt/switch.c
1585
static int tb_switch_reset_host(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1644
static int tb_switch_reset_device(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1649
static bool tb_switch_enumerated(struct tb_switch *sw)
drivers/thunderbolt/switch.c
167
static int nvm_authenticate_device_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1680
int tb_switch_reset(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1721
int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit,
drivers/thunderbolt/switch.c
1750
static int tb_plug_events_active(struct tb_switch *sw, bool active)
drivers/thunderbolt/switch.c
1794
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1802
struct tb_switch *sw;
drivers/thunderbolt/switch.c
1824
static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val)
drivers/thunderbolt/switch.c
1882
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1904
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1913
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1922
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1931
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1940
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1958
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1992
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2007
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2033
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2059
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2069
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
212
static void nvm_authenticate_start_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2161
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2183
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2192
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2201
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2231
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
227
static void nvm_authenticate_complete_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2295
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2316
const struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2354
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
236
static inline bool nvm_readable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2365
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2385
static int tb_switch_get_generation(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2430
static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth)
drivers/thunderbolt/switch.c
2456
struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
drivers/thunderbolt/switch.c
2459
struct tb_switch *sw;
drivers/thunderbolt/switch.c
2465
struct tb_switch *parent_sw = tb_to_switch(parent);
drivers/thunderbolt/switch.c
252
static inline bool nvm_upgradeable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2574
struct tb_switch *
drivers/thunderbolt/switch.c
2577
struct tb_switch *sw;
drivers/thunderbolt/switch.c
259
static int nvm_authenticate(struct tb_switch *sw, bool auth_only)
drivers/thunderbolt/switch.c
2610
int tb_switch_configure(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2673
int tb_switch_configuration_valid(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2680
static int tb_switch_set_uuid(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2726
static int tb_switch_add_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2820
static void tb_switch_default_link_ports(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2850
static bool tb_switch_lane_bonding_possible(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2862
static int tb_switch_update_link_attributes(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2895
static void tb_switch_link_init(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2949
static int tb_switch_lane_bonding_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
298
int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/switch.c
3001
static int tb_switch_lane_bonding_disable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3033
static int tb_switch_asym_enable(struct tb_switch *sw, enum tb_link_width width)
drivers/thunderbolt/switch.c
3076
static int tb_switch_asym_disable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
309
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/switch.c
3126
int tb_switch_set_link_width(struct tb_switch *sw, enum tb_link_width width)
drivers/thunderbolt/switch.c
3197
int tb_switch_configure_link(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3226
void tb_switch_unconfigure_link(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3255
static void tb_switch_credits_init(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3265
static int tb_switch_port_hotplug_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3297
int tb_switch_add(struct tb_switch *sw)
drivers/thunderbolt/switch.c
332
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/switch.c
3425
void tb_switch_remove(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3466
void tb_sw_set_unplugged(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3487
static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime)
drivers/thunderbolt/switch.c
3499
static void tb_switch_check_wakes(struct tb_switch *sw)
drivers/thunderbolt/switch.c
350
static int tb_switch_nvm_add(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3520
int tb_switch_resume(struct tb_switch *sw, bool runtime)
drivers/thunderbolt/switch.c
3622
void tb_switch_suspend(struct tb_switch *sw, bool runtime)
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
3742
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
3776
struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link, u8 depth)
drivers/thunderbolt/switch.c
38
static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw)
drivers/thunderbolt/switch.c
3803
struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid)
drivers/thunderbolt/switch.c
3829
struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route)
drivers/thunderbolt/switch.c
3855
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/switch.c
3872
static int tb_switch_pcie_bridge_write(struct tb_switch *sw, unsigned int bridge,
drivers/thunderbolt/switch.c
3925
int tb_switch_pcie_l1_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3927
struct tb_switch *parent = tb_switch_parent(sw);
drivers/thunderbolt/switch.c
3961
int tb_switch_xhci_connect(struct tb_switch *sw)
drivers/thunderbolt/switch.c
398
static void tb_switch_nvm_remove(struct tb_switch *sw)
drivers/thunderbolt/switch.c
4005
void tb_switch_xhci_disconnect(struct tb_switch *sw)
drivers/thunderbolt/switch.c
50
static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status)
drivers/thunderbolt/switch.c
61
static void nvm_set_auth_status(const struct tb_switch *sw, u32 status)
drivers/thunderbolt/switch.c
842
static inline bool tb_switch_is_reachable(const struct tb_switch *parent,
drivers/thunderbolt/switch.c
843
const struct tb_switch *sw)
drivers/thunderbolt/switch.c
86
static void nvm_clear_auth_status(const struct tb_switch *sw)
drivers/thunderbolt/switch.c
99
static int nvm_validate_and_write(struct tb_switch *sw)
drivers/thunderbolt/tb.c
1044
struct tb_switch *sw;
drivers/thunderbolt/tb.c
111
static void tb_add_dp_resources(struct tb_switch *sw)
drivers/thunderbolt/tb.c
1151
struct tb_switch *sw;
drivers/thunderbolt/tb.c
1233
struct tb_switch *sw)
drivers/thunderbolt/tb.c
1273
static void tb_scan_switch(struct tb_switch *sw)
drivers/thunderbolt/tb.c
1294
struct tb_switch *sw;
drivers/thunderbolt/tb.c
138
static void tb_remove_dp_resources(struct tb_switch *sw)
drivers/thunderbolt/tb.c
1703
struct tb_switch *parent = tunnel->dst_port->sw;
drivers/thunderbolt/tb.c
1790
static void tb_free_unplugged_children(struct tb_switch *sw)
drivers/thunderbolt/tb.c
1814
static struct tb_port *tb_find_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/tb.c
184
static int tb_enable_clx(struct tb_switch *sw)
drivers/thunderbolt/tb.c
2106
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tb.c
2131
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tb.c
2147
static void tb_switch_enter_redrive(struct tb_switch *sw)
drivers/thunderbolt/tb.c
2159
static void tb_switch_exit_redrive(struct tb_switch *sw)
drivers/thunderbolt/tb.c
2254
static int tb_disconnect_pci(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/tb.c
2275
static int tb_tunnel_pci(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/tb.c
2326
struct tb_switch *sw;
drivers/thunderbolt/tb.c
235
static bool tb_disable_clx(struct tb_switch *sw)
drivers/thunderbolt/tb.c
2375
struct tb_switch *sw;
drivers/thunderbolt/tb.c
2426
struct tb_switch *sw;
drivers/thunderbolt/tb.c
256
struct tb_switch *sw;
drivers/thunderbolt/tb.c
2738
struct tb_switch *sw;
drivers/thunderbolt/tb.c
283
struct tb_switch *sw;
drivers/thunderbolt/tb.c
2968
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/tb.c
303
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/tb.c
3081
static void tb_restore_children(struct tb_switch *sw)
drivers/thunderbolt/tb.c
3174
static int tb_free_unplugged_xdomains(struct tb_switch *sw)
drivers/thunderbolt/tb.c
319
static int tb_enable_tmu(struct tb_switch *sw)
drivers/thunderbolt/tb.c
376
static void tb_switch_discover_tunnels(struct tb_switch *sw,
drivers/thunderbolt/tb.c
433
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tb.c
460
static struct tb_port *tb_find_unused_port(struct tb_switch *sw,
drivers/thunderbolt/tb.c
479
static struct tb_port *tb_find_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/tb.c
513
struct tb_switch *sw;
drivers/thunderbolt/tb.c
905
static int tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/tb.c
907
struct tb_switch *parent = tb_switch_parent(sw);
drivers/thunderbolt/tb.c
997
static int tb_create_usb3_tunnels(struct tb_switch *sw)
drivers/thunderbolt/tb.h
1021
static inline bool tb_switch_is_icm(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1026
int tb_switch_set_link_width(struct tb_switch *sw, enum tb_link_width width);
drivers/thunderbolt/tb.h
1027
int tb_switch_configure_link(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1028
void tb_switch_unconfigure_link(struct tb_switch *sw);
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
1034
int tb_switch_tmu_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1035
int tb_switch_tmu_post_time(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1036
int tb_switch_tmu_disable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1037
int tb_switch_tmu_enable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1038
int tb_switch_tmu_configure(struct tb_switch *sw, enum tb_switch_tmu_mode mode);
drivers/thunderbolt/tb.h
1050
static inline bool tb_switch_tmu_is_configured(const struct tb_switch *sw,
drivers/thunderbolt/tb.h
1063
static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1071
int tb_switch_clx_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1072
int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx);
drivers/thunderbolt/tb.h
1073
int tb_switch_clx_disable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1086
static inline bool tb_switch_clx_is_enabled(const struct tb_switch *sw,
drivers/thunderbolt/tb.h
1092
int tb_switch_pcie_l1_enable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1094
int tb_switch_xhci_connect(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1095
void tb_switch_xhci_disconnect(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1169
int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
drivers/thunderbolt/tb.h
1170
int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap);
drivers/thunderbolt/tb.h
1171
int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset);
drivers/thunderbolt/tb.h
1215
int tb_drom_read(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1216
int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);
drivers/thunderbolt/tb.h
1218
int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid);
drivers/thunderbolt/tb.h
1230
int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags);
drivers/thunderbolt/tb.h
1231
int tb_lc_set_sleep(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1232
bool tb_lc_lane_bonding_possible(struct tb_switch *sw);
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
1236
int tb_lc_force_power(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1268
static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd)
drivers/thunderbolt/tb.h
1308
static inline unsigned int usb4_switch_version(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1319
static inline bool tb_switch_is_usb4(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1324
void usb4_switch_check_wakes(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1325
int usb4_switch_setup(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1326
int usb4_switch_configuration_valid(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1327
int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid);
drivers/thunderbolt/tb.h
1328
int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
1330
bool usb4_switch_lane_bonding_possible(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1331
int usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime);
drivers/thunderbolt/tb.h
1332
int usb4_switch_set_sleep(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1333
int usb4_switch_nvm_sector_size(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1334
int usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
1336
int usb4_switch_nvm_set_offset(struct tb_switch *sw, unsigned int address);
drivers/thunderbolt/tb.h
1337
int usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address,
drivers/thunderbolt/tb.h
1339
int usb4_switch_nvm_authenticate(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1340
int usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status);
drivers/thunderbolt/tb.h
1341
int usb4_switch_credits_init(struct tb_switch *sw);
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
1347
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/tb.h
1349
int usb4_switch_add_ports(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1350
void usb4_switch_remove_ports(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1497
int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port);
drivers/thunderbolt/tb.h
1504
void tb_check_quirks(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1537
void tb_switch_debugfs_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1538
void tb_switch_debugfs_remove(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1548
static inline void tb_switch_debugfs_init(struct tb_switch *sw) { }
drivers/thunderbolt/tb.h
1549
static inline void tb_switch_debugfs_remove(struct tb_switch *sw) { }
drivers/thunderbolt/tb.h
282
struct tb_switch *sw;
drivers/thunderbolt/tb.h
519
int (*runtime_suspend_switch)(struct tb_switch *sw);
drivers/thunderbolt/tb.h
520
int (*runtime_resume_switch)(struct tb_switch *sw);
drivers/thunderbolt/tb.h
525
int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
526
int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
527
int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
528
int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
drivers/thunderbolt/tb.h
537
int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata,
drivers/thunderbolt/tb.h
540
int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw,
drivers/thunderbolt/tb.h
564
static inline struct tb_port *tb_upstream_port(struct tb_switch *sw)
drivers/thunderbolt/tb.h
582
static inline u64 tb_route(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
587
static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw)
drivers/thunderbolt/tb.h
671
static inline int tb_sw_read(struct tb_switch *sw, void *buffer,
drivers/thunderbolt/tb.h
685
static inline int tb_sw_write(struct tb_switch *sw, const void *buffer,
drivers/thunderbolt/tb.h
735
const struct tb_switch *__sw = (sw); \
drivers/thunderbolt/tb.h
783
int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
784
int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
785
int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
786
int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
842
int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
844
struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
drivers/thunderbolt/tb.h
846
struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
drivers/thunderbolt/tb.h
848
int tb_switch_configure(struct tb_switch *sw);
drivers/thunderbolt/tb.h
849
int tb_switch_configuration_valid(struct tb_switch *sw);
drivers/thunderbolt/tb.h
850
int tb_switch_add(struct tb_switch *sw);
drivers/thunderbolt/tb.h
851
void tb_switch_remove(struct tb_switch *sw);
drivers/thunderbolt/tb.h
852
void tb_switch_suspend(struct tb_switch *sw, bool runtime);
drivers/thunderbolt/tb.h
853
int tb_switch_resume(struct tb_switch *sw, bool runtime);
drivers/thunderbolt/tb.h
854
int tb_switch_reset(struct tb_switch *sw);
drivers/thunderbolt/tb.h
855
int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit,
drivers/thunderbolt/tb.h
857
void tb_sw_set_unplugged(struct tb_switch *sw);
drivers/thunderbolt/tb.h
858
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/tb.h
860
struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
drivers/thunderbolt/tb.h
862
struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
drivers/thunderbolt/tb.h
863
struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
drivers/thunderbolt/tb.h
876
static inline struct tb_switch *tb_switch_get(struct tb_switch *sw)
drivers/thunderbolt/tb.h
883
static inline void tb_switch_put(struct tb_switch *sw)
drivers/thunderbolt/tb.h
893
static inline struct tb_switch *tb_to_switch(const struct device *dev)
drivers/thunderbolt/tb.h
896
return container_of(dev, struct tb_switch, dev);
drivers/thunderbolt/tb.h
900
static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw)
drivers/thunderbolt/tb.h
913
static inline struct tb_port *tb_switch_downstream_port(struct tb_switch *sw)
drivers/thunderbolt/tb.h
926
static inline int tb_switch_depth(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
931
static inline bool tb_switch_is_light_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
937
static inline bool tb_switch_is_eagle_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
943
static inline bool tb_switch_is_cactus_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
955
static inline bool tb_switch_is_falcon_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
967
static inline bool tb_switch_is_alpine_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
982
static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
995
static inline bool tb_switch_is_tiger_lake(const struct tb_switch *sw)
drivers/thunderbolt/test.c
1036
struct tb_switch *host, *dev1, *dev2, *dev3;
drivers/thunderbolt/test.c
1116
struct tb_switch *host, *dev1, *dev2, *dev3;
drivers/thunderbolt/test.c
1207
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4;
drivers/thunderbolt/test.c
1299
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4;
drivers/thunderbolt/test.c
1336
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
1391
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
1429
struct tb_switch *host, *dev1, *dev4;
drivers/thunderbolt/test.c
1475
struct tb_switch *host, *dev1, *dev2, *dev3, *dev5;
drivers/thunderbolt/test.c
1525
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4, *dev5, *dev6;
drivers/thunderbolt/test.c
1526
struct tb_switch *dev7, *dev8, *dev9, *dev10, *dev11, *dev12;
drivers/thunderbolt/test.c
154
static struct tb_switch *alloc_host_usb4(struct kunit *test)
drivers/thunderbolt/test.c
156
struct tb_switch *sw;
drivers/thunderbolt/test.c
1605
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4, *dev5;
drivers/thunderbolt/test.c
1670
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
1725
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4, *dev5;
drivers/thunderbolt/test.c
173
static struct tb_switch *alloc_host_br(struct kunit *test)
drivers/thunderbolt/test.c
175
struct tb_switch *sw;
drivers/thunderbolt/test.c
1793
struct tb_switch *host;
drivers/thunderbolt/test.c
1836
struct tb_switch *host;
drivers/thunderbolt/test.c
1873
struct tb_switch *host;
drivers/thunderbolt/test.c
190
static struct tb_switch *alloc_dev_default(struct kunit *test,
drivers/thunderbolt/test.c
1908
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
191
struct tb_switch *parent,
drivers/thunderbolt/test.c
195
struct tb_switch *sw;
drivers/thunderbolt/test.c
1976
struct tb_switch *host;
drivers/thunderbolt/test.c
2025
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2058
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2091
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2124
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2174
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2218
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2251
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2288
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2383
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2413
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2450
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2487
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2517
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2547
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2580
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
340
static struct tb_switch *alloc_dev_with_dpin(struct kunit *test,
drivers/thunderbolt/test.c
341
struct tb_switch *parent,
drivers/thunderbolt/test.c
344
struct tb_switch *sw;
drivers/thunderbolt/test.c
36
static struct tb_switch *alloc_switch(struct kunit *test, u64 route,
drivers/thunderbolt/test.c
361
static struct tb_switch *alloc_dev_without_dp(struct kunit *test,
drivers/thunderbolt/test.c
362
struct tb_switch *parent,
drivers/thunderbolt/test.c
365
struct tb_switch *sw;
drivers/thunderbolt/test.c
39
struct tb_switch *sw;
drivers/thunderbolt/test.c
402
static struct tb_switch *alloc_dev_usb4(struct kunit *test,
drivers/thunderbolt/test.c
403
struct tb_switch *parent,
drivers/thunderbolt/test.c
406
struct tb_switch *sw;
drivers/thunderbolt/test.c
426
struct tb_switch *host;
drivers/thunderbolt/test.c
443
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
497
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
555
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
616
struct tb_switch *host, *dev1, *dev3;
drivers/thunderbolt/test.c
694
struct tb_switch *host, *dev1, *dev2, *dev3, *dev5, *dev6, *dev7, *dev9;
drivers/thunderbolt/test.c
72
static struct tb_switch *alloc_host(struct kunit *test)
drivers/thunderbolt/test.c
74
struct tb_switch *sw;
drivers/thunderbolt/test.c
741
struct tb_switch *host, *dev1, *dev2, *dev3, *dev4, *dev5, *dev6;
drivers/thunderbolt/test.c
742
struct tb_switch *dev7, *dev8, *dev9, *dev10, *dev11, *dev12;
drivers/thunderbolt/test.c
844
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
896
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
958
struct tb_switch *host, *dev;
drivers/thunderbolt/tmu.c
1034
int tb_switch_tmu_configure(struct tb_switch *sw, enum tb_switch_tmu_mode mode)
drivers/thunderbolt/tmu.c
1050
const struct tb_switch *parent_sw = tb_switch_parent(sw);
drivers/thunderbolt/tmu.c
122
static bool tb_switch_tmu_ucap_is_supported(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
135
static int tb_switch_tmu_rate_read(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
149
static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate)
drivers/thunderbolt/tmu.c
332
static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set)
drivers/thunderbolt/tmu.c
357
static int tmu_mode_init(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
411
int tb_switch_tmu_init(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
447
int tb_switch_tmu_post_time(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
451
struct tb_switch *root_switch = sw->tb->root_switch;
drivers/thunderbolt/tmu.c
565
int tb_switch_tmu_disable(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
58
static bool tb_switch_tmu_enhanced_is_supported(const struct tb_switch *sw)
drivers/thunderbolt/tmu.c
627
static void tb_switch_tmu_off(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
63
static int tb_switch_set_tmu_mode_params(struct tb_switch *sw,
drivers/thunderbolt/tmu.c
668
static int tb_switch_tmu_enable_bidirectional(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
704
static int tb_switch_tmu_disable_objections(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
732
static int tb_switch_tmu_enable_unidirectional(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
775
static int tb_switch_tmu_enable_enhanced(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
820
static void tb_switch_tmu_change_mode_prev(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
866
static int tb_switch_tmu_change_mode(struct tb_switch *sw)
drivers/thunderbolt/tmu.c
950
int tb_switch_tmu_enable(struct tb_switch *sw)
drivers/thunderbolt/tunnel.c
130
const struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1365
const struct tb_switch *sw = tunnel->src_port->sw;
drivers/thunderbolt/tunnel.c
1428
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1457
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1727
const struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
2134
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
366
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
589
static bool tb_dp_is_usb4(const struct tb_switch *sw)
drivers/thunderbolt/tunnel.c
990
struct tb_switch *sw = in->sw;
drivers/thunderbolt/usb4.c
1010
struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1043
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1073
int usb4_switch_add_ports(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
109
static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata,
drivers/thunderbolt/usb4.c
1106
void usb4_switch_remove_ports(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
142
static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode,
drivers/thunderbolt/usb4.c
148
static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode,
drivers/thunderbolt/usb4.c
163
void usb4_switch_check_wakes(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
243
int usb4_switch_setup(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
245
struct tb_switch *parent = tb_switch_parent(sw);
drivers/thunderbolt/usb4.c
311
int usb4_switch_configuration_valid(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
342
int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid)
drivers/thunderbolt/usb4.c
351
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
381
int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/usb4.c
397
bool usb4_switch_lane_bonding_possible(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
421
int usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime)
drivers/thunderbolt/usb4.c
502
int usb4_switch_set_sleep(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
531
int usb4_switch_nvm_sector_size(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
54
static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode,
drivers/thunderbolt/usb4.c
551
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
583
int usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/usb4.c
600
int usb4_switch_nvm_set_offset(struct tb_switch *sw, unsigned int address)
drivers/thunderbolt/usb4.c
621
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
647
int usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address,
drivers/thunderbolt/usb4.c
675
int usb4_switch_nvm_authenticate(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
709
int usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status)
drivers/thunderbolt/usb4.c
753
int usb4_switch_credits_init(struct tb_switch *sw)
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_port.c
123
struct tb_switch *sw;
drivers/thunderbolt/xdomain.c
1969
struct tb_switch *parent_sw = tb_to_switch(parent);
drivers/thunderbolt/xdomain.c
2306
static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw,
include/linux/thunderbolt.h
87
struct tb_switch *root_switch;