Lines Matching refs:tb_port

179 	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()
524 const struct tb_port *upstream_port = tb_upstream_port(port->sw); in tb_is_upstream_port()
533 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
549 static inline bool tb_port_has_remote(const struct tb_port *port) in tb_port_has_remote()
561 static inline bool tb_port_is_null(const struct tb_port *port) in tb_port_is_null()
566 static inline bool tb_port_is_nhi(const struct tb_port *port) in tb_port_is_nhi()
571 static inline bool tb_port_is_pcie_down(const struct tb_port *port) in tb_port_is_pcie_down()
576 static inline bool tb_port_is_pcie_up(const struct tb_port *port) in tb_port_is_pcie_up()
581 static inline bool tb_port_is_dpin(const struct tb_port *port) in tb_port_is_dpin()
586 static inline bool tb_port_is_dpout(const struct tb_port *port) in tb_port_is_dpout()
591 static inline bool tb_port_is_usb3_down(const struct tb_port *port) in tb_port_is_usb3_down()
596 static inline bool tb_port_is_usb3_up(const struct tb_port *port) in tb_port_is_usb3_up()
629 static inline int tb_port_read(struct tb_port *port, void *buffer, in tb_port_read()
643 static inline int tb_port_write(struct tb_port *port, const void *buffer, in tb_port_write()
676 const struct tb_port *__port = (_port); \
770 struct tb_port *tb_switch_find_port(struct tb_switch *sw,
925 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
926 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
927 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
994 int tb_port_state(struct tb_port *port);
995 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
996 int tb_port_add_nfc_credits(struct tb_port *port, int credits);
997 int tb_port_clear_counter(struct tb_port *port, int counter);
998 int tb_port_unlock(struct tb_port *port);
999 int tb_port_enable(struct tb_port *port);
1000 int tb_port_disable(struct tb_port *port);
1001 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
1002 void tb_port_release_in_hopid(struct tb_port *port, int hopid);
1003 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
1004 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
1005 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
1006 struct tb_port *prev);
1008 static inline bool tb_port_use_credit_allocation(const struct tb_port *port) in tb_port_use_credit_allocation()
1025 int tb_port_get_link_speed(struct tb_port *port);
1026 int tb_port_get_link_width(struct tb_port *port);
1027 int tb_port_set_link_width(struct tb_port *port, unsigned int width);
1028 int tb_port_set_lane_bonding(struct tb_port *port, bool bonding);
1029 int tb_port_lane_bonding_enable(struct tb_port *port);
1030 void tb_port_lane_bonding_disable(struct tb_port *port);
1031 int tb_port_wait_for_link_width(struct tb_port *port, int width,
1033 int tb_port_update_credits(struct tb_port *port);
1038 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
1039 int tb_port_next_cap(struct tb_port *port, unsigned int offset);
1040 bool tb_port_is_enabled(struct tb_port *port);
1042 bool tb_usb3_port_is_enabled(struct tb_port *port);
1043 int tb_usb3_port_enable(struct tb_port *port, bool enable);
1045 bool tb_pci_port_is_enabled(struct tb_port *port);
1046 int tb_pci_port_enable(struct tb_port *port, bool enable);
1048 int tb_dp_port_hpd_is_active(struct tb_port *port);
1049 int tb_dp_port_hpd_clear(struct tb_port *port);
1050 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
1052 bool tb_dp_port_is_enabled(struct tb_port *port);
1053 int tb_dp_port_enable(struct tb_port *port, bool enable);
1055 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
1056 struct tb_port *dst, int dst_hopid,
1057 struct tb_port **last, const char *name,
1059 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1060 struct tb_port *dst, int dst_hopid, int link_nr,
1067 const struct tb_port *port);
1084 int tb_lc_configure_port(struct tb_port *port);
1085 void tb_lc_unconfigure_port(struct tb_port *port);
1086 int tb_lc_configure_xdomain(struct tb_port *port);
1087 void tb_lc_unconfigure_xdomain(struct tb_port *port);
1088 int tb_lc_start_lane_initialization(struct tb_port *port);
1089 bool tb_lc_is_clx_supported(struct tb_port *port);
1090 bool tb_lc_is_usb_plugged(struct tb_port *port);
1091 bool tb_lc_is_xhci_connected(struct tb_port *port);
1092 int tb_lc_xhci_connect(struct tb_port *port);
1093 void tb_lc_xhci_disconnect(struct tb_port *port);
1097 bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in);
1098 int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in);
1099 int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in);
1114 static inline u64 tb_downstream_route(struct tb_port *port) in tb_downstream_route()
1131 int tb_retimer_scan(struct tb_port *port, bool add);
1132 void tb_retimer_remove_all(struct tb_port *port);
1162 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
1163 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
1164 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
1165 struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
1166 const struct tb_port *port);
1167 struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
1168 const struct tb_port *port);
1172 int usb4_port_unlock(struct tb_port *port);
1173 int usb4_port_configure(struct tb_port *port);
1174 void usb4_port_unconfigure(struct tb_port *port);
1175 int usb4_port_configure_xdomain(struct tb_port *port);
1176 void usb4_port_unconfigure_xdomain(struct tb_port *port);
1177 int usb4_port_router_offline(struct tb_port *port);
1178 int usb4_port_router_online(struct tb_port *port);
1179 int usb4_port_enumerate_retimers(struct tb_port *port);
1180 bool usb4_port_clx_supported(struct tb_port *port);
1182 int usb4_port_retimer_set_inbound_sbtx(struct tb_port *port, u8 index);
1183 int usb4_port_retimer_read(struct tb_port *port, u8 index, u8 reg, void *buf,
1185 int usb4_port_retimer_write(struct tb_port *port, u8 index, u8 reg,
1187 int usb4_port_retimer_is_last(struct tb_port *port, u8 index);
1188 int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index);
1189 int usb4_port_retimer_nvm_set_offset(struct tb_port *port, u8 index,
1191 int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index,
1194 int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index);
1195 int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index,
1197 int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index,
1200 int usb4_usb3_port_max_link_rate(struct tb_port *port);
1201 int usb4_usb3_port_actual_link_rate(struct tb_port *port);
1202 int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw,
1204 int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw,
1206 int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw,
1221 struct usb4_port *usb4_port_device_add(struct tb_port *port);
1241 int tb_acpi_power_on_retimers(struct tb_port *port);
1242 int tb_acpi_power_off_retimers(struct tb_port *port);
1254 static inline int tb_acpi_power_on_retimers(struct tb_port *port) { return 0; } in tb_acpi_power_on_retimers()
1255 static inline int tb_acpi_power_off_retimers(struct tb_port *port) { return 0; } in tb_acpi_power_off_retimers()