/linux-6.6.21/drivers/thunderbolt/ |
D | tb.h | 171 struct tb_switch { struct 270 struct tb_switch *sw; 497 int (*runtime_suspend_switch)(struct tb_switch *sw); 498 int (*runtime_resume_switch)(struct tb_switch *sw); 503 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw); 504 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 505 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 506 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw, 515 int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata, 518 int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw, [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 | 37 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() 126 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) in nvm_authenticate_host_dma_port() 166 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) in nvm_authenticate_device_dma_port() 211 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) in nvm_authenticate_start_dma_port() 226 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) in nvm_authenticate_complete_dma_port() 235 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() 16 static void quirk_dp_credit_allocation(struct tb_switch *sw) in quirk_dp_credit_allocation() 24 static void quirk_clx_disable(struct tb_switch *sw) in quirk_clx_disable() 30 static void quirk_usb3_maximum_bandwidth(struct tb_switch *sw) in quirk_usb3_maximum_bandwidth() 51 void (*hook)(struct tb_switch *sw); 104 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
|
D | tmu.c | 58 static bool tb_switch_tmu_enhanced_is_supported(const struct tb_switch *sw) in tb_switch_tmu_enhanced_is_supported() 63 static int tb_switch_set_tmu_mode_params(struct tb_switch *sw, in tb_switch_set_tmu_mode_params() 122 static bool tb_switch_tmu_ucap_is_supported(struct tb_switch *sw) in tb_switch_tmu_ucap_is_supported() 135 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read() 149 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) in tb_switch_tmu_rate_write() 332 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) in tb_switch_tmu_set_time_disruption() 357 static int tmu_mode_init(struct tb_switch *sw) in tmu_mode_init() 409 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init() 443 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time() 447 struct tb_switch *root_switch = sw->tb->root_switch; in tb_switch_tmu_post_time() [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_host_br(struct kunit *test) in alloc_host_br() 175 struct tb_switch *sw; in alloc_host_br() 190 static struct tb_switch *alloc_dev_default(struct kunit *test, in alloc_dev_default() 191 struct tb_switch *parent, in alloc_dev_default() [all …]
|
D | clx.c | 186 int tb_switch_clx_init(struct tb_switch *sw) in tb_switch_clx_init() 215 static int tb_switch_pm_secondary_resolve(struct tb_switch *sw) in tb_switch_pm_secondary_resolve() 232 static int tb_switch_mask_clx_objections(struct tb_switch *sw) in tb_switch_mask_clx_objections() 280 bool tb_switch_clx_is_supported(const struct tb_switch *sw) in tb_switch_clx_is_supported() 318 int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx) in tb_switch_clx_enable() 321 struct tb_switch *parent_sw; in tb_switch_clx_enable() 396 int tb_switch_clx_disable(struct tb_switch *sw) in tb_switch_clx_disable()
|
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 | usb4.c | 55 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, in usb4_native_switch_op() 110 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, in __usb4_switch_op() 143 static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode, in usb4_switch_op() 149 static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode, in usb4_switch_op_data() 158 static void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes() 239 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup() 241 struct tb_switch *parent = tb_switch_parent(sw); in usb4_switch_setup() 309 int usb4_switch_configuration_valid(struct tb_switch *sw) in usb4_switch_configuration_valid() 338 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid() 347 struct tb_switch *sw = data; in usb4_switch_drom_read_block() [all …]
|
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 | 127 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write() 183 struct tb_switch *sw = s->private; in switch_regs_write() 557 struct tb_switch *sw = port->sw; in margining_run_write() 559 struct tb_switch *down_sw; in margining_run_write() 968 static void margining_switch_init(struct tb_switch *sw) in margining_switch_init() 971 struct tb_switch *parent_sw; in margining_switch_init() 985 static void margining_switch_remove(struct tb_switch *sw) in margining_switch_remove() 988 struct tb_switch *parent_sw; in margining_switch_remove() 1004 struct tb_switch *parent_sw; in margining_xdomain_init() 1015 struct tb_switch *parent_sw; in margining_xdomain_remove() [all …]
|
D | tb.c | 181 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources() 198 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources() 244 static int tb_enable_clx(struct tb_switch *sw) in tb_enable_clx() 289 static void tb_disable_clx(struct tb_switch *sw) in tb_disable_clx() 300 struct tb_switch *sw; in tb_increase_switch_tmu_accuracy() 327 struct tb_switch *sw; in tb_increase_tmu_accuracy() 345 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu() 384 static void tb_switch_discover_tunnels(struct tb_switch *sw, in tb_switch_discover_tunnels() 433 struct tb_switch *parent = tunnel->dst_port->sw; in tb_discover_tunnels() 471 struct tb_switch *sw = port->sw; in tb_scan_xdomain() [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 *sw, u64 route, u8 connection_id, in update_switch() 650 struct tb_switch *parent_sw = tb_switch_parent(sw); in update_switch() 673 static void remove_switch(struct tb_switch *sw) in remove_switch() 679 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain() [all …]
|
D | nvm.c | 58 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_version() 91 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_validate() 138 struct tb_switch *sw = tb_to_switch(nvm->dev); in intel_switch_nvm_write_headers() 162 struct tb_switch *sw = tb_to_switch(nvm->dev); in asmedia_switch_nvm_version() 292 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 | 305 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 = tb_switch_parent(sw); in tb_acpi_switch_find_companion()
|
D | tunnel.c | 96 const struct tb_switch *sw = port->sw; in tb_available_credits() 205 struct tb_switch *sw = port->sw; in tb_pci_init_credits() 379 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4() 777 struct tb_switch *sw = in->sw; in tb_dp_init() 1110 const struct tb_switch *sw = in->sw; in tb_dp_consumed_bandwidth() 1167 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits() 1193 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits() 1447 const struct tb_switch *sw = port->sw; in tb_dma_available_credits() 1851 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 | 1914 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc() 2240 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
|
/linux-6.6.21/include/linux/ |
D | thunderbolt.h | 81 struct tb_switch *root_switch;
|