Symbol: tb_switch
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
1231
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
1232
struct tb_switch *down_sw;
drivers/thunderbolt/debugfs.c
1801
static void margining_switch_init(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
1804
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1818
static void margining_switch_remove(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
1821
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1837
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1848
struct tb_switch *parent_sw;
drivers/thunderbolt/debugfs.c
1869
static inline void margining_switch_init(struct tb_switch *sw) { }
drivers/thunderbolt/debugfs.c
1870
static inline void margining_switch_remove(struct tb_switch *sw) { }
drivers/thunderbolt/debugfs.c
1900
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
1942
static void cap_show_by_dw(struct seq_file *s, struct tb_switch *sw,
drivers/thunderbolt/debugfs.c
1965
static void cap_show(struct seq_file *s, struct tb_switch *sw,
drivers/thunderbolt/debugfs.c
2108
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2137
static void switch_cap_show(struct tb_switch *sw, struct seq_file *s,
drivers/thunderbolt/debugfs.c
2177
static void switch_caps_show(struct tb_switch *sw, struct seq_file *s)
drivers/thunderbolt/debugfs.c
2188
static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s)
drivers/thunderbolt/debugfs.c
221
static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port,
drivers/thunderbolt/debugfs.c
2212
struct tb_switch *sw = s->private;
drivers/thunderbolt/debugfs.c
2264
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2327
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2389
struct tb_switch *sw = port->sw;
drivers/thunderbolt/debugfs.c
2418
void tb_switch_debugfs_init(struct tb_switch *sw)
drivers/thunderbolt/debugfs.c
2462
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
236
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
274
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
299
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
321
struct tb_switch *sw = dma->sw;
drivers/thunderbolt/dma_port.c
422
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
638
int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
657
int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
659
struct tb_switch *parent_sw;
drivers/thunderbolt/domain.c
683
int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
685
struct tb_switch *parent_sw;
drivers/thunderbolt/domain.c
715
int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/domain.c
720
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
1072
static int icm_tr_approve_switch(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
1099
static int icm_tr_add_switch_key(struct tb *tb, struct tb_switch *sw)
drivers/thunderbolt/icm.c
1127
static int icm_tr_challenge_switch_key(struct tb *tb, struct tb_switch *sw,
drivers/thunderbolt/icm.c
1247
struct tb_switch *sw, *parent_sw;
drivers/thunderbolt/icm.c
1346
struct tb_switch *sw;
drivers/thunderbolt/icm.c
1372
struct tb_switch *sw;
drivers/thunderbolt/icm.c
2056
static void icm_unplug_children(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2073
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/icm.c
2080
static void remove_unplugged_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2101
static void icm_free_unplugged_children(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2169
static int icm_runtime_suspend_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2176
static int icm_runtime_resume_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
2308
static int icm_usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata,
drivers/thunderbolt/icm.c
2370
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
639
static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route,
drivers/thunderbolt/icm.c
643
struct tb_switch *sw;
drivers/thunderbolt/icm.c
661
static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw)
drivers/thunderbolt/icm.c
677
static void update_switch(struct tb_switch *sw, u64 route, u8 connection_id,
drivers/thunderbolt/icm.c
680
struct tb_switch *parent_sw = tb_switch_parent(sw);
drivers/thunderbolt/icm.c
703
static void remove_switch(struct tb_switch *sw)
drivers/thunderbolt/icm.c
709
static void add_xdomain(struct tb_switch *sw, u64 route,
drivers/thunderbolt/icm.c
742
struct tb_switch *sw;
drivers/thunderbolt/icm.c
756
struct tb_switch *sw, *parent_sw;
drivers/thunderbolt/icm.c
903
struct tb_switch *sw;
drivers/thunderbolt/icm.c
938
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
125
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
33
static void quirk_usb3_maximum_bandwidth(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
49
static void quirk_block_rpm_in_redrive(struct tb_switch *sw)
drivers/thunderbolt/quirks.c
60
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
1547
static const char *tb_switch_generation_name(const struct tb_switch *sw)
drivers/thunderbolt/switch.c
1563
static void tb_dump_switch(const struct tb *tb, const struct tb_switch *sw)
drivers/thunderbolt/switch.c
1581
static int tb_switch_reset_host(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1646
static int tb_switch_reset_device(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1651
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
1682
int tb_switch_reset(struct tb_switch *sw)
drivers/thunderbolt/switch.c
1723
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
1789
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1797
struct tb_switch *sw;
drivers/thunderbolt/switch.c
1819
static int tb_switch_set_authorized(struct tb_switch *sw, unsigned int val)
drivers/thunderbolt/switch.c
1877
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1899
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1908
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1917
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1926
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1935
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1953
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
1987
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2002
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2028
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2054
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2064
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
212
static inline bool nvm_readable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2156
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2178
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2187
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2196
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2226
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
228
static inline bool nvm_upgradeable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2290
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2311
const struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2349
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
235
static int nvm_authenticate(struct tb_switch *sw, bool auth_only)
drivers/thunderbolt/switch.c
2360
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
2380
static int tb_switch_get_generation(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2425
static bool tb_switch_exceeds_max_depth(const struct tb_switch *sw, int depth)
drivers/thunderbolt/switch.c
2451
struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
drivers/thunderbolt/switch.c
2454
struct tb_switch *sw;
drivers/thunderbolt/switch.c
2460
struct tb_switch *parent_sw = tb_to_switch(parent);
drivers/thunderbolt/switch.c
2569
struct tb_switch *
drivers/thunderbolt/switch.c
2572
struct tb_switch *sw;
drivers/thunderbolt/switch.c
2605
int tb_switch_configure(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2669
int tb_switch_configuration_valid(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2676
static int tb_switch_set_uuid(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2722
static int tb_switch_add_dma_port(struct tb_switch *sw)
drivers/thunderbolt/switch.c
276
int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/switch.c
2821
static void tb_switch_default_link_ports(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2851
static bool tb_switch_lane_bonding_possible(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2863
static int tb_switch_update_link_attributes(struct tb_switch *sw)
drivers/thunderbolt/switch.c
287
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/switch.c
2896
static void tb_switch_link_init(struct tb_switch *sw)
drivers/thunderbolt/switch.c
2950
static int tb_switch_lane_bonding_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3002
static int tb_switch_lane_bonding_disable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3034
static int tb_switch_asym_enable(struct tb_switch *sw, enum tb_link_width width)
drivers/thunderbolt/switch.c
3077
static int tb_switch_asym_disable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
310
struct tb_switch *sw = tb_to_switch(nvm->dev);
drivers/thunderbolt/switch.c
3127
int tb_switch_set_link_width(struct tb_switch *sw, enum tb_link_width width)
drivers/thunderbolt/switch.c
3198
int tb_switch_configure_link(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3227
void tb_switch_unconfigure_link(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3256
static void tb_switch_credits_init(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3266
static int tb_switch_port_hotplug_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
328
static int tb_switch_nvm_init(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3298
int tb_switch_add(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3430
void tb_switch_remove(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3471
void tb_sw_set_unplugged(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3492
static int tb_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime)
drivers/thunderbolt/switch.c
3504
static void tb_switch_check_wakes(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3525
int tb_switch_resume(struct tb_switch *sw, bool runtime)
drivers/thunderbolt/switch.c
358
static int tb_switch_nvm_add(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3641
void tb_switch_suspend(struct tb_switch *sw, bool runtime)
drivers/thunderbolt/switch.c
3692
bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3709
int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3735
void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/switch.c
3761
struct tb_switch *sw = tb_to_switch(dev);
drivers/thunderbolt/switch.c
3795
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
3822
struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid)
drivers/thunderbolt/switch.c
3848
struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route)
drivers/thunderbolt/switch.c
3874
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/switch.c
3891
static int tb_switch_pcie_bridge_write(struct tb_switch *sw, unsigned int bridge,
drivers/thunderbolt/switch.c
394
static void tb_switch_nvm_remove(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3944
int tb_switch_pcie_l1_enable(struct tb_switch *sw)
drivers/thunderbolt/switch.c
3946
struct tb_switch *parent = tb_switch_parent(sw);
drivers/thunderbolt/switch.c
3980
int tb_switch_xhci_connect(struct tb_switch *sw)
drivers/thunderbolt/switch.c
4024
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
838
static inline bool tb_switch_is_reachable(const struct tb_switch *parent,
drivers/thunderbolt/switch.c
839
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
2743
struct tb_switch *sw;
drivers/thunderbolt/tb.c
283
struct tb_switch *sw;
drivers/thunderbolt/tb.c
2977
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
3091
static void tb_restore_children(struct tb_switch *sw)
drivers/thunderbolt/tb.c
3123
static void 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
1023
static inline bool tb_switch_is_icm(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1028
int tb_switch_set_link_width(struct tb_switch *sw, enum tb_link_width width);
drivers/thunderbolt/tb.h
1029
int tb_switch_configure_link(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1030
void tb_switch_unconfigure_link(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1032
bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1033
int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1034
void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1036
int tb_switch_tmu_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1037
int tb_switch_tmu_post_time(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1038
int tb_switch_tmu_disable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1039
int tb_switch_tmu_enable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1040
int tb_switch_tmu_configure(struct tb_switch *sw, enum tb_switch_tmu_mode mode);
drivers/thunderbolt/tb.h
1052
static inline bool tb_switch_tmu_is_configured(const struct tb_switch *sw,
drivers/thunderbolt/tb.h
1065
static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1073
int tb_switch_clx_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1074
int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx);
drivers/thunderbolt/tb.h
1075
int tb_switch_clx_disable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1088
static inline bool tb_switch_clx_is_enabled(const struct tb_switch *sw,
drivers/thunderbolt/tb.h
1094
int tb_switch_pcie_l1_enable(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1096
int tb_switch_xhci_connect(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1097
void tb_switch_xhci_disconnect(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1171
int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec);
drivers/thunderbolt/tb.h
1172
int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap);
drivers/thunderbolt/tb.h
1173
int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset);
drivers/thunderbolt/tb.h
1217
int tb_drom_read(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1218
int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);
drivers/thunderbolt/tb.h
1220
int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid);
drivers/thunderbolt/tb.h
1232
int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags);
drivers/thunderbolt/tb.h
1233
int tb_lc_set_sleep(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1234
bool tb_lc_lane_bonding_possible(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1235
bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1236
int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1237
int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1238
int tb_lc_force_power(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1271
static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd)
drivers/thunderbolt/tb.h
1311
static inline unsigned int usb4_switch_version(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1322
static inline bool tb_switch_is_usb4(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
1327
void usb4_switch_check_wakes(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1328
int usb4_switch_setup(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1329
int usb4_switch_configuration_valid(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1330
int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid);
drivers/thunderbolt/tb.h
1331
int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
1333
bool usb4_switch_lane_bonding_possible(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1334
int usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime);
drivers/thunderbolt/tb.h
1335
int usb4_switch_set_sleep(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1336
int usb4_switch_nvm_sector_size(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1337
int usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
1339
int usb4_switch_nvm_set_offset(struct tb_switch *sw, unsigned int address);
drivers/thunderbolt/tb.h
1340
int usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address,
drivers/thunderbolt/tb.h
1342
int usb4_switch_nvm_authenticate(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1343
int usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status);
drivers/thunderbolt/tb.h
1344
int usb4_switch_credits_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1345
bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1346
int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1347
int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
drivers/thunderbolt/tb.h
1348
struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/tb.h
1350
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/tb.h
1352
int usb4_switch_add_ports(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1353
void usb4_switch_remove_ports(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1501
int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port);
drivers/thunderbolt/tb.h
1508
void tb_check_quirks(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1541
void tb_switch_debugfs_init(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1542
void tb_switch_debugfs_remove(struct tb_switch *sw);
drivers/thunderbolt/tb.h
1552
static inline void tb_switch_debugfs_init(struct tb_switch *sw) { }
drivers/thunderbolt/tb.h
1553
static inline void tb_switch_debugfs_remove(struct tb_switch *sw) { }
drivers/thunderbolt/tb.h
282
struct tb_switch *sw;
drivers/thunderbolt/tb.h
520
int (*runtime_suspend_switch)(struct tb_switch *sw);
drivers/thunderbolt/tb.h
521
int (*runtime_resume_switch)(struct tb_switch *sw);
drivers/thunderbolt/tb.h
526
int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
527
int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
528
int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
529
int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
drivers/thunderbolt/tb.h
538
int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata,
drivers/thunderbolt/tb.h
541
int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw,
drivers/thunderbolt/tb.h
565
static inline struct tb_port *tb_upstream_port(struct tb_switch *sw)
drivers/thunderbolt/tb.h
583
static inline u64 tb_route(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
588
static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw)
drivers/thunderbolt/tb.h
672
static inline int tb_sw_read(struct tb_switch *sw, void *buffer,
drivers/thunderbolt/tb.h
686
static inline int tb_sw_write(struct tb_switch *sw, const void *buffer,
drivers/thunderbolt/tb.h
736
const struct tb_switch *__sw = (sw); \
drivers/thunderbolt/tb.h
784
int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
785
int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
786
int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
787
int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
drivers/thunderbolt/tb.h
844
int tb_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/tb.h
846
struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
drivers/thunderbolt/tb.h
848
struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
drivers/thunderbolt/tb.h
850
int tb_switch_configure(struct tb_switch *sw);
drivers/thunderbolt/tb.h
851
int tb_switch_configuration_valid(struct tb_switch *sw);
drivers/thunderbolt/tb.h
852
int tb_switch_add(struct tb_switch *sw);
drivers/thunderbolt/tb.h
853
void tb_switch_remove(struct tb_switch *sw);
drivers/thunderbolt/tb.h
854
void tb_switch_suspend(struct tb_switch *sw, bool runtime);
drivers/thunderbolt/tb.h
855
int tb_switch_resume(struct tb_switch *sw, bool runtime);
drivers/thunderbolt/tb.h
856
int tb_switch_reset(struct tb_switch *sw);
drivers/thunderbolt/tb.h
857
int tb_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit,
drivers/thunderbolt/tb.h
859
void tb_sw_set_unplugged(struct tb_switch *sw);
drivers/thunderbolt/tb.h
860
struct tb_port *tb_switch_find_port(struct tb_switch *sw,
drivers/thunderbolt/tb.h
862
struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
drivers/thunderbolt/tb.h
864
struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
drivers/thunderbolt/tb.h
865
struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
drivers/thunderbolt/tb.h
878
static inline struct tb_switch *tb_switch_get(struct tb_switch *sw)
drivers/thunderbolt/tb.h
885
static inline void tb_switch_put(struct tb_switch *sw)
drivers/thunderbolt/tb.h
895
static inline struct tb_switch *tb_to_switch(const struct device *dev)
drivers/thunderbolt/tb.h
898
return container_of(dev, struct tb_switch, dev);
drivers/thunderbolt/tb.h
902
static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw)
drivers/thunderbolt/tb.h
915
static inline struct tb_port *tb_switch_downstream_port(struct tb_switch *sw)
drivers/thunderbolt/tb.h
928
static inline int tb_switch_depth(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
933
static inline bool tb_switch_is_light_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
939
static inline bool tb_switch_is_eagle_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
945
static inline bool tb_switch_is_cactus_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
957
static inline bool tb_switch_is_falcon_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
969
static inline bool tb_switch_is_alpine_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
984
static inline bool tb_switch_is_titan_ridge(const struct tb_switch *sw)
drivers/thunderbolt/tb.h
997
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
1671
struct tb_switch *host, *dev1, *dev2;
drivers/thunderbolt/test.c
1726
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
1794
struct tb_switch *host;
drivers/thunderbolt/test.c
1837
struct tb_switch *host;
drivers/thunderbolt/test.c
1874
struct tb_switch *host;
drivers/thunderbolt/test.c
190
static struct tb_switch *alloc_dev_default(struct kunit *test,
drivers/thunderbolt/test.c
1909
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
1977
struct tb_switch *host;
drivers/thunderbolt/test.c
2026
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2059
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2092
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2125
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2175
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2219
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2252
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2289
struct tb_switch *host, *dev;
drivers/thunderbolt/test.c
2384
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2414
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2451
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2488
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2518
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2548
struct tb_switch *host, struct tb_switch *dev)
drivers/thunderbolt/test.c
2581
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
1019
struct tb_switch *sw = in->sw;
drivers/thunderbolt/tunnel.c
130
const struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1394
const struct tb_switch *sw = tunnel->src_port->sw;
drivers/thunderbolt/tunnel.c
1457
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1486
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
1756
const struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
2163
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
394
struct tb_switch *sw = port->sw;
drivers/thunderbolt/tunnel.c
618
static bool tb_dp_is_usb4(const struct tb_switch *sw)
drivers/thunderbolt/usb4.c
1015
struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1048
struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
drivers/thunderbolt/usb4.c
1078
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
1111
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
316
int usb4_switch_configuration_valid(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
347
int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid)
drivers/thunderbolt/usb4.c
356
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
386
int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/usb4.c
402
bool usb4_switch_lane_bonding_possible(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
426
int usb4_switch_set_wake(struct tb_switch *sw, unsigned int flags, bool runtime)
drivers/thunderbolt/usb4.c
507
int usb4_switch_set_sleep(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
536
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
556
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
588
int usb4_switch_nvm_read(struct tb_switch *sw, unsigned int address, void *buf,
drivers/thunderbolt/usb4.c
605
int usb4_switch_nvm_set_offset(struct tb_switch *sw, unsigned int address)
drivers/thunderbolt/usb4.c
626
struct tb_switch *sw = data;
drivers/thunderbolt/usb4.c
652
int usb4_switch_nvm_write(struct tb_switch *sw, unsigned int address,
drivers/thunderbolt/usb4.c
680
int usb4_switch_nvm_authenticate(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
714
int usb4_switch_nvm_authenticate_status(struct tb_switch *sw, u32 *status)
drivers/thunderbolt/usb4.c
758
int usb4_switch_credits_init(struct tb_switch *sw)
drivers/thunderbolt/usb4.c
900
bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
933
int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
958
int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in)
drivers/thunderbolt/usb4.c
982
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
2125
struct tb_switch *parent_sw = tb_to_switch(parent);
drivers/thunderbolt/xdomain.c
2493
static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw,
include/linux/thunderbolt.h
88
struct tb_switch *root_switch;