Home
last modified time | relevance | path

Searched refs:tb_switch (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/thunderbolt/
H A Dtb.h113 * struct tb_switch - a thunderbolt switch
171 struct tb_switch { struct
247 * struct tb_port - a thunderbolt port, part of a tb_switch
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 *s
176 tmutb_switch global() argument
177 tbtb_switch global() argument
178 uidtb_switch global() argument
179 uuidtb_switch global() argument
180 vendortb_switch global() argument
181 devicetb_switch global() argument
182 vendor_nametb_switch global() argument
183 device_nametb_switch global() argument
184 link_speedtb_switch global() argument
185 link_widthtb_switch global() argument
186 preferred_link_widthtb_switch global() argument
187 link_usb4tb_switch global() argument
188 generationtb_switch global() argument
189 cap_plug_eventstb_switch global() argument
190 cap_vsec_tmutb_switch global() argument
191 cap_lctb_switch global() argument
192 cap_lptb_switch global() argument
193 is_unpluggedtb_switch global() argument
194 dromtb_switch global() argument
195 nvmtb_switch global() argument
196 no_nvm_upgradetb_switch global() argument
197 safe_modetb_switch global() argument
198 boottb_switch global() argument
199 rpmtb_switch global() argument
200 authorizedtb_switch global() argument
201 security_leveltb_switch global() argument
202 debugfs_dirtb_switch global() argument
203 keytb_switch global() argument
204 connection_idtb_switch global() argument
205 connection_keytb_switch global() argument
206 linktb_switch global() argument
207 depthtb_switch global() argument
208 rpm_completetb_switch global() argument
209 quirkstb_switch global() argument
210 credit_allocationtb_switch global() argument
211 max_usb3_creditstb_switch global() argument
212 min_dp_aux_creditstb_switch global() argument
213 min_dp_main_creditstb_switch global() argument
214 max_pcie_creditstb_switch global() argument
215 max_dma_creditstb_switch global() argument
216 clxtb_switch global() argument
218 drom_blobtb_switch global() argument
[all...]
H A Dlc.c18 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid()
25 static int read_lc_desc(struct tb_switch *sw, u32 *desc) in read_lc_desc()
34 struct tb_switch *sw = port->sw; in find_port_lc_cap()
61 struct tb_switch *sw = port->sw; in tb_lc_reset_port()
96 struct tb_switch *sw = port->sw; in tb_lc_set_port_configured()
154 struct tb_switch *sw = port->sw; in tb_lc_set_xdomain_configured()
218 struct tb_switch *sw = port->sw; in tb_lc_start_lane_initialization()
250 struct tb_switch *sw = port->sw; in tb_lc_is_clx_supported()
273 struct tb_switch *sw = port->sw; in tb_lc_is_usb_plugged()
299 struct tb_switch *s in tb_lc_is_xhci_connected()
[all...]
H A Deeprom.c18 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 *s
[all...]
H A Dswitch.c37 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 *s
[all...]
H A Dquirks.c10 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 Dtmu.c58 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_switc in tb_switch_tmu_post_time()
[all...]
H A Dtest.c36 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 *paren in alloc_dev_default()
[all...]
H A Dclx.c181 static bool tb_switch_clx_is_supported(const struct tb_switch *sw) in tb_switch_clx_is_supported()
208 int tb_switch_clx_init(struct tb_switch *sw) in tb_switch_clx_init()
237 static int tb_switch_pm_secondary_resolve(struct tb_switch *sw) in tb_switch_pm_secondary_resolve()
254 static int tb_switch_mask_clx_objections(struct tb_switch *sw) in tb_switch_mask_clx_objections()
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()
H A Ddma_port.c55 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()
H A Dcap.c20 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()
H A Dusb4.c53 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()
162 void usb4_switch_check_wakes(struct tb_switch *sw) in usb4_switch_check_wakes()
240 int usb4_switch_setup(struct tb_switch *sw) in usb4_switch_setup()
242 struct tb_switch *parent = tb_switch_parent(sw); in usb4_switch_setup()
308 int usb4_switch_configuration_valid(struct tb_switch *sw) in usb4_switch_configuration_valid()
337 int usb4_switch_read_uid(struct tb_switch *sw, u64 *uid) in usb4_switch_read_uid()
346 struct tb_switch *s in usb4_switch_drom_read_block()
[all...]
H A Dtb.c111 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()
237 static bool tb_disable_clx(struct tb_switch *sw) in tb_disable_clx()
258 struct tb_switch *sw; in tb_increase_switch_tmu_accuracy()
285 struct tb_switch *sw; in tb_increase_tmu_accuracy()
305 struct tb_switch *sw = tb_to_switch(dev); in tb_switch_tmu_hifi_uni_required()
321 static int tb_enable_tmu(struct tb_switch *sw) in tb_enable_tmu()
378 static void tb_switch_discover_tunnels(struct tb_switch *sw, in tb_switch_discover_tunnels()
435 struct tb_switch *s in tb_scan_xdomain()
[all...]
H A Ddma_port.h15 struct tb_switch;
21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
H A Ddebugfs.c220 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write()
294 struct tb_switch *sw = s->private; in switch_regs_write()
385 struct tb_switch *sw = port->sw; in port_sb_regs_write()
1224 struct tb_switch *sw = port->sw; in margining_run_write()
1225 struct tb_switch *down_sw; in margining_run_write()
1792 static void margining_switch_init(struct tb_switch *sw) in margining_switch_init()
1795 struct tb_switch *parent_sw; in margining_switch_init()
1809 static void margining_switch_remove(struct tb_switch *sw) in margining_switch_remove()
1812 struct tb_switch *parent_sw; in margining_switch_remove()
1828 struct tb_switch *parent_s in margining_xdomain_init()
[all...]
H A Dnvm.c58 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()
H A Ddomain.c630 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_disapprove_switch()
647 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch()
649 struct tb_switch *parent_sw; in tb_domain_approve_switch()
673 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_approve_switch_key()
675 struct tb_switch *parent_sw; in tb_domain_approve_switch_key()
705 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw) in tb_domain_challenge_switch_key()
710 struct tb_switch *parent_sw; in tb_domain_challenge_switch_key()
H A Dacpi.c285 static struct acpi_device *tb_acpi_switch_find_companion(struct tb_switch *sw) in tb_acpi_switch_find_companion()
287 struct tb_switch *parent_sw = tb_switch_parent(sw); in tb_acpi_switch_find_companion()
H A Dtunnel.c128 const struct tb_switch *sw = port->sw; in tb_available_credits()
364 struct tb_switch *sw = port->sw; in tb_pci_init_credits()
583 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4()
984 struct tb_switch *sw = in->sw; in tb_dp_pre_activate()
1357 const struct tb_switch *sw = tunnel->src_port->sw; in tb_dp_consumed_bandwidth()
1420 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits()
1449 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits()
1719 const struct tb_switch *sw = port->sw; in tb_dma_available_credits()
2125 struct tb_switch *sw = port->sw; in tb_usb3_init_credits()
H A Dpath.c39 struct tb_switch *sw; in tb_path_find_dst_port()
109 struct tb_switch *sw; in tb_path_discover()
H A Dxdomain.c1963 struct tb_switch *parent_sw = tb_to_switch(parent); in tb_xdomain_alloc()
2292 static struct tb_xdomain *switch_find_xdomain(struct tb_switch *sw, in switch_find_xdomain()
/linux/include/linux/
H A Dthunderbolt.h70 * tb_switch / struct tb_port.
87 struct tb_switch *root_switch;