| /linux/drivers/thunderbolt/ |
| A D | tb.h | 157 struct tb_switch { struct 231 struct tb_switch *sw; 641 const struct tb_switch *__sw = (sw); \ 738 int tb_switch_add(struct tb_switch *sw); 741 int tb_switch_resume(struct tb_switch *sw); 742 int tb_switch_reset(struct tb_switch *sw); 762 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get() 786 static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw) in tb_switch_parent() 982 int tb_drom_read(struct tb_switch *sw); 992 int tb_lc_set_sleep(struct tb_switch *sw); [all …]
|
| A D | lc.c | 16 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() 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() 337 static int tb_lc_dp_sink_from_port(const struct tb_switch *sw, in tb_lc_dp_sink_from_port() [all …]
|
| A D | switch.c | 861 const struct tb_switch *sw) in tb_switch_is_reachable() 1433 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset() 1497 struct tb_switch *sw = tb_to_switch(dev); in authorized_show() 1505 struct tb_switch *sw; in disapprove_switch() 1585 struct tb_switch *sw = tb_to_switch(dev); in authorized_store() 1607 struct tb_switch *sw = tb_to_switch(dev); in boot_show() 1616 struct tb_switch *sw = tb_to_switch(dev); in device_show() 2119 struct tb_switch *sw; in tb_switch_alloc() 2227 struct tb_switch * 2230 struct tb_switch *sw; in tb_switch_alloc_safe_mode() [all …]
|
| A D | tmu.c | 14 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() 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() 339 int tb_switch_tmu_enable(struct tb_switch *sw) in tb_switch_tmu_enable() [all …]
|
| A D | eeprom.c | 42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active() 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() 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() 360 static int tb_drom_parse_entry_port(struct tb_switch *sw, in tb_drom_parse_entry_port() 441 static int tb_drom_copy_efi(struct tb_switch *sw, u16 *size) in tb_drom_copy_efi() 472 static int tb_drom_copy_nvm(struct tb_switch *sw, u16 *size) in tb_drom_copy_nvm() 547 static int tb_drom_parse(struct tb_switch *sw) in tb_drom_parse() 575 static int usb4_drom_parse(struct tb_switch *sw) in usb4_drom_parse() [all …]
|
| A D | usb4.c | 243 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup() 246 struct tb_switch *parent; in usb4_switch_setup() 326 struct tb_switch *sw = data; in usb4_switch_drom_read_block() 467 int usb4_switch_set_sleep(struct tb_switch *sw) in usb4_switch_set_sleep() 495 int usb4_switch_nvm_sector_size(struct tb_switch *sw) in usb4_switch_nvm_sector_size() 515 struct tb_switch *sw = data; in usb4_switch_nvm_read_block() 581 struct tb_switch *sw = data; in usb4_switch_nvm_write_next_block() 629 int usb4_switch_nvm_authenticate(struct tb_switch *sw) in usb4_switch_nvm_authenticate() 705 int usb4_switch_credits_init(struct tb_switch *sw) in usb4_switch_credits_init() 1006 int usb4_switch_add_ports(struct tb_switch *sw) in usb4_switch_add_ports() [all …]
|
| A D | quirks.c | 10 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()
|
| A D | test.c | 39 struct tb_switch *sw; in alloc_switch() 74 struct tb_switch *sw; in alloc_host() 156 struct tb_switch *sw; in alloc_host_usb4() 178 struct tb_switch *sw; in alloc_dev_default() 327 struct tb_switch *sw; in alloc_dev_with_dpin() 2210 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_PCIE_TUNNEL() 2240 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DP_TUNNEL1() 2277 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DP_TUNNEL2() 2314 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_USB3_TUNNEL() 2344 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DMA_TUNNEL1() [all …]
|
| A D | tb.c | 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() 285 struct tb_switch *sw; in tb_find_first_usb3_tunnel() 552 static void tb_scan_switch(struct tb_switch *sw) in tb_scan_switch() 572 struct tb_switch *sw; in tb_scan_port() 1051 struct tb_switch *parent_sw; in tb_tunnel_pci() 1090 struct tb_switch *sw; in tb_approve_xdomain_paths() 1124 struct tb_switch *sw; in __tb_disconnect_xdomain_paths() 1168 struct tb_switch *sw; in tb_handle_hotplug() [all …]
|
| A D | debugfs.c | 123 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() 513 struct tb_switch *sw = s->private; in switch_regs_show() 565 struct tb_switch *sw = port->sw; in path_show() 628 struct tb_switch *sw = port->sw; in counters_show() 663 void tb_switch_debugfs_init(struct tb_switch *sw) in tb_switch_debugfs_init() [all …]
|
| A D | dma_port.c | 55 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()
|
| A D | cap.c | 20 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()
|
| A D | icm.c | 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() 674 struct tb_switch *parent_sw; in remove_switch() 714 struct tb_switch *sw; in remove_xdomain() 727 struct tb_switch *sw, *parent_sw; in icm_fr_device_connected() 874 struct tb_switch *sw; in icm_fr_device_disconnected() 909 struct tb_switch *sw; in icm_fr_xdomain_connected() 1306 struct tb_switch *sw; in icm_tr_device_disconnected() [all …]
|
| A D | dma_port.h | 15 struct tb_switch; 21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
|
| A D | domain.c | 633 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()
|
| A D | tunnel.c | 84 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()
|
| A D | acpi.c | 311 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()
|
| A D | path.c | 39 struct tb_switch *sw; in tb_path_find_dst_port() 107 struct tb_switch *sw; in tb_path_discover()
|
| A D | xdomain.c | 970 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/include/linux/ |
| A D | thunderbolt.h | 81 struct tb_switch *root_switch;
|