Lines Matching refs:tb_port

182 	struct tb_port *ports;
254 struct tb_port { struct
257 struct tb_port *remote; argument
267 struct tb_port *dual_link_port; argument
288 struct tb_port *port; argument
314 struct tb_port *port;
347 struct tb_port *in_port;
348 struct tb_port *out_port;
519 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
531 static inline bool tb_is_upstream_port(const struct tb_port *port) in tb_is_upstream_port()
533 const struct tb_port *upstream_port = tb_upstream_port(port->sw); in tb_is_upstream_port()
542 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
558 static inline bool tb_port_has_remote(const struct tb_port *port) in tb_port_has_remote()
570 static inline bool tb_port_is_null(const struct tb_port *port) in tb_port_is_null()
575 static inline bool tb_port_is_nhi(const struct tb_port *port) in tb_port_is_nhi()
580 static inline bool tb_port_is_pcie_down(const struct tb_port *port) in tb_port_is_pcie_down()
585 static inline bool tb_port_is_pcie_up(const struct tb_port *port) in tb_port_is_pcie_up()
590 static inline bool tb_port_is_dpin(const struct tb_port *port) in tb_port_is_dpin()
595 static inline bool tb_port_is_dpout(const struct tb_port *port) in tb_port_is_dpout()
600 static inline bool tb_port_is_usb3_down(const struct tb_port *port) in tb_port_is_usb3_down()
605 static inline bool tb_port_is_usb3_up(const struct tb_port *port) in tb_port_is_usb3_up()
638 static inline int tb_port_read(struct tb_port *port, void *buffer, in tb_port_read()
652 static inline int tb_port_write(struct tb_port *port, const void *buffer, in tb_port_write()
685 const struct tb_port *__port = (_port); \
783 struct tb_port *tb_switch_find_port(struct tb_switch *sw,
938 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
939 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
940 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
1010 int tb_port_state(struct tb_port *port);
1011 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
1012 int tb_port_add_nfc_credits(struct tb_port *port, int credits);
1013 int tb_port_clear_counter(struct tb_port *port, int counter);
1014 int tb_port_unlock(struct tb_port *port);
1015 int tb_port_enable(struct tb_port *port);
1016 int tb_port_disable(struct tb_port *port);
1017 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
1018 void tb_port_release_in_hopid(struct tb_port *port, int hopid);
1019 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
1020 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
1021 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
1022 struct tb_port *prev);
1024 static inline bool tb_port_use_credit_allocation(const struct tb_port *port) in tb_port_use_credit_allocation()
1041 int tb_port_get_link_speed(struct tb_port *port);
1042 int tb_port_get_link_width(struct tb_port *port);
1043 int tb_port_set_link_width(struct tb_port *port, unsigned int width);
1044 int tb_port_set_lane_bonding(struct tb_port *port, bool bonding);
1045 int tb_port_lane_bonding_enable(struct tb_port *port);
1046 void tb_port_lane_bonding_disable(struct tb_port *port);
1047 int tb_port_wait_for_link_width(struct tb_port *port, int width,
1049 int tb_port_update_credits(struct tb_port *port);
1050 bool tb_port_is_clx_enabled(struct tb_port *port, enum tb_clx clx);
1055 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
1056 int tb_port_next_cap(struct tb_port *port, unsigned int offset);
1057 bool tb_port_is_enabled(struct tb_port *port);
1059 bool tb_usb3_port_is_enabled(struct tb_port *port);
1060 int tb_usb3_port_enable(struct tb_port *port, bool enable);
1062 bool tb_pci_port_is_enabled(struct tb_port *port);
1063 int tb_pci_port_enable(struct tb_port *port, bool enable);
1065 int tb_dp_port_hpd_is_active(struct tb_port *port);
1066 int tb_dp_port_hpd_clear(struct tb_port *port);
1067 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
1069 bool tb_dp_port_is_enabled(struct tb_port *port);
1070 int tb_dp_port_enable(struct tb_port *port, bool enable);
1072 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
1073 struct tb_port *dst, int dst_hopid,
1074 struct tb_port **last, const char *name,
1076 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1077 struct tb_port *dst, int dst_hopid, int link_nr,
1084 const struct tb_port *port);
1101 int tb_lc_configure_port(struct tb_port *port);
1102 void tb_lc_unconfigure_port(struct tb_port *port);
1103 int tb_lc_configure_xdomain(struct tb_port *port);
1104 void tb_lc_unconfigure_xdomain(struct tb_port *port);
1105 int tb_lc_start_lane_initialization(struct tb_port *port);
1106 bool tb_lc_is_clx_supported(struct tb_port *port);
1107 bool tb_lc_is_usb_plugged(struct tb_port *port);
1108 bool tb_lc_is_xhci_connected(struct tb_port *port);
1109 int tb_lc_xhci_connect(struct tb_port *port);
1110 void tb_lc_xhci_disconnect(struct tb_port *port);
1114 bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in);
1115 int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in);
1116 int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in);
1131 static inline u64 tb_downstream_route(struct tb_port *port) in tb_downstream_route()
1155 int tb_retimer_scan(struct tb_port *port, bool add);
1156 void tb_retimer_remove_all(struct tb_port *port);
1186 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
1187 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
1188 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
1189 struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
1190 const struct tb_port *port);
1191 struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
1192 const struct tb_port *port);
1196 int usb4_port_unlock(struct tb_port *port);
1197 int usb4_port_hotplug_enable(struct tb_port *port);
1198 int usb4_port_configure(struct tb_port *port);
1199 void usb4_port_unconfigure(struct tb_port *port);
1200 int usb4_port_configure_xdomain(struct tb_port *port, struct tb_xdomain *xd);
1201 void usb4_port_unconfigure_xdomain(struct tb_port *port);
1202 int usb4_port_router_offline(struct tb_port *port);
1203 int usb4_port_router_online(struct tb_port *port);
1204 int usb4_port_enumerate_retimers(struct tb_port *port);
1205 bool usb4_port_clx_supported(struct tb_port *port);
1206 int usb4_port_margining_caps(struct tb_port *port, u32 *caps);
1207 int usb4_port_hw_margin(struct tb_port *port, unsigned int lanes,
1210 int usb4_port_sw_margin(struct tb_port *port, unsigned int lanes, bool timing,
1212 int usb4_port_sw_margin_errors(struct tb_port *port, u32 *errors);
1214 int usb4_port_retimer_set_inbound_sbtx(struct tb_port *port, u8 index);
1215 int usb4_port_retimer_read(struct tb_port *port, u8 index, u8 reg, void *buf,
1217 int usb4_port_retimer_write(struct tb_port *port, u8 index, u8 reg,
1219 int usb4_port_retimer_is_last(struct tb_port *port, u8 index);
1220 int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index);
1221 int usb4_port_retimer_nvm_set_offset(struct tb_port *port, u8 index,
1223 int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index,
1226 int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index);
1227 int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index,
1229 int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index,
1232 int usb4_usb3_port_max_link_rate(struct tb_port *port);
1233 int usb4_usb3_port_actual_link_rate(struct tb_port *port);
1234 int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw,
1236 int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw,
1238 int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw,
1253 struct usb4_port *usb4_port_device_add(struct tb_port *port);
1273 int tb_acpi_power_on_retimers(struct tb_port *port);
1274 int tb_acpi_power_off_retimers(struct tb_port *port);
1286 static inline int tb_acpi_power_on_retimers(struct tb_port *port) { return 0; } in tb_acpi_power_on_retimers()
1287 static inline int tb_acpi_power_off_retimers(struct tb_port *port) { return 0; } in tb_acpi_power_off_retimers()