Lines Matching refs:tb_port

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()
440 static inline struct tb_port *tb_port_at(u64 route, struct tb_switch *sw) in tb_port_at()
456 static inline bool tb_port_has_remote(const struct tb_port *port) in tb_port_has_remote()
468 static inline bool tb_port_is_null(const struct tb_port *port) in tb_port_is_null()
473 static inline bool tb_port_is_nhi(const struct tb_port *port) in tb_port_is_nhi()
478 static inline bool tb_port_is_pcie_down(const struct tb_port *port) in tb_port_is_pcie_down()
483 static inline bool tb_port_is_pcie_up(const struct tb_port *port) in tb_port_is_pcie_up()
488 static inline bool tb_port_is_dpin(const struct tb_port *port) in tb_port_is_dpin()
493 static inline bool tb_port_is_dpout(const struct tb_port *port) in tb_port_is_dpout()
498 static inline bool tb_port_is_usb3_down(const struct tb_port *port) in tb_port_is_usb3_down()
503 static inline bool tb_port_is_usb3_up(const struct tb_port *port) in tb_port_is_usb3_up()
536 static inline int tb_port_read(struct tb_port *port, void *buffer, in tb_port_read()
550 static inline int tb_port_write(struct tb_port *port, const void *buffer, in tb_port_write()
583 const struct tb_port *__port = (_port); \
659 struct tb_port *tb_switch_find_port(struct tb_switch *sw,
825 bool tb_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
826 int tb_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
827 void tb_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
840 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
841 int tb_port_add_nfc_credits(struct tb_port *port, int credits);
842 int tb_port_set_initial_credits(struct tb_port *port, u32 credits);
843 int tb_port_clear_counter(struct tb_port *port, int counter);
844 int tb_port_unlock(struct tb_port *port);
845 int tb_port_enable(struct tb_port *port);
846 int tb_port_disable(struct tb_port *port);
847 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
848 void tb_port_release_in_hopid(struct tb_port *port, int hopid);
849 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
850 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
851 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
852 struct tb_port *prev);
866 int tb_port_get_link_speed(struct tb_port *port);
871 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
872 int tb_port_next_cap(struct tb_port *port, unsigned int offset);
873 bool tb_port_is_enabled(struct tb_port *port);
875 bool tb_usb3_port_is_enabled(struct tb_port *port);
876 int tb_usb3_port_enable(struct tb_port *port, bool enable);
878 bool tb_pci_port_is_enabled(struct tb_port *port);
879 int tb_pci_port_enable(struct tb_port *port, bool enable);
881 int tb_dp_port_hpd_is_active(struct tb_port *port);
882 int tb_dp_port_hpd_clear(struct tb_port *port);
883 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
885 bool tb_dp_port_is_enabled(struct tb_port *port);
886 int tb_dp_port_enable(struct tb_port *port, bool enable);
888 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
889 struct tb_port *dst, int dst_hopid,
890 struct tb_port **last, const char *name);
891 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
892 struct tb_port *dst, int dst_hopid, int link_nr,
899 const struct tb_port *port);
905 int tb_lc_configure_port(struct tb_port *port);
906 void tb_lc_unconfigure_port(struct tb_port *port);
907 int tb_lc_configure_xdomain(struct tb_port *port);
908 void tb_lc_unconfigure_xdomain(struct tb_port *port);
912 bool tb_lc_dp_sink_query(struct tb_switch *sw, struct tb_port *in);
913 int tb_lc_dp_sink_alloc(struct tb_switch *sw, struct tb_port *in);
914 int tb_lc_dp_sink_dealloc(struct tb_switch *sw, struct tb_port *in);
929 static inline u64 tb_downstream_route(struct tb_port *port) in tb_downstream_route()
945 int tb_retimer_scan(struct tb_port *port);
946 void tb_retimer_remove_all(struct tb_port *port);
973 bool usb4_switch_query_dp_resource(struct tb_switch *sw, struct tb_port *in);
974 int usb4_switch_alloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
975 int usb4_switch_dealloc_dp_resource(struct tb_switch *sw, struct tb_port *in);
976 struct tb_port *usb4_switch_map_pcie_down(struct tb_switch *sw,
977 const struct tb_port *port);
978 struct tb_port *usb4_switch_map_usb3_down(struct tb_switch *sw,
979 const struct tb_port *port);
981 int usb4_port_unlock(struct tb_port *port);
982 int usb4_port_configure(struct tb_port *port);
983 void usb4_port_unconfigure(struct tb_port *port);
984 int usb4_port_configure_xdomain(struct tb_port *port);
985 void usb4_port_unconfigure_xdomain(struct tb_port *port);
986 int usb4_port_enumerate_retimers(struct tb_port *port);
988 int usb4_port_retimer_read(struct tb_port *port, u8 index, u8 reg, void *buf,
990 int usb4_port_retimer_write(struct tb_port *port, u8 index, u8 reg,
992 int usb4_port_retimer_is_last(struct tb_port *port, u8 index);
993 int usb4_port_retimer_nvm_sector_size(struct tb_port *port, u8 index);
994 int usb4_port_retimer_nvm_write(struct tb_port *port, u8 index,
997 int usb4_port_retimer_nvm_authenticate(struct tb_port *port, u8 index);
998 int usb4_port_retimer_nvm_authenticate_status(struct tb_port *port, u8 index,
1000 int usb4_port_retimer_nvm_read(struct tb_port *port, u8 index,
1003 int usb4_usb3_port_max_link_rate(struct tb_port *port);
1004 int usb4_usb3_port_actual_link_rate(struct tb_port *port);
1005 int usb4_usb3_port_allocated_bandwidth(struct tb_port *port, int *upstream_bw,
1007 int usb4_usb3_port_allocate_bandwidth(struct tb_port *port, int *upstream_bw,
1009 int usb4_usb3_port_release_bandwidth(struct tb_port *port, int *upstream_bw,