Home
last modified time | relevance | path

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

/linux/drivers/thunderbolt/
A Dtb.h169 struct tb_switch { struct
277 struct tb_switch *sw;
729 const struct tb_switch *__sw = (sw); \
831 int tb_switch_add(struct tb_switch *sw);
832 void tb_switch_remove(struct tb_switch *sw);
835 int tb_switch_reset(struct tb_switch *sw);
857 static inline struct tb_switch *tb_switch_get(struct tb_switch *sw) in tb_switch_get()
881 static inline struct tb_switch *tb_switch_parent(struct tb_switch *sw) in tb_switch_parent()
1187 int tb_drom_read(struct tb_switch *sw);
1203 int tb_lc_set_sleep(struct tb_switch *sw);
[all …]
A Dlc.c18 int tb_lc_read_uuid(struct tb_switch *sw, u32 *uuid) in tb_lc_read_uuid()
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 *sw = port->sw; in tb_lc_is_xhci_connected()
319 struct tb_switch *sw = port->sw; in __tb_lc_xhci_connect()
[all …]
A Dswitch.c833 const struct tb_switch *sw) in tb_switch_is_reachable()
1639 int tb_switch_reset(struct tb_switch *sw) in tb_switch_reset()
1749 struct tb_switch *sw = tb_to_switch(dev); in authorized_show()
1757 struct tb_switch *sw; in disapprove_switch()
1837 struct tb_switch *sw = tb_to_switch(dev); in authorized_store()
1859 struct tb_switch *sw = tb_to_switch(dev); in boot_show()
1868 struct tb_switch *sw = tb_to_switch(dev); in device_show()
2415 struct tb_switch *sw; in tb_switch_alloc()
2531 struct tb_switch *
2534 struct tb_switch *sw; in tb_switch_alloc_safe_mode()
[all …]
A Deeprom.c42 static int tb_eeprom_active(struct tb_switch *sw, bool enable) in tb_eeprom_active()
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()
302 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only()
360 static int tb_drom_parse_entry_port(struct tb_switch *sw, in tb_drom_parse_entry_port()
571 static int tb_drom_parse_v1(struct tb_switch *sw) in tb_drom_parse_v1()
599 static int usb4_drom_parse(struct tb_switch *sw) in usb4_drom_parse()
615 static int tb_drom_parse(struct tb_switch *sw, u16 size) in tb_drom_parse()
655 static int tb_drom_host_read(struct tb_switch *sw) in tb_drom_host_read()
676 static int tb_drom_device_read(struct tb_switch *sw) in tb_drom_device_read()
[all …]
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()
A Dtmu.c63 static int tb_switch_set_tmu_mode_params(struct tb_switch *sw, in tb_switch_set_tmu_mode_params()
135 static int tb_switch_tmu_rate_read(struct tb_switch *sw) in tb_switch_tmu_rate_read()
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()
559 int tb_switch_tmu_disable(struct tb_switch *sw) in tb_switch_tmu_disable()
621 static void tb_switch_tmu_off(struct tb_switch *sw) in tb_switch_tmu_off()
860 static int tb_switch_tmu_change_mode(struct tb_switch *sw) in tb_switch_tmu_change_mode()
942 int tb_switch_tmu_enable(struct tb_switch *sw) in tb_switch_tmu_enable()
[all …]
A Dtest.c39 struct tb_switch *sw; in alloc_switch()
74 struct tb_switch *sw; in alloc_host()
156 struct tb_switch *sw; in alloc_host_usb4()
175 struct tb_switch *sw; in alloc_host_br()
195 struct tb_switch *sw; in alloc_dev_default()
2383 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_PCIE_TUNNEL()
2413 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DP_TUNNEL1()
2450 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DP_TUNNEL2()
2487 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_USB3_TUNNEL()
2517 struct tb_switch *host, struct tb_switch *dev) in TB_TEST_DMA_TUNNEL1()
[all …]
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()
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()
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()
A Dusb4.c162 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()
346 struct tb_switch *sw = data; in usb4_switch_drom_read_block()
491 int usb4_switch_set_sleep(struct tb_switch *sw) in usb4_switch_set_sleep()
519 int usb4_switch_nvm_sector_size(struct tb_switch *sw) in usb4_switch_nvm_sector_size()
539 struct tb_switch *sw = data; in usb4_switch_nvm_read_block()
605 struct tb_switch *sw = data; in usb4_switch_nvm_write_next_block()
729 int usb4_switch_credits_init(struct tb_switch *sw) in usb4_switch_credits_init()
1030 int usb4_switch_add_ports(struct tb_switch *sw) in usb4_switch_add_ports()
[all …]
A Dtb.c246 struct tb_switch *sw; in tb_increase_switch_tmu_accuracy()
273 struct tb_switch *sw; in tb_increase_tmu_accuracy()
505 struct tb_switch *sw; in tb_find_first_usb3_tunnel()
1017 struct tb_switch *sw; in tb_configure_asym()
1122 struct tb_switch *sw; in tb_configure_sym()
1204 struct tb_switch *sw) in tb_configure_link()
1267 struct tb_switch *sw; in tb_scan_port()
2209 struct tb_switch *sw; in tb_approve_xdomain_paths()
2258 struct tb_switch *sw; in __tb_disconnect_xdomain_paths()
2309 struct tb_switch *sw; in tb_handle_hotplug()
[all …]
A Ddma_port.h15 struct tb_switch;
21 struct tb_dma_port *dma_port_alloc(struct tb_switch *sw);
A Dicm.c609 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()
712 struct tb_switch *sw; in remove_xdomain()
725 struct tb_switch *sw, *parent_sw; in icm_fr_device_connected()
872 struct tb_switch *sw; in icm_fr_device_disconnected()
907 struct tb_switch *sw; in icm_fr_xdomain_connected()
1205 struct tb_switch *sw, *parent_sw; in __icm_tr_device_connected()
1304 struct tb_switch *sw; in icm_tr_device_disconnected()
1330 struct tb_switch *sw; in icm_tr_xdomain_connected()
[all …]
A Ddebugfs.c231 struct tb_switch *sw = s->private; in switch_regs_write()
322 struct tb_switch *sw = port->sw; in port_sb_regs_write()
1038 struct tb_switch *sw = port->sw; in margining_run_write()
1039 struct tb_switch *down_sw; in margining_run_write()
1518 struct tb_switch *parent_sw; in margining_switch_init()
1535 struct tb_switch *parent_sw; in margining_switch_remove()
1551 struct tb_switch *parent_sw; in margining_xdomain_init()
1562 struct tb_switch *parent_sw; in margining_xdomain_remove()
1614 struct tb_switch *sw = port->sw; in counters_write()
1822 struct tb_switch *sw = port->sw; in port_regs_show()
[all …]
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()
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()
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()
A Dtunnel.c99 const struct tb_switch *sw = port->sw; in tb_available_credits()
237 struct tb_switch *sw = port->sw; in tb_pci_init_credits()
456 static bool tb_dp_is_usb4(const struct tb_switch *sw) in tb_dp_is_usb4()
857 struct tb_switch *sw = in->sw; in tb_dp_init()
1166 const struct tb_switch *sw = tunnel->src_port->sw; in tb_dp_consumed_bandwidth()
1222 struct tb_switch *sw = port->sw; in tb_dp_init_aux_credits()
1251 struct tb_switch *sw = port->sw; in tb_dp_init_video_credits()
1509 const struct tb_switch *sw = port->sw; in tb_dma_available_credits()
1915 struct tb_switch *sw = port->sw; in tb_usb3_init_credits()
A Dpath.c39 struct tb_switch *sw; in tb_path_find_dst_port()
109 struct tb_switch *sw; in tb_path_discover()
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/
A Dthunderbolt.h80 struct tb_switch *root_switch;

Completed in 81 milliseconds