Lines Matching refs:tb

121  * @tb: Pointer to the domain the switch belongs to
175 struct tb *tb;
219 * @tb: Pointer to the domain the group belongs to
234 struct tb *tb;
324 * @tb: Pointer to the domain the retimer belongs to
335 struct tb *tb;
401 * @tb: Pointer to the domain structure
422 struct tb *tb;
467 * it is unregistered. Called without @tb->lock taken. Optional.
498 int (*driver_ready)(struct tb *tb);
499 int (*start)(struct tb *tb, bool reset);
500 void (*stop)(struct tb *tb);
501 void (*deinit)(struct tb *tb);
502 int (*suspend_noirq)(struct tb *tb);
503 int (*resume_noirq)(struct tb *tb);
504 int (*suspend)(struct tb *tb);
505 int (*freeze_noirq)(struct tb *tb);
506 int (*thaw_noirq)(struct tb *tb);
507 void (*complete)(struct tb *tb);
508 int (*runtime_suspend)(struct tb *tb);
509 int (*runtime_resume)(struct tb *tb);
512 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
514 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
515 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
516 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
517 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
518 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
519 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
521 int (*disconnect_pcie_paths)(struct tb *tb);
522 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
525 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
535 static inline void *tb_priv(struct tb *tb)
537 return (void *)tb->privdata;
666 return tb_cfg_read(sw->tb->ctl,
680 return tb_cfg_write(sw->tb->ctl,
694 return tb_cfg_read(port->sw->tb->ctl,
708 return tb_cfg_write(port->sw->tb->ctl,
717 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg)
718 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg)
719 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg)
720 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg)
721 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg)
726 level(__sw->tb, "%llx: " fmt, \
737 level(__port->sw->tb, "%llx:%u: " fmt, \
749 struct tb *icm_probe(struct tb_nhi *nhi);
750 struct tb *tb_probe(struct tb_nhi *nhi);
762 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
763 int tb_domain_add(struct tb *tb, bool reset);
764 void tb_domain_remove(struct tb *tb);
765 int tb_domain_suspend_noirq(struct tb *tb);
766 int tb_domain_resume_noirq(struct tb *tb);
767 int tb_domain_suspend(struct tb *tb);
768 int tb_domain_freeze_noirq(struct tb *tb);
769 int tb_domain_thaw_noirq(struct tb *tb);
770 void tb_domain_complete(struct tb *tb);
771 int tb_domain_runtime_suspend(struct tb *tb);
772 int tb_domain_runtime_resume(struct tb *tb);
773 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
774 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
775 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
776 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
777 int tb_domain_disconnect_pcie_paths(struct tb *tb);
778 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
781 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
784 int tb_domain_disconnect_all_paths(struct tb *tb);
786 static inline struct tb *tb_domain_get(struct tb *tb)
788 if (tb)
789 get_device(&tb->dev);
790 return tb;
793 static inline void tb_domain_put(struct tb *tb)
795 put_device(&tb->dev);
821 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
823 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
837 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
839 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
840 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
1161 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1225 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
1227 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
1232 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,