Home
last modified time | relevance | path

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

/drivers/thunderbolt/
Dtb.h142 struct tb_switch { struct
202 struct tb_switch *sw;
383 int (*runtime_suspend_switch)(struct tb_switch *sw);
384 int (*runtime_resume_switch)(struct tb_switch *sw);
389 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
390 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
391 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
417 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
435 static inline u64 tb_route(const struct tb_switch *sw) in tb_route()
440 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
[all …]
Dswitch.c42 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status()
54 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status()
65 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status()
90 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status()
103 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write()
171 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port()
211 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port()
256 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port()
271 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port()
280 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable()
[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()
161 static int tb_lc_set_wake_one(struct tb_switch *sw, unsigned int offset, in tb_lc_set_wake_one()
196 int tb_lc_set_wake(struct tb_switch *sw, unsigned int flags) in tb_lc_set_wake()
235 int tb_lc_set_sleep(struct tb_switch *sw) in tb_lc_set_sleep()
279 bool tb_lc_lane_bonding_possible(struct tb_switch *sw) in tb_lc_lane_bonding_possible()
300 static int tb_lc_dp_sink_from_port(const struct tb_switch *sw, in tb_lc_dp_sink_from_port()
[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()
287 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only()
309 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic()
[all …]
Dusb4.c55 static int usb4_switch_wait_for_bit(struct tb_switch *sw, u32 offset, u32 bit, in usb4_switch_wait_for_bit()
77 static int usb4_switch_op_read_data(struct tb_switch *sw, void *data, in usb4_switch_op_read_data()
86 static int usb4_switch_op_write_data(struct tb_switch *sw, const void *data, in usb4_switch_op_write_data()
95 static int usb4_switch_op_read_metadata(struct tb_switch *sw, u32 *metadata) in usb4_switch_op_read_metadata()
100 static int usb4_switch_op_write_metadata(struct tb_switch *sw, u32 metadata) in usb4_switch_op_write_metadata()
175 static int usb4_switch_op(struct tb_switch *sw, u16 opcode, u8 *status) in usb4_switch_op()
200 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes()
265 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup()
268 struct tb_switch *parent; in usb4_switch_setup()
334 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid()
[all …]
Dtb.c69 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources()
86 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources()
105 static void tb_discover_tunnels(struct tb_switch *sw) in tb_discover_tunnels()
135 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels()
181 struct tb_switch *sw = port->sw; in tb_scan_xdomain()
202 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu()
226 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
245 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down()
279 struct tb_switch *sw; in tb_find_first_usb3_tunnel()
433 static int tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) in tb_tunnel_usb3()
[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(struct seq_file *s, struct tb_switch *sw, in cap_show()
398 struct tb_switch *sw = port->sw; in port_regs_show()
427 static void switch_cap_show(struct tb_switch *sw, struct seq_file *s, in switch_cap_show()
467 static void switch_caps_show(struct tb_switch *sw, struct seq_file *s) in switch_caps_show()
478 static int switch_basic_regs_show(struct tb_switch *sw, struct seq_file *s) in switch_basic_regs_show()
502 struct tb_switch *sw = s->private; in switch_regs_show()
554 struct tb_switch *sw = port->sw; in path_show()
[all …]
Dquirks.c10 static void quirk_force_power_link(struct tb_switch *sw) in quirk_force_power_link()
18 void (*hook)(struct tb_switch *sw);
32 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
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()
145 static struct tb_switch *alloc_dev_default(struct kunit *test, in alloc_dev_default()
146 struct tb_switch *parent, in alloc_dev_default()
150 struct tb_switch *sw; in alloc_dev_default()
275 static struct tb_switch *alloc_dev_with_dpin(struct kunit *test, in alloc_dev_with_dpin()
276 struct tb_switch *parent, in alloc_dev_with_dpin()
279 struct tb_switch *sw; in alloc_dev_with_dpin()
[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()
305 struct tb_switch *sw = dma->sw; in dma_port_flash_read_block()
329 struct tb_switch *sw = dma->sw; in dma_port_flash_write_block()
484 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()
Dicm.c460 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) in icm_fr_approve_switch()
487 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) in icm_fr_add_switch_key()
514 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, in icm_fr_challenge_switch_key()
589 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch()
593 struct tb_switch *sw; in alloc_switch()
611 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch()
627 static void update_switch(struct tb_switch *parent_sw, struct tb_switch *sw, in update_switch()
652 static void remove_switch(struct tb_switch *sw) in remove_switch()
654 struct tb_switch *parent_sw; in remove_switch()
661 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain()
[all …]
Ddma_port.h15 struct tb_switch;
21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
Ddomain.c613 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch()
615 struct tb_switch *parent_sw; in tb_domain_approve_switch()
639 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key()
641 struct tb_switch *parent_sw; in tb_domain_approve_switch_key()
671 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key()
676 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
Dpath.c39 struct tb_switch *sw; in tb_path_find_dst_port()
107 struct tb_switch *sw; in tb_path_discover()
Dtunnel.c100 static int tb_initial_credits(const struct tb_switch *sw) in tb_initial_credits()
253 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4()
548 const struct tb_switch *sw = in->sw; in tb_dp_consumed_bandwidth()
Dxdomain.c1275 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc()
1462 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()