| /linux/drivers/thunderbolt/ |
| H A D | tb.h | 171 struct tb_switch { struct 282 struct tb_switch *sw; 519 int (*runtime_suspend_switch)(struct tb_switch *sw); 520 int (*runtime_resume_switch)(struct tb_switch *sw); 525 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw); 526 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 527 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 528 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw, 537 int (*usb4_switch_op)(struct tb_switch *sw, u16 opcode, u32 *metadata, 540 int (*usb4_switch_nvm_authenticate_status)(struct tb_switch *sw, [all …]
|
| H A D | lc.c | 20 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid() 27 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc() 36 struct tb_switch *sw = port->sw; in find_port_lc_cap() 64 struct tb_switch *sw = port->sw; in tb_lc_reset_port() 99 struct tb_switch *sw = port->sw; in tb_lc_set_port_configured() 161 struct tb_switch *sw = port->sw; in tb_lc_set_xdomain_configured() 227 struct tb_switch *sw = port->sw; in tb_lc_start_lane_initialization() 261 struct tb_switch *sw = port->sw; in tb_lc_is_clx_supported() 285 struct tb_switch *sw = port->sw; in tb_lc_is_usb_plugged() 312 struct tb_switch *sw = port->sw; in tb_lc_is_xhci_connected() [all …]
|
| H A 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() 304 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() 326 static int tb_drom_parse_entry_generic(struct tb_switch *sw, in tb_drom_parse_entry_generic() [all …]
|
| H A 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 …]
|
| H A 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() 46 static void quirk_block_rpm_in_redrive(struct tb_switch *sw) in quirk_block_rpm_in_redrive() 57 void (*hook)(struct tb_switch *sw); 118 void tb_check_quirks(struct tb_switch *sw) in tb_check_quirks()
|
| H A 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() 411 int tb_switch_tmu_init(struct tb_switch *sw) in tb_switch_tmu_init() 447 int tb_switch_tmu_post_time(struct tb_switch *sw) in tb_switch_tmu_post_time() 451 struct tb_switch *root_switch = sw->tb->root_switch; in tb_switch_tmu_post_time() [all …]
|
| H A D | usb4.c | 54 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, in usb4_native_switch_op() 109 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, in __usb4_switch_op() 142 static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode, in usb4_switch_op() 148 static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode, in usb4_switch_op_data() 163 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() 245 struct tb_switch *parent = tb_switch_parent(sw); in usb4_switch_setup() 311 int usb4_switch_configuration_valid(struct tb_switch *sw) in usb4_switch_configuration_valid() 342 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid() 351 struct tb_switch *sw = data; in usb4_switch_drom_read_block() [all …]
|
| H A D | tb.c | 111 static void tb_add_dp_resources(struct tb_switch *sw) in tb_add_dp_resources() 138 static void tb_remove_dp_resources(struct tb_switch *sw) in tb_remove_dp_resources() 184 static int tb_enable_clx(struct tb_switch *sw) in tb_enable_clx() 235 static bool tb_disable_clx(struct tb_switch *sw) in tb_disable_clx() 256 struct tb_switch *sw; in tb_increase_switch_tmu_accuracy() 283 struct tb_switch *sw; in tb_increase_tmu_accuracy() 303 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_tmu_hifi_uni_required() 319 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu() 376 static void tb_switch_discover_tunnels(struct tb_switch *sw, in tb_switch_discover_tunnels() 433 struct tb_switch *sw = port->sw; in tb_scan_xdomain() [all …]
|
| H A D | icm.c | 498 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) in icm_fr_approve_switch() 525 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) in icm_fr_add_switch_key() 552 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, in icm_fr_challenge_switch_key() 634 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch() 638 struct tb_switch *sw; in alloc_switch() 656 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) in add_switch() 672 static void update_switch(struct tb_switch *sw, u64 route, u8 connection_id, in update_switch() 675 struct tb_switch *parent_sw = tb_switch_parent(sw); in update_switch() 698 static void remove_switch(struct tb_switch *sw) in remove_switch() 704 static void add_xdomain(struct tb_switch *sw, u64 route, in add_xdomain() [all …]
|
| H A D | dma_port.h | 15 struct tb_switch; 21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
|
| H A D | debugfs.c | 221 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write() 295 struct tb_switch *sw = s->private; in switch_regs_write() 386 struct tb_switch *sw = port->sw; in port_sb_regs_write() 1225 struct tb_switch *sw = port->sw; in margining_run_write() 1226 struct tb_switch *down_sw; in margining_run_write() 1793 static void margining_switch_init(struct tb_switch *sw) in margining_switch_init() 1796 struct tb_switch *parent_sw; in margining_switch_init() 1810 static void margining_switch_remove(struct tb_switch *sw) in margining_switch_remove() 1813 struct tb_switch *parent_sw; in margining_switch_remove() 1829 struct tb_switch *parent_sw; in margining_xdomain_init() [all …]
|
| H A D | domain.c | 635 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_disapprove_switch() 654 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch() 656 struct tb_switch *parent_sw; in tb_domain_approve_switch() 680 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key() 682 struct tb_switch *parent_sw; in tb_domain_approve_switch_key() 712 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key() 717 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
|
| H A D | tunnel.c | 130 const struct tb_switch *sw = port->sw; in tb_available_credits() 366 struct tb_switch *sw = port->sw; in tb_pci_init_credits() 589 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4() 990 struct tb_switch *sw = in->sw; in tb_dp_pre_activate() 1365 const struct tb_switch *sw = tunnel->src_port->sw; in tb_dp_consumed_bandwidth() 1428 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits() 1457 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits() 1727 const struct tb_switch *sw = port->sw; in tb_dma_available_credits() 2134 struct tb_switch *sw = port->sw; in tb_usb3_init_credits()
|
| H A D | xdomain.c | 1969 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc() 2306 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
|