/linux-master/drivers/thunderbolt/ |
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 | tb.h | 112 * struct tb_switch - a thunderbolt switch 169 struct tb_switch { struct 242 * struct tb_port - a thunderbolt port, part of a tb_switch 277 struct tb_switch *sw; 510 int (*runtime_suspend_switch)(struct tb_switch *sw); 511 int (*runtime_resume_switch)(struct tb_switch *sw); 516 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw); 517 int (*approve_switch)(struct tb *tb, struct tb_switch *sw); 518 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw); 519 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *s [all...] |
H A D | quirks.c | 10 static void quirk_force_power_link(struct tb_switch *sw) 16 static void quirk_dp_credit_allocation(struct tb_switch *sw) 24 static void quirk_clx_disable(struct tb_switch *sw) 30 static void quirk_usb3_maximum_bandwidth(struct tb_switch *sw) 46 static void quirk_block_rpm_in_redrive(struct tb_switch *sw) 57 void (*hook)(struct tb_switch *sw); 118 void tb_check_quirks(struct tb_switch *sw)
|
H A D | lc.c | 18 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) 25 static int read_lc_desc(struct tb_switch *sw, u32 *desc) 34 struct tb_switch *sw = port->sw; 61 struct tb_switch *sw = port->sw; 96 struct tb_switch *sw = port->sw; 154 struct tb_switch *sw = port->sw; 218 struct tb_switch *sw = port->sw; 250 struct tb_switch *sw = port->sw; 273 struct tb_switch *sw = port->sw; 299 struct tb_switch *s [all...] |
H A D | switch.c | 37 static struct nvm_auth_status *__nvm_get_auth_status(const struct tb_switch *sw) 49 static void nvm_get_auth_status(const struct tb_switch *sw, u32 *status) 60 static void nvm_set_auth_status(const struct tb_switch *sw, u32 status) 85 static void nvm_clear_auth_status(const struct tb_switch *sw) 98 static int nvm_validate_and_write(struct tb_switch *sw) 126 static int nvm_authenticate_host_dma_port(struct tb_switch *sw) 166 static int nvm_authenticate_device_dma_port(struct tb_switch *sw) 211 static void nvm_authenticate_start_dma_port(struct tb_switch *sw) 226 static void nvm_authenticate_complete_dma_port(struct tb_switch *sw) 235 static inline bool nvm_readable(struct tb_switch *s [all...] |
H A D | eeprom.c | 18 static int tb_eeprom_ctl_write(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) 26 static int tb_eeprom_ctl_read(struct tb_switch *sw, struct tb_eeprom_ctl *ctl) 42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) 71 static int tb_eeprom_transfer(struct tb_switch *sw, struct tb_eeprom_ctl *ctl, 96 static int tb_eeprom_out(struct tb_switch *sw, u8 val) 116 static int tb_eeprom_in(struct tb_switch *sw, u8 *val) 137 static int tb_eeprom_get_drom_offset(struct tb_switch *sw, u16 *offset) 168 static int tb_eeprom_read_n(struct tb_switch *sw, u16 offset, u8 *val, 302 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) 324 static int tb_drom_parse_entry_generic(struct tb_switch *s [all...] |
H A D | clx.c | 181 static bool tb_switch_clx_is_supported(const struct tb_switch *sw) 208 int tb_switch_clx_init(struct tb_switch *sw) 237 static int tb_switch_pm_secondary_resolve(struct tb_switch *sw) 254 static int tb_switch_mask_clx_objections(struct tb_switch *sw) 318 int tb_switch_clx_enable(struct tb_switch *sw, unsigned int clx) 321 struct tb_switch *parent_sw; 396 int tb_switch_clx_disable(struct tb_switch *sw)
|
H A D | cap.c | 20 struct tb_switch *sw = port->sw; 145 int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset) 188 int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) 221 int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec)
|
H A D | dma_port.c | 55 struct tb_switch *sw; 168 static int dma_find_port(struct tb_switch *sw) 201 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw) 243 struct tb_switch *sw = dma->sw; 281 struct tb_switch *sw = dma->sw; 306 struct tb_switch *sw = dma->sw; 328 struct tb_switch *sw = dma->sw; 422 struct tb_switch *sw = dma->sw;
|
H A D | tmu.c | 58 static bool tb_switch_tmu_enhanced_is_supported(const struct tb_switch *sw) 63 static int tb_switch_set_tmu_mode_params(struct tb_switch *sw, 122 static bool tb_switch_tmu_ucap_is_supported(struct tb_switch *sw) 135 static int tb_switch_tmu_rate_read(struct tb_switch *sw) 149 static int tb_switch_tmu_rate_write(struct tb_switch *sw, int rate) 332 static int tb_switch_tmu_set_time_disruption(struct tb_switch *sw, bool set) 357 static int tmu_mode_init(struct tb_switch *sw) 409 int tb_switch_tmu_init(struct tb_switch *sw) 443 int tb_switch_tmu_post_time(struct tb_switch *sw) 447 struct tb_switch *root_switc [all...] |
H A D | debugfs.c | 127 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, 183 struct tb_switch *sw = s->private; 557 struct tb_switch *sw = port->sw; 559 struct tb_switch *down_sw; 968 static void margining_switch_init(struct tb_switch *sw) 971 struct tb_switch *parent_sw; 985 static void margining_switch_remove(struct tb_switch *sw) 988 struct tb_switch *parent_sw; 1004 struct tb_switch *parent_sw; 1015 struct tb_switch *parent_s [all...] |
H A D | test.c | 36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, 39 struct tb_switch *sw; 72 static struct tb_switch *alloc_host(struct kunit *test) 74 struct tb_switch *sw; 154 static struct tb_switch *alloc_host_usb4(struct kunit *test) 156 struct tb_switch *sw; 173 static struct tb_switch *alloc_host_br(struct kunit *test) 175 struct tb_switch *sw; 190 static struct tb_switch *alloc_dev_default(struct kunit *test, 191 struct tb_switch *paren [all...] |
H A D | usb4.c | 55 static int usb4_native_switch_op(struct tb_switch *sw, u16 opcode, 110 static int __usb4_switch_op(struct tb_switch *sw, u16 opcode, u32 *metadata, 143 static inline int usb4_switch_op(struct tb_switch *sw, u16 opcode, 149 static inline int usb4_switch_op_data(struct tb_switch *sw, u16 opcode, 164 void usb4_switch_check_wakes(struct tb_switch *sw) 242 int usb4_switch_setup(struct tb_switch *sw) 244 struct tb_switch *parent = tb_switch_parent(sw); 310 int usb4_switch_configuration_valid(struct tb_switch *sw) 339 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) 348 struct tb_switch *s [all...] |
H A D | tb.c | 99 static void tb_add_dp_resources(struct tb_switch *sw) 126 static void tb_remove_dp_resources(struct tb_switch *sw) 172 static int tb_enable_clx(struct tb_switch *sw) 225 static bool tb_disable_clx(struct tb_switch *sw) 246 struct tb_switch *sw; 273 struct tb_switch *sw; 291 static int tb_enable_tmu(struct tb_switch *sw) 330 static void tb_switch_discover_tunnels(struct tb_switch *sw, 387 struct tb_switch *sw = port->sw; 416 static struct tb_port *tb_find_unused_port(struct tb_switch *s [all...] |
H A D | icm.c | 476 static int icm_fr_approve_switch(struct tb *tb, struct tb_switch *sw) 503 static int icm_fr_add_switch_key(struct tb *tb, struct tb_switch *sw) 530 static int icm_fr_challenge_switch_key(struct tb *tb, struct tb_switch *sw, 609 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, 613 struct tb_switch *sw; 631 static int add_switch(struct tb_switch *parent_sw, struct tb_switch *sw) 647 static void update_switch(struct tb_switch *sw, u64 route, u8 connection_id, 650 struct tb_switch *parent_s [all...] |
H A D | nvm.c | 58 struct tb_switch *sw = tb_to_switch(nvm->dev); 91 struct tb_switch *sw = tb_to_switch(nvm->dev); 138 struct tb_switch *sw = tb_to_switch(nvm->dev); 162 struct tb_switch *sw = tb_to_switch(nvm->dev); 292 const struct tb_switch *sw = tb_to_switch(dev);
|
H A D | domain.c | 630 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) 647 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) 649 struct tb_switch *parent_sw; 673 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) 675 struct tb_switch *parent_sw; 705 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) 710 struct tb_switch *parent_sw;
|
H A D | acpi.c | 305 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) 307 struct tb_switch *parent_sw = tb_switch_parent(sw);
|
H A D | tunnel.c | 99 const struct tb_switch *sw = port->sw; 237 struct tb_switch *sw = port->sw; 456 static bool tb_dp_is_usb4(const struct tb_switch *sw) 857 struct tb_switch *sw = in->sw; 1166 const struct tb_switch *sw = tunnel->src_port->sw; 1222 struct tb_switch *sw = port->sw; 1251 struct tb_switch *sw = port->sw; 1509 const struct tb_switch *sw = port->sw; 1915 struct tb_switch *sw = port->sw;
|
H A D | path.c | 39 struct tb_switch *sw; 109 struct tb_switch *sw;
|
H A D | xdomain.c | 1963 struct tb_switch *parent_sw = tb_to_switch(parent); 2292 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw,
|
/linux-master/include/linux/ |
H A D | thunderbolt.h | 64 * tb_switch / struct tb_port. 81 struct tb_switch *root_switch;
|