| /linux/drivers/thunderbolt/ |
| H A D | tb.h | 174 struct tb_port *ports; 280 struct tb_port { struct 283 struct tb_port *remote; argument 293 struct tb_port *dual_link_port; argument 318 struct tb_port *port; argument 345 struct tb_port *port; 382 struct tb_port *in_port; 383 struct tb_port *out_port; 564 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 576 static inline bool tb_is_upstream_port(const struct tb_port *port) in tb_is_upstream_port() [all …]
|
| H A D | tunnel.h | 76 struct tb_port *src_port; 77 struct tb_port *dst_port; 112 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down, 114 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, 115 struct tb_port *down); 116 bool tb_tunnel_reserved_pci(struct tb_port *port, int *reserved_up, 118 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in, 120 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, 121 struct tb_port *out, int link_nr, 125 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, [all …]
|
| H A D | usb4.c | 167 struct tb_port *port; in usb4_switch_check_wakes() 213 static bool link_is_usb4(struct tb_port *port) in link_is_usb4() 246 struct tb_port *down; in usb4_switch_setup() 399 struct tb_port *up; in usb4_switch_lane_bonding_possible() 423 struct tb_port *port; in usb4_switch_set_wake() 757 const struct tb_port *port; in usb4_switch_credits_init() 895 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_query_dp_resource() 928 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_alloc_dp_resource() 953 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_dealloc_dp_resource() 977 int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_index() [all …]
|
| H A D | tb.c | 86 static void tb_scan_port(struct tb_port *port); 88 static void tb_dp_resource_unavailable(struct tb *tb, struct tb_port *port, 114 struct tb_port *port; in tb_add_dp_resources() 141 struct tb_port *port, *tmp; in tb_remove_dp_resources() 157 static void tb_discover_dp_resource(struct tb *tb, struct tb_port *port) in tb_discover_dp_resource() 160 struct tb_port *p; in tb_discover_dp_resource() 381 struct tb_port *port; in tb_switch_discover_tunnels() 416 static int tb_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd) in tb_port_configure_xdomain() 423 static void tb_port_unconfigure_xdomain(struct tb_port *port) in tb_port_unconfigure_xdomain() 431 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain() [all …]
|
| H A D | lc.c | 34 static int find_port_lc_cap(struct tb_port *port) in find_port_lc_cap() 62 int tb_lc_reset_port(struct tb_port *port) in tb_lc_reset_port() 96 static int tb_lc_set_port_configured(struct tb_port *port, bool configured) in tb_lc_set_port_configured() 141 int tb_lc_configure_port(struct tb_port *port) in tb_lc_configure_port() 154 void tb_lc_unconfigure_port(struct tb_port *port) in tb_lc_unconfigure_port() 159 static int tb_lc_set_xdomain_configured(struct tb_port *port, bool configure) in tb_lc_set_xdomain_configured() 199 int tb_lc_configure_xdomain(struct tb_port *port) in tb_lc_configure_xdomain() 210 void tb_lc_unconfigure_xdomain(struct tb_port *port) in tb_lc_unconfigure_xdomain() 225 int tb_lc_start_lane_initialization(struct tb_port *port) in tb_lc_start_lane_initialization() 259 bool tb_lc_is_clx_supported(struct tb_port *port) in tb_lc_is_clx_supported() [all …]
|
| H A D | clx.c | 38 static int tb_port_pm_secondary_set(struct tb_port *port, bool secondary) in tb_port_pm_secondary_set() 57 static int tb_port_pm_secondary_enable(struct tb_port *port) in tb_port_pm_secondary_enable() 62 static int tb_port_pm_secondary_disable(struct tb_port *port) in tb_port_pm_secondary_disable() 68 static bool tb_port_clx_supported(struct tb_port *port, unsigned int clx) in tb_port_clx_supported() 103 static int tb_port_clx_set(struct tb_port *port, unsigned int clx, bool enable) in tb_port_clx_set() 132 static int tb_port_clx_disable(struct tb_port *port, unsigned int clx) in tb_port_clx_disable() 137 static int tb_port_clx_enable(struct tb_port *port, unsigned int clx) in tb_port_clx_enable() 142 static int tb_port_clx(struct tb_port *port) in tb_port_clx() 173 bool tb_port_clx_is_enabled(struct tb_port *port, unsigned int clx) in tb_port_clx_is_enabled() 213 struct tb_port *up, *down; in tb_switch_clx_init() [all …]
|
| H A D | tmu.c | 166 static int tb_port_tmu_write(struct tb_port *port, u8 offset, u32 mask, in tb_port_tmu_write() 183 static int tb_port_tmu_set_unidirectional(struct tb_port *port, in tb_port_tmu_set_unidirectional() 195 static inline int tb_port_tmu_unidirectional_disable(struct tb_port *port) in tb_port_tmu_unidirectional_disable() 200 static inline int tb_port_tmu_unidirectional_enable(struct tb_port *port) in tb_port_tmu_unidirectional_enable() 205 static bool tb_port_tmu_is_unidirectional(struct tb_port *port) in tb_port_tmu_is_unidirectional() 218 static bool tb_port_tmu_is_enhanced(struct tb_port *port) in tb_port_tmu_is_enhanced() 232 static int tb_port_tmu_enhanced_enable(struct tb_port *port, bool enable) in tb_port_tmu_enhanced_enable() 254 static int tb_port_set_tmu_mode_params(struct tb_port *port, in tb_port_set_tmu_mode_params() 295 static int tb_port_tmu_rate_write(struct tb_port *port, int rate) in tb_port_tmu_rate_write() 315 static int tb_port_tmu_time_sync(struct tb_port *port, bool time_sync) in tb_port_tmu_time_sync() [all …]
|
| H A D | switch.c | 446 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port() 471 int tb_port_state(struct tb_port *port) in tb_port_state() 502 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port() 571 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits() 608 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter() 624 int tb_port_unlock(struct tb_port *port) in tb_port_unlock() 635 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable() 671 int tb_port_enable(struct tb_port *port) in tb_port_enable() 684 int tb_port_disable(struct tb_port *port) in tb_port_disable() 689 static int tb_port_reset(struct tb_port *port) in tb_port_reset() [all …]
|
| H A D | path.c | 18 const struct tb_port *port = hop->in_port; in tb_dump_hop() 34 static struct tb_port *tb_path_find_dst_port(struct tb_port *src, int src_hopid, in tb_path_find_dst_port() 37 struct tb_port *port, *out_port = NULL; in tb_path_find_dst_port() 65 static int tb_path_find_src_hopid(struct tb_port *src, in tb_path_find_src_hopid() 66 const struct tb_port *dst, int dst_hopid) in tb_path_find_src_hopid() 68 struct tb_port *out; in tb_path_find_src_hopid() 101 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid, in tb_path_discover() 102 struct tb_port *dst, int dst_hopid, in tb_path_discover() 103 struct tb_port **last, const char *name, in tb_path_discover() 106 struct tb_port *out_port; in tb_path_discover() [all …]
|
| H A D | tunnel.c | 114 static inline unsigned int tb_usable_credits(const struct tb_port *port) in tb_usable_credits() 127 static unsigned int tb_available_credits(const struct tb_port *port, in tb_available_credits() 170 struct tb_port *out_port = hop->out_port; in tb_init_pm_support() 171 struct tb_port *in_port = hop->in_port; in tb_init_pm_support() 249 const struct tb_port *src_port, in tb_tunnel_event() 250 const struct tb_port *dst_port) in tb_tunnel_event() 301 struct tb_port *port = tb_upstream_port(tunnel->dst_port->sw); in tb_pci_set_ext_encapsulation() 365 struct tb_port *port = hop->in_port; in tb_pci_init_credits() 424 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down, in tb_tunnel_discover_pci() 504 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci() [all …]
|
| H A D | cap.c | 18 static int tb_port_enable_tmu(struct tb_port *port, bool enable) in tb_port_enable_tmu() 47 static void tb_port_dummy_read(struct tb_port *port) in tb_port_dummy_read() 76 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap() 91 static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in __tb_port_find_cap() 124 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in tb_port_find_cap()
|
| H A D | retimer.c | 197 static void tb_retimer_nvm_authenticate_status(struct tb_port *port, u32 *status) in tb_retimer_nvm_authenticate_status() 214 static void tb_retimer_set_inbound_sbtx(struct tb_port *port) in tb_retimer_set_inbound_sbtx() 231 static void tb_retimer_unset_inbound_sbtx(struct tb_port *port) in tb_retimer_unset_inbound_sbtx() 389 static int tb_retimer_add(struct tb_port *port, u8 index, u32 auth_status, in tb_retimer_add() 474 const struct tb_port *port; 486 static struct tb_retimer *tb_port_find_retimer(struct tb_port *port, u8 index) in tb_port_find_retimer() 510 int tb_retimer_scan(struct tb_port *port, bool add) in tb_retimer_scan() 579 struct tb_port *port = data; in remove_retimer() 592 void tb_retimer_remove_all(struct tb_port *port) in tb_retimer_remove_all()
|
| H A D | debugfs.c | 207 static int path_write_one(struct tb_port *port, u32 val, u32 offset) in path_write_one() 221 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write() 277 struct tb_port *port = s->private; in port_regs_write() 286 struct tb_port *port = s->private; in path_write() 330 static ssize_t sb_regs_write(struct tb_port *port, const struct sb_reg *sb_regs, in sb_regs_write() 385 struct tb_port *port = s->private; in port_sb_regs_write() 490 struct tb_port *port; 522 struct tb_port *port = margining->port; in margining_modify_error_counter() 814 struct tb_port *port = margining->port; in margining_lanes_write() 856 struct tb_port *port = margining->port; in margining_lanes_show() [all …]
|
| H A D | usb4_port.c | 45 struct tb_port *port = usb4->port; in link_show() 78 struct tb_port *port = usb4->port; in usb4_port_offline() 102 struct tb_port *port = usb4->port; in usb4_port_online() 163 struct tb_port *port = usb4->port; in offline_store() 214 struct tb_port *port = usb4->port; in rescan_store() 303 struct usb4_port *usb4_port_device_add(struct tb_port *port) in usb4_port_device_add()
|
| H A D | test.c | 194 struct tb_port *port, *upstream_port; in alloc_dev_default() 425 struct tb_port *src_port, *dst_port, *p; in tb_test_path_basic() 442 struct tb_port *src_port, *dst_port, *p; in tb_test_path_not_connected_walk() 496 struct tb_port *src_port, *dst_port, *p; in tb_test_path_single_hop_walk() 554 struct tb_port *src_port, *dst_port, *p; in tb_test_path_daisy_chain_walk() 615 struct tb_port *src_port, *dst_port, *p; in tb_test_path_simple_tree_walk() 695 struct tb_port *src_port, *dst_port, *p; in tb_test_path_complex_tree_walk() 743 struct tb_port *src_port, *dst_port, *p; in tb_test_path_max_length_walk() 845 struct tb_port *down, *up; in tb_test_path_not_connected() 897 struct tb_port *down, *up; in tb_test_path_not_bonded_lane0() [all …]
|
| H A D | acpi.c | 188 static int tb_acpi_retimer_set_power(struct tb_port *port, bool power) in tb_acpi_retimer_set_power() 263 int tb_acpi_power_on_retimers(struct tb_port *port) in tb_acpi_power_on_retimers() 277 int tb_acpi_power_off_retimers(struct tb_port *port) in tb_acpi_power_off_retimers() 297 struct tb_port *port = tb_switch_downstream_port(sw); in tb_acpi_switch_find_companion()
|
| H A D | xdomain.c | 541 struct tb_port *port = tb_xdomain_downstream_port(xd); in tb_xdp_link_state_status_response() 1170 struct tb_port *port; in tb_xdomain_update_link_attributes() 1287 struct tb_port *port = tb_xdomain_downstream_port(xd); in tb_xdomain_link_state_change() 1328 struct tb_port *port; in tb_xdomain_bond_lanes_uuid_high() 1462 struct tb_port *port; in tb_xdomain_get_properties() 1907 static void tb_xdomain_link_init(struct tb_xdomain *xd, struct tb_port *down) in tb_xdomain_link_init() 1926 struct tb_port *down = tb_xdomain_downstream_port(xd); in tb_xdomain_link_exit() 1971 struct tb_port *down; in tb_xdomain_alloc() 2105 struct tb_port *port; in tb_xdomain_lane_bonding_enable() 2156 struct tb_port *port; in tb_xdomain_lane_bonding_disable() [all …]
|
| H A D | quirks.c | 32 struct tb_port *port; in quirk_usb3_maximum_bandwidth()
|
| H A D | eeprom.c | 365 struct tb_port *port; in tb_drom_parse_entry_port()
|
| H A D | icm.c | 385 struct tb_port *nhi_port, *dst_port; in icm_xdomain_activated() 2044 struct tb_port *port; in icm_unplug_children() 2089 struct tb_port *port; in icm_free_unplugged_children()
|