| /Linux-v6.1/drivers/thunderbolt/ |
| D | tb.h | 179 struct tb_switch { struct 256 struct tb_switch *sw; 475 int (*runtime_suspend_switch)(struct tb_switch *sw); 476 int (*runtime_resume_switch)(struct tb_switch *sw); 481 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw); 482 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 483 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 484 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw, 493 int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata, 496 int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw, [all …]
|
| D | tmu.c | 14 static int tb_switch_set_tmu_mode_params(struct tb_switch *sw, in tb_switch_set_tmu_mode_params() 63 static const char *tb_switch_tmu_mode_name(const struct tb_switch *sw) in tb_switch_tmu_mode_name() 89 static bool tb_switch_tmu_ucap_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_supported() 102 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read() 116 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) in tb_switch_tmu_rate_write() 202 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) in tb_switch_tmu_set_time_disruption() 235 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init() 285 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time() 289 struct tb_switch *root_switch = sw->tb->root_switch; in tb_switch_tmu_post_time() 384 int tb_switch_tmu_disable(struct tb_switch *sw) in tb_switch_tmu_disable() [all …]
|
| 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() 205 struct tb_switch *sw = port->sw; in tb_lc_is_clx_supported() 228 struct tb_switch *sw = port->sw; in tb_lc_is_usb_plugged() 254 struct tb_switch *sw = port->sw; in tb_lc_is_xhci_connected() 274 struct tb_switch *sw = port->sw; in __tb_lc_xhci_connect() [all …]
|
| D | switch.c | 40 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) in __nvm_get_auth_status() 52 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) in nvm_get_auth_status() 63 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) in nvm_set_auth_status() 88 static void nvm_clear_auth_status(const struct tb_switch *sw) in nvm_clear_auth_status() 101 static int nvm_validate_and_write(struct tb_switch *sw) in nvm_validate_and_write() 129 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port() 169 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port() 214 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port() 229 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port() 238 static inline bool nvm_readable(struct tb_switch *sw) in nvm_readable() [all …]
|
| D | eeprom.c | 18 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 …]
|
| 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()
|
| D | usb4.c | 53 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, in usb4_native_switch_op() 108 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, in __usb4_switch_op() 141 static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode, in usb4_switch_op() 147 static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode, in usb4_switch_op_data() 156 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes() 221 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup() 224 struct tb_switch *parent; in usb4_switch_setup() 295 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid() 304 struct tb_switch *sw = data; in usb4_switch_drom_read_block() 332 int usb4_switch_drom_read(struct tb_switch *sw, unsigned int address, void *buf, in usb4_switch_drom_read() [all …]
|
| D | tb.c | 72 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() 134 static void tb_switch_discover_tunnels(struct tb_switch *sw, in tb_switch_discover_tunnels() 189 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels() 222 struct tb_switch *sw = port->sw; in tb_scan_xdomain() 246 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu() 270 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port() 289 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down() 323 struct tb_switch *sw; in tb_find_first_usb3_tunnel() 477 static int tb_tunnel_usb3(struct tb *tb, struct tb_switch *sw) in tb_tunnel_usb3() [all …]
|
| D | test.c | 36 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 …]
|
| 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()
|
| 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()
|
| D | debugfs.c | 124 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write() 180 struct tb_switch *sw = s->private; in switch_regs_write() 554 struct tb_switch *sw = port->sw; in margining_run_write() 951 static void margining_switch_init(struct tb_switch *sw) in margining_switch_init() 954 struct tb_switch *parent_sw; in margining_switch_init() 968 static void margining_switch_remove(struct tb_switch *sw) in margining_switch_remove() 970 struct tb_switch *parent_sw; in margining_switch_remove() 988 struct tb_switch *parent_sw; in margining_xdomain_init() 999 struct tb_switch *parent_sw; in margining_xdomain_remove() 1007 static inline void margining_switch_init(struct tb_switch *sw) { } in margining_switch_init() [all …]
|
| D | dma_port.h | 15 struct tb_switch; 21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
|
| D | icm.c | 476 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 …]
|
| D | nvm.c | 54 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_version() 87 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_validate() 134 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_write_headers() 158 struct tb_switch *sw = tb_to_switch(nvm->dev); in asmedia_switch_nvm_version() 288 const struct tb_switch *sw = tb_to_switch(dev); in tb_nvm_alloc()
|
| D | domain.c | 625 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_disapprove_switch() 642 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch() 644 struct tb_switch *parent_sw; in tb_domain_approve_switch() 668 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key() 670 struct tb_switch *parent_sw; in tb_domain_approve_switch_key() 700 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key() 705 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
|
| D | acpi.c | 304 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) in tb_acpi_switch_find_companion() 307 struct tb_switch *parent_sw; in tb_acpi_switch_find_companion()
|
| D | tunnel.c | 84 const struct tb_switch *sw = port->sw; in tb_available_credits() 162 struct tb_switch *sw = port->sw; in tb_pci_init_credits() 336 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4() 641 const struct tb_switch *sw = in->sw; in tb_dp_consumed_bandwidth() 701 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits() 727 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits() 930 const struct tb_switch *sw = port->sw; in tb_dma_available_credits() 1330 struct tb_switch *sw = port->sw; in tb_usb3_init_credits()
|
| D | path.c | 39 struct tb_switch *sw; in tb_path_find_dst_port() 109 struct tb_switch *sw; in tb_path_discover()
|
| D | xdomain.c | 540 struct tb_switch *sw = tb_to_switch(xd->dev.parent); in tb_xdp_link_state_status_response() 1255 struct tb_switch *sw = tb_to_switch(xd->dev.parent); in tb_xdomain_link_state_change() 1843 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc() 2160 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
|
| /Linux-v6.1/include/linux/ |
| D | thunderbolt.h | 81 struct tb_switch *root_switch;
|