Home
last modified time | relevance | path

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

/drivers/thunderbolt/
Dtb.h91 struct tb_port *ports;
136 struct tb_port { struct
139 struct tb_port *remote; argument
145 struct tb_port *dual_link_port; argument
176 struct tb_port *in_port;
177 struct tb_port *out_port;
312 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
324 static inline bool tb_is_upstream_port(const struct tb_port *port) in tb_is_upstream_port()
326 const struct tb_port *upstream_port = tb_upstream_port(port->sw); in tb_is_upstream_port()
335 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
[all …]
Dtunnel.h35 struct tb_port *src_port;
36 struct tb_port *dst_port;
45 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down);
46 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
47 struct tb_port *down);
48 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in);
49 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in,
50 struct tb_port *out);
51 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
52 struct tb_port *dst, int transmit_ring,
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()
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 …]
Dtb.c63 struct tb_port *port; in tb_discover_tunnels()
104 static void tb_scan_xdomain(struct tb_port *port) in tb_scan_xdomain()
126 static void tb_scan_port(struct tb_port *port);
141 static void tb_scan_port(struct tb_port *port) in tb_scan_port()
144 struct tb_port *upstream_port; in tb_scan_port()
224 struct tb_port *src_port, struct tb_port *dst_port) in tb_free_tunnel()
268 struct tb_port *port = &sw->ports[i]; in tb_free_unplugged_children()
289 static struct tb_port *tb_find_port(struct tb_switch *sw, in tb_find_port()
304 static struct tb_port *tb_find_unused_port(struct tb_switch *sw, in tb_find_unused_port()
323 static struct tb_port *tb_find_pcie_down(struct tb_switch *sw, in tb_find_pcie_down()
[all …]
Dtunnel.c116 struct tb_tunnel *tb_tunnel_discover_pci(struct tb *tb, struct tb_port *down) in tb_tunnel_discover_pci()
193 struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, in tb_tunnel_alloc_pci()
194 struct tb_port *down) in tb_tunnel_alloc_pci()
230 struct tb_port *out = tunnel->dst_port; in tb_dp_xchg_caps()
231 struct tb_port *in = tunnel->src_port; in tb_dp_xchg_caps()
349 struct tb_tunnel *tb_tunnel_discover_dp(struct tb *tb, struct tb_port *in) in tb_tunnel_discover_dp()
352 struct tb_port *port; in tb_tunnel_discover_dp()
428 struct tb_tunnel *tb_tunnel_alloc_dp(struct tb *tb, struct tb_port *in, in tb_tunnel_alloc_dp()
429 struct tb_port *out) in tb_tunnel_alloc_dp()
477 static u32 tb_dma_credits(struct tb_port *nhi) in tb_dma_credits()
[all …]
Dswitch.c482 static int tb_port_state(struct tb_port *port) in tb_port_state()
509 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged) in tb_wait_for_port()
568 int tb_port_add_nfc_credits(struct tb_port *port, int credits) in tb_port_add_nfc_credits()
595 int tb_port_set_initial_credits(struct tb_port *port, u32 credits) in tb_port_set_initial_credits()
615 int tb_port_clear_counter(struct tb_port *port, int counter) in tb_port_clear_counter()
630 static int tb_init_port(struct tb_port *port) in tb_init_port()
671 static int tb_port_alloc_hopid(struct tb_port *port, bool in, int min_hopid, in tb_port_alloc_hopid()
704 int tb_port_alloc_in_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_in_hopid()
718 int tb_port_alloc_out_hopid(struct tb_port *port, int min_hopid, int max_hopid) in tb_port_alloc_out_hopid()
728 void tb_port_release_in_hopid(struct tb_port *port, int hopid) in tb_port_release_in_hopid()
[all …]
Dcap.c26 static int tb_port_enable_tmu(struct tb_port *port, bool enable) in tb_port_enable_tmu()
55 static void tb_port_dummy_read(struct tb_port *port) in tb_port_dummy_read()
70 static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in __tb_port_find_cap()
100 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) in tb_port_find_cap()
Dlc.c30 static int find_port_lc_cap(struct tb_port *port) in find_port_lc_cap()
48 static int tb_lc_configure_lane(struct tb_port *port, bool configure) in tb_lc_configure_lane()
94 struct tb_port *up, *down; in tb_lc_configure_link()
125 struct tb_port *up, *down; in tb_lc_unconfigure_link()
Deeprom.c334 struct tb_port *port; in tb_drom_parse_entry_port()
Dicm.c1902 struct tb_port *port = &sw->ports[i]; in icm_unplug_children()
1942 struct tb_port *port = &sw->ports[i]; in icm_free_unplugged_children()
Dxdomain.c1410 struct tb_port *port = &sw->ports[i]; in switch_find_xdomain()