| /Linux-v5.10/drivers/thunderbolt/ |
| D | tb.h | 145 struct tb_port *ports; 200 struct tb_port { struct 203 struct tb_port *remote; argument 212 struct tb_port *dual_link_port; argument 236 struct tb_port *port; argument 266 struct tb_port *in_port; 267 struct tb_port *out_port; 417 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port() 429 static inline bool tb_is_upstream_port(const struct tb_port *port) in tb_is_upstream_port() 431 const struct tb_port *upstream_port = tb_upstream_port(port->sw); in tb_is_upstream_port() [all …]
|
| D | tunnel.h | 45 struct tb_port *src_port; 46 struct tb_port *dst_port; 65 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down); 66 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, 67 struct tb_port *down); 68 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in); 69 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, 70 struct tb_port *out, int max_up, 72 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi, 73 struct tb_port *dst, int transmit_ring, [all …]
|
| D | usb4.c | 201 struct tb_port *port; in usb4_switch_check_wakes() 239 static bool link_is_usb4(struct tb_port *port) in link_is_usb4() 266 struct tb_port *downstream_port; in usb4_switch_setup() 392 struct tb_port *up; in usb4_switch_lane_bonding_possible() 413 struct tb_port *port; in usb4_switch_set_wake() 678 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_query_dp_resource() 710 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_alloc_dp_resource() 735 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in) in usb4_switch_dealloc_dp_resource() 753 static int usb4_port_idx(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_idx() 755 struct tb_port *p; in usb4_port_idx() [all …]
|
| D | tb.c | 72 struct tb_port *port; in tb_add_dp_resources() 89 struct tb_port *port, *tmp; in tb_remove_dp_resources() 109 struct tb_port *port; in tb_discover_tunnels() 152 static int tb_port_configure_xdomain(struct tb_port *port) in tb_port_configure_xdomain() 165 static void tb_port_unconfigure_xdomain(struct tb_port *port) in tb_port_unconfigure_xdomain() 175 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain() 222 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port() 225 struct tb_port *port; in tb_find_unused_port() 241 static struct tb_port *tb_find_usb3_down(struct tb_switch *sw, in tb_find_usb3_down() 242 const struct tb_port *port) in tb_find_usb3_down() [all …]
|
| D | lc.c | 30 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() 281 struct tb_port *up; in tb_lc_lane_bonding_possible() 301 struct tb_port *in) in tb_lc_dp_sink_from_port() 303 struct tb_port *port; in tb_lc_dp_sink_from_port() [all …]
|
| 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() 100 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid, in tb_path_discover() 101 struct tb_port *dst, int dst_hopid, in tb_path_discover() 102 struct tb_port **last, const char *name) in tb_path_discover() 104 struct tb_port *out_port; in tb_path_discover() [all …]
|
| D | switch.c | 511 static int tb_port_state(struct tb_port *port) in tb_port_state() 538 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port() 597 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits() 631 int tb_port_set_initial_credits(struct tb_port *port, u32 credits) in tb_port_set_initial_credits() 651 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter() 665 int tb_port_unlock(struct tb_port *port) in tb_port_unlock() 676 static int __tb_port_enable(struct tb_port *port, bool enable) in __tb_port_enable() 704 int tb_port_enable(struct tb_port *port) in tb_port_enable() 715 int tb_port_disable(struct tb_port *port) in tb_port_disable() 728 static int tb_init_port(struct tb_port *port) in tb_init_port() [all …]
|
| D | tmu.c | 84 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 bool tb_port_tmu_is_unidirectional(struct tb_port *port) in tb_port_tmu_is_unidirectional() 160 struct tb_port *port; in tb_switch_tmu_init() 189 struct tb_port *up = tb_upstream_port(sw); in tb_switch_tmu_init() 311 struct tb_port *up, *down; in tb_switch_tmu_disable() 356 struct tb_port *up, *down; in tb_switch_tmu_enable()
|
| 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() 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()
|
| D | debugfs.c | 123 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, u8 cap_id, in cap_show() 288 static void port_cap_show(struct tb_port *port, struct seq_file *s, in port_cap_show() 369 static void port_caps_show(struct tb_port *port, struct seq_file *s) in port_caps_show() 380 static int port_basic_regs_show(struct tb_port *port, struct seq_file *s) in port_basic_regs_show() 397 struct tb_port *port = s->private; in port_regs_show() 531 static int path_show_one(struct tb_port *port, struct seq_file *s, int hopid) in path_show_one() [all …]
|
| D | tunnel.c | 141 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_pci() 218 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci() 219 struct tb_port *down) in tb_tunnel_alloc_pci() 259 static int tb_dp_cm_handshake(struct tb_port *in, struct tb_port *out) in tb_dp_cm_handshake() 424 struct tb_port *out = tunnel->dst_port; in tb_dp_xchg_caps() 425 struct tb_port *in = tunnel->src_port; in tb_dp_xchg_caps() 547 struct tb_port *in = tunnel->src_port; in tb_dp_consumed_bandwidth() 654 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in) in tb_tunnel_discover_dp() 657 struct tb_port *port; in tb_tunnel_discover_dp() 738 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, in tb_tunnel_alloc_dp() [all …]
|
| D | test.c | 149 struct tb_port *port, *upstream_port; in alloc_dev_default() 298 struct tb_port *src_port, *dst_port, *p; in tb_test_path_basic() 315 struct tb_port *src_port, *dst_port, *p; in tb_test_path_not_connected_walk() 369 struct tb_port *src_port, *dst_port, *p; in tb_test_path_single_hop_walk() 427 struct tb_port *src_port, *dst_port, *p; in tb_test_path_daisy_chain_walk() 488 struct tb_port *src_port, *dst_port, *p; in tb_test_path_simple_tree_walk() 568 struct tb_port *src_port, *dst_port, *p; in tb_test_path_complex_tree_walk() 616 struct tb_port *src_port, *dst_port, *p; in tb_test_path_max_length_walk() 718 struct tb_port *down, *up; in tb_test_path_not_connected() 770 struct tb_port *down, *up; in tb_test_path_not_bonded_lane0() [all …]
|
| D | retimer.c | 284 static int tb_retimer_add(struct tb_port *port, u8 index, u32 auth_status) in tb_retimer_add() 375 const struct tb_port *port; 387 static struct tb_retimer *tb_port_find_retimer(struct tb_port *port, u8 index) in tb_port_find_retimer() 407 int tb_retimer_scan(struct tb_port *port) in tb_retimer_scan() 467 struct tb_port *port = data; in remove_retimer() 480 void tb_retimer_remove_all(struct tb_port *port) in tb_retimer_remove_all()
|
| D | eeprom.c | 338 struct tb_port *port; in tb_drom_parse_entry_port()
|
| D | xdomain.c | 1277 struct tb_port *down; in tb_xdomain_alloc() 1465 struct tb_port *port; in switch_find_xdomain()
|
| D | icm.c | 1955 struct tb_port *port; in icm_unplug_children() 2000 struct tb_port *port; in icm_free_unplugged_children()
|