Home
last modified time | relevance | path

Searched refs:tb_port (Results 1 – 18 of 18) sorted by relevance

/linux-5.19.10/drivers/thunderbolt/
Dtb.h179 struct tb_port *ports;
251 struct tb_port { struct
254 struct tb_port *remote; argument
264 struct tb_port *dual_link_port; argument
284 struct tb_port *port; argument
306 struct tb_port *port;
338 struct tb_port *in_port;
339 struct tb_port *out_port;
510 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
522 static inline bool tb_is_upstream_port(const struct tb_port *port) in tb_is_upstream_port()
[all …]
Dtunnel.h46 struct tb_port *src_port;
47 struct tb_port *dst_port;
67 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down,
69 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
70 struct tb_port *down);
71 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in,
73 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
74 struct tb_port *out, int link_nr,
76 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
77 struct tb_port *dst, int transmit_path,
[all …]
Dusb4.c158 struct tb_port *port; in usb4_switch_check_wakes()
196 static bool link_is_usb4(struct tb_port *port) in link_is_usb4()
223 struct tb_port *downstream_port; in usb4_switch_setup()
348 struct tb_port *up; in usb4_switch_lane_bonding_possible()
369 struct tb_port *port; in usb4_switch_set_wake()
687 const struct tb_port *port; in usb4_switch_credits_init()
823 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_query_dp_resource()
853 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_alloc_dp_resource()
876 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_dealloc_dp_resource()
892 static int usb4_port_idx(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_idx()
[all …]
Dlc.c30 static int find_port_lc_cap(struct tb_port *port) in find_port_lc_cap()
48 static int tb_lc_set_port_configured(struct tb_port *port, bool configured) in tb_lc_set_port_configured()
91 int tb_lc_configure_port(struct tb_port *port) in tb_lc_configure_port()
102 void tb_lc_unconfigure_port(struct tb_port *port) in tb_lc_unconfigure_port()
107 static int tb_lc_set_xdomain_configured(struct tb_port *port, bool configure) in tb_lc_set_xdomain_configured()
145 int tb_lc_configure_xdomain(struct tb_port *port) in tb_lc_configure_xdomain()
156 void tb_lc_unconfigure_xdomain(struct tb_port *port) in tb_lc_unconfigure_xdomain()
171 int tb_lc_start_lane_initialization(struct tb_port *port) in tb_lc_start_lane_initialization()
203 bool tb_lc_is_clx_supported(struct tb_port *port) in tb_lc_is_clx_supported()
226 bool tb_lc_is_usb_plugged(struct tb_port *port) in tb_lc_is_usb_plugged()
[all …]
Dtb.c75 struct tb_port *port; in tb_add_dp_resources()
92 struct tb_port *port, *tmp; in tb_remove_dp_resources()
113 struct tb_port *port; in tb_switch_discover_tunnels()
170 static int tb_port_configure_xdomain(struct tb_port *port) in tb_port_configure_xdomain()
177 static void tb_port_unconfigure_xdomain(struct tb_port *port) in tb_port_unconfigure_xdomain()
187 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain()
237 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
240 struct tb_port *port; in tb_find_unused_port()
256 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down()
257 const struct tb_port *port) in tb_find_usb3_down()
[all …]
Dtmu.c84 static int tb_port_tmu_write(struct tb_port *port, u8 offset, u32 mask, in tb_port_tmu_write()
101 static int tb_port_tmu_set_unidirectional(struct tb_port *port, in tb_port_tmu_set_unidirectional()
113 static inline int tb_port_tmu_unidirectional_disable(struct tb_port *port) in tb_port_tmu_unidirectional_disable()
118 static inline int tb_port_tmu_unidirectional_enable(struct tb_port *port) in tb_port_tmu_unidirectional_enable()
123 static bool tb_port_tmu_is_unidirectional(struct tb_port *port) in tb_port_tmu_is_unidirectional()
136 static int tb_port_tmu_time_sync(struct tb_port *port, bool time_sync) in tb_port_tmu_time_sync()
143 static int tb_port_tmu_time_sync_disable(struct tb_port *port) in tb_port_tmu_time_sync_disable()
148 static int tb_port_tmu_time_sync_enable(struct tb_port *port) in tb_port_tmu_time_sync_enable()
188 struct tb_port *port; in tb_switch_tmu_init()
217 struct tb_port *up = tb_upstream_port(sw); in tb_switch_tmu_init()
[all …]
Dswitch.c501 static void tb_dump_port(struct tb *tb, const struct tb_port *port) in tb_dump_port()
526 int tb_port_state(struct tb_port *port) in tb_port_state()
555 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port()
616 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits()
653 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter()
667 int tb_port_unlock(struct tb_port *port) in tb_port_unlock()
678 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable()
712 int tb_port_enable(struct tb_port *port) in tb_port_enable()
723 int tb_port_disable(struct tb_port *port) in tb_port_disable()
736 static int tb_init_port(struct tb_port *port) in tb_init_port()
[all …]
Dpath.c18 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 …]
Dtunnel.c70 static inline unsigned int tb_usable_credits(const struct tb_port *port) in tb_usable_credits()
81 static unsigned int tb_available_credits(const struct tb_port *port, in tb_available_credits()
161 struct tb_port *port = hop->in_port; in tb_pci_init_credits()
219 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down, in tb_tunnel_discover_pci()
299 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci()
300 struct tb_port *down) in tb_tunnel_alloc_pci()
342 static int tb_dp_cm_handshake(struct tb_port *in, struct tb_port *out) in tb_dp_cm_handshake()
507 struct tb_port *out = tunnel->dst_port; in tb_dp_xchg_caps()
508 struct tb_port *in = tunnel->src_port; in tb_dp_xchg_caps()
640 struct tb_port *in = tunnel->src_port; in tb_dp_consumed_bandwidth()
[all …]
Dcap.c18 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()
72 int tb_port_next_cap(struct tb_port *port, unsigned int offset) in tb_port_next_cap()
87 static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in __tb_port_find_cap()
119 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in tb_port_find_cap()
Ddebugfs.c123 static ssize_t regs_write(struct tb_switch *sw, struct tb_port *port, in regs_write()
170 struct tb_port *port = s->private; in port_regs_write()
190 static int port_clear_all_counters(struct tb_port *port) in port_clear_all_counters()
211 struct tb_port *port = s->private; in counters_write()
255 struct tb_port *port, unsigned int cap, in cap_show_by_dw()
278 struct tb_port *port, unsigned int cap, u8 cap_id, in cap_show()
308 static void port_cap_show(struct tb_port *port, struct seq_file *s, in port_cap_show()
380 static void port_caps_show(struct tb_port *port, struct seq_file *s) in port_caps_show()
391 static int port_basic_regs_show(struct tb_port *port, struct seq_file *s) in port_basic_regs_show()
408 struct tb_port *port = s->private; in port_regs_show()
[all …]
Dusb4_port.c45 struct tb_port *port = usb4->port; in link_show()
76 struct tb_port *port = usb4->port; in usb4_port_offline()
100 struct tb_port *port = usb4->port; in usb4_port_online()
118 struct tb_port *port = usb4->port; in offline_store()
169 struct tb_port *port = usb4->port; in rescan_store()
257 struct usb4_port *usb4_port_device_add(struct tb_port *port) in usb4_port_device_add()
Dacpi.c205 static int tb_acpi_retimer_set_power(struct tb_port *port, bool power) in tb_acpi_retimer_set_power()
280 int tb_acpi_power_on_retimers(struct tb_port *port) in tb_acpi_power_on_retimers()
294 int tb_acpi_power_off_retimers(struct tb_port *port) in tb_acpi_power_off_retimers()
305 const struct tb_port *port) in tb_acpi_find_port()
331 struct tb_port *port = tb_port_at(tb_route(sw), parent_sw); in tb_acpi_switch_find_companion()
Dtest.c177 struct tb_port *port, *upstream_port; in alloc_dev_default()
408 struct tb_port *src_port, *dst_port, *p; in tb_test_path_basic()
425 struct tb_port *src_port, *dst_port, *p; in tb_test_path_not_connected_walk()
479 struct tb_port *src_port, *dst_port, *p; in tb_test_path_single_hop_walk()
537 struct tb_port *src_port, *dst_port, *p; in tb_test_path_daisy_chain_walk()
598 struct tb_port *src_port, *dst_port, *p; in tb_test_path_simple_tree_walk()
678 struct tb_port *src_port, *dst_port, *p; in tb_test_path_complex_tree_walk()
726 struct tb_port *src_port, *dst_port, *p; in tb_test_path_max_length_walk()
828 struct tb_port *down, *up; in tb_test_path_not_connected()
880 struct tb_port *down, *up; in tb_test_path_not_bonded_lane0()
[all …]
Dretimer.c325 static int tb_retimer_add(struct tb_port *port, u8 index, u32 auth_status) in tb_retimer_add()
413 const struct tb_port *port;
425 static struct tb_retimer *tb_port_find_retimer(struct tb_port *port, u8 index) in tb_port_find_retimer()
447 int tb_retimer_scan(struct tb_port *port, bool add) in tb_retimer_scan()
524 struct tb_port *port = data; in remove_retimer()
537 void tb_retimer_remove_all(struct tb_port *port) in tb_retimer_remove_all()
Dxdomain.c542 struct tb_port *port = tb_port_at(xd->route, sw); in tb_xdp_link_state_status_response()
1142 struct tb_port *port; in tb_xdomain_update_link_attributes()
1261 struct tb_port *port = tb_port_at(xd->route, sw); in tb_xdomain_link_state_change()
1301 struct tb_port *port; in tb_xdomain_bond_lanes_uuid_high()
1427 struct tb_port *port; in tb_xdomain_get_properties()
1848 struct tb_port *down; in tb_xdomain_alloc()
1976 struct tb_port *port; in tb_xdomain_lane_bonding_enable()
2022 struct tb_port *port; in tb_xdomain_lane_bonding_disable()
2164 struct tb_port *port; in switch_find_xdomain()
Deeprom.c363 struct tb_port *port; in tb_drom_parse_entry_port()
Dicm.c2012 struct tb_port *port; in icm_unplug_children()
2057 struct tb_port *port; in icm_free_unplugged_children()