Home
last modified time | relevance | path

Searched refs:tb_switch (Results 1 – 20 of 20) sorted by relevance

/Linux-v5.15/drivers/thunderbolt/
Dtb.h157 struct tb_switch { struct
231 struct tb_switch *sw;
442 int (*runtime_suspend_switch)(struct tb_switch *sw);
443 int (*runtime_resume_switch)(struct tb_switch *sw);
448 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
449 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
450 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
451 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
460 int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata,
463 int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw,
[all …]
Dlc.c16 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid()
23 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc()
32 struct tb_switch *sw = port->sw; in find_port_lc_cap()
51 struct tb_switch *sw = port->sw; in tb_lc_set_port_configured()
109 struct tb_switch *sw = port->sw; in tb_lc_set_xdomain_configured()
173 struct tb_switch *sw = port->sw; in tb_lc_start_lane_initialization()
196 static int tb_lc_set_wake_one(struct tb_switch *sw, unsigned int offset, in tb_lc_set_wake_one()
233 int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags) in tb_lc_set_wake()
272 int tb_lc_set_sleep(struct tb_switch *sw) in tb_lc_set_sleep()
316 bool tb_lc_lane_bonding_possible(struct tb_switch *sw) in tb_lc_lane_bonding_possible()
[all …]
Dswitch.c37 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status()
49 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
60 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
85 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
98 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
166 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
206 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
251 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
266 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
275 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
[all …]
Dtmu.c14 static const char *tb_switch_tmu_mode_name(const struct tb_switch *sw) in tb_switch_tmu_mode_name()
40 static bool tb_switch_tmu_ucap_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_supported()
53 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read()
67 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) in tb_switch_tmu_rate_write()
131 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) in tb_switch_tmu_set_time_disruption()
158 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init()
208 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time()
211 struct tb_switch *root_switch = sw->tb->root_switch; in tb_switch_tmu_post_time()
298 int tb_switch_tmu_disable(struct tb_switch *sw) in tb_switch_tmu_disable()
310 struct tb_switch *parent = tb_switch_parent(sw); in tb_switch_tmu_disable()
[all …]
Deeprom.c18 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_write()
26 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) in tb_eeprom_ctl_read()
42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active()
71 static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, in tb_eeprom_transfer()
96 static int tb_eeprom_out(struct tb_switch *sw, u8 val) in tb_eeprom_out()
116 static int tb_eeprom_in(struct tb_switch *sw, u8 *val) in tb_eeprom_in()
137 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset) in tb_eeprom_get_drom_offset()
168 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val, in tb_eeprom_read_n()
302 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only()
324 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic()
[all …]
Dquirks.c10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link()
15 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation()
28 void (*hook)(struct tb_switch *sw);
48 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
Dusb4.c53 static int usb4_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in usb4_switch_wait_for_bit()
75 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, in usb4_native_switch_op()
130 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, in __usb4_switch_op()
163 static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode, in usb4_switch_op()
169 static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode, in usb4_switch_op_data()
178 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes()
243 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup()
246 struct tb_switch *parent; in usb4_switch_setup()
317 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid()
326 struct tb_switch *sw = data; in usb4_switch_drom_read_block()
[all …]
Ddebugfs.c123 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write()
179 struct tb_switch *sw = s->private; in switch_regs_write()
212 struct tb_switch *sw = port->sw; in counters_write()
254 static void cap_show_by_dw(struct seq_file *s, struct tb_switch *sw, in cap_show_by_dw()
277 static void cap_show(struct seq_file *s, struct tb_switch *sw, in cap_show()
409 struct tb_switch *sw = port->sw; in port_regs_show()
438 static void switch_cap_show(struct tb_switch *sw, struct seq_file *s, in switch_cap_show()
478 static void switch_caps_show(struct tb_switch *sw, struct seq_file *s) in switch_caps_show()
489 static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s) in switch_basic_regs_show()
513 struct tb_switch *sw = s->private; in switch_regs_show()
[all …]
Dtest.c36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch()
39 struct tb_switch *sw; in alloc_switch()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host()
74 struct tb_switch *sw; in alloc_host()
154 static struct tb_switch *alloc_host_usb4(struct kunit *test) in alloc_host_usb4()
156 struct tb_switch *sw; in alloc_host_usb4()
173 static struct tb_switch *alloc_dev_default(struct kunit *test, in alloc_dev_default()
174 struct tb_switch *parent, in alloc_dev_default()
178 struct tb_switch *sw; in alloc_dev_default()
323 static struct tb_switch *alloc_dev_with_dpin(struct kunit *test, in alloc_dev_with_dpin()
[all …]
Dtb.c72 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources()
89 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources()
108 static void tb_discover_tunnels(struct tb_switch *sw) in tb_discover_tunnels()
138 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels()
184 struct tb_switch *sw = port->sw; in tb_scan_xdomain()
208 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu()
232 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
251 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down()
285 struct tb_switch *sw; in tb_find_first_usb3_tunnel()
439 static int tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) in tb_tunnel_usb3()
[all …]
Ddma_port.c55 struct tb_switch *sw;
168 static int dma_find_port(struct tb_switch *sw) in dma_find_port()
201 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) in dma_port_alloc()
243 struct tb_switch *sw = dma->sw; in dma_port_wait_for_completion()
281 struct tb_switch *sw = dma->sw; in dma_port_request()
306 struct tb_switch *sw = dma->sw; in dma_port_flash_read_block()
328 struct tb_switch *sw = dma->sw; in dma_port_flash_write_block()
422 struct tb_switch *sw = dma->sw; in dma_port_flash_update_auth_status()
Dcap.c20 struct tb_switch *sw = port->sw; in tb_port_enable_tmu()
145 int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset) in tb_switch_next_cap()
188 int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) in tb_switch_find_cap()
221 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec) in tb_switch_find_vse_cap()
Ddma_port.h15 struct tb_switch;
21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
Dicm.c476 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) in icm_fr_approve_switch()
503 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) in icm_fr_add_switch_key()
530 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, in icm_fr_challenge_switch_key()
609 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch()
613 struct tb_switch *sw; in alloc_switch()
631 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch()
647 static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, in update_switch()
672 static void remove_switch(struct tb_switch *sw) in remove_switch()
674 struct tb_switch *parent_sw; in remove_switch()
681 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain()
[all …]
Ddomain.c633 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_disapprove_switch()
650 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch()
652 struct tb_switch *parent_sw; in tb_domain_approve_switch()
676 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key()
678 struct tb_switch *parent_sw; in tb_domain_approve_switch_key()
708 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key()
713 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
Dtunnel.c84 const struct tb_switch *sw = port->sw; in tb_available_credits()
159 struct tb_switch *sw = port->sw; in tb_pci_init_credits()
331 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4()
626 const struct tb_switch *sw = in->sw; in tb_dp_consumed_bandwidth()
686 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits()
712 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits()
911 const struct tb_switch *sw = port->sw; in tb_dma_available_credits()
1311 struct tb_switch *sw = port->sw; in tb_usb3_init_credits()
Dacpi.c311 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) in tb_acpi_switch_find_companion()
314 struct tb_switch *parent_sw; in tb_acpi_switch_find_companion()
Dpath.c39 struct tb_switch *sw; in tb_path_find_dst_port()
107 struct tb_switch *sw; in tb_path_discover()
Dxdomain.c970 static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd) in tb_xdomain_parent()
1377 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc()
1692 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
/Linux-v5.15/include/linux/
Dthunderbolt.h81 struct tb_switch *root_switch;