Lines Matching refs:tb_port
91 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()
351 static inline bool tb_port_has_remote(const struct tb_port *port) in tb_port_has_remote()
363 static inline bool tb_port_is_null(const struct tb_port *port) in tb_port_is_null()
368 static inline bool tb_port_is_pcie_down(const struct tb_port *port) in tb_port_is_pcie_down()
373 static inline bool tb_port_is_pcie_up(const struct tb_port *port) in tb_port_is_pcie_up()
378 static inline bool tb_port_is_dpin(const struct tb_port *port) in tb_port_is_dpin()
383 static inline bool tb_port_is_dpout(const struct tb_port *port) in tb_port_is_dpout()
416 static inline int tb_port_read(struct tb_port *port, void *buffer, in tb_port_read()
430 static inline int tb_port_write(struct tb_port *port, const void *buffer, in tb_port_write()
463 const struct tb_port *__port = (_port); \
594 int tb_wait_for_port(struct tb_port *port, bool wait_if_unplugged);
595 int tb_port_add_nfc_credits(struct tb_port *port, int credits);
596 int tb_port_set_initial_credits(struct tb_port *port, u32 credits);
597 int tb_port_clear_counter(struct tb_port *port, int counter);
598 int tb_port_alloc_in_hopid(struct tb_port *port, int hopid, int max_hopid);
599 void tb_port_release_in_hopid(struct tb_port *port, int hopid);
600 int tb_port_alloc_out_hopid(struct tb_port *port, int hopid, int max_hopid);
601 void tb_port_release_out_hopid(struct tb_port *port, int hopid);
602 struct tb_port *tb_next_port_on_path(struct tb_port *start, struct tb_port *end,
603 struct tb_port *prev);
606 int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap);
607 bool tb_port_is_enabled(struct tb_port *port);
609 bool tb_pci_port_is_enabled(struct tb_port *port);
610 int tb_pci_port_enable(struct tb_port *port, bool enable);
612 int tb_dp_port_hpd_is_active(struct tb_port *port);
613 int tb_dp_port_hpd_clear(struct tb_port *port);
614 int tb_dp_port_set_hops(struct tb_port *port, unsigned int video,
616 bool tb_dp_port_is_enabled(struct tb_port *port);
617 int tb_dp_port_enable(struct tb_port *port, bool enable);
619 struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
620 struct tb_port *dst, int dst_hopid,
621 struct tb_port **last, const char *name);
622 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
623 struct tb_port *dst, int dst_hopid, int link_nr,
650 static inline u64 tb_downstream_route(struct tb_port *port) in tb_downstream_route()