Lines Matching refs:tb

119  * @tb: Pointer to the domain the switch belongs to
177 struct tb *tb;
220 * @tb: Pointer to the domain the group belongs to
230 struct tb *tb;
316 * @tb: Pointer to the domain the retimer belongs to
327 struct tb *tb;
391 * @tb: Pointer to the domain structure
412 struct tb *tb;
486 int (*driver_ready)(struct tb *tb);
487 int (*start)(struct tb *tb);
488 void (*stop)(struct tb *tb);
489 int (*suspend_noirq)(struct tb *tb);
490 int (*resume_noirq)(struct tb *tb);
491 int (*suspend)(struct tb *tb);
492 int (*freeze_noirq)(struct tb *tb);
493 int (*thaw_noirq)(struct tb *tb);
494 void (*complete)(struct tb *tb);
495 int (*runtime_suspend)(struct tb *tb);
496 int (*runtime_resume)(struct tb *tb);
499 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
501 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
502 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
503 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
504 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
505 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
506 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
508 int (*disconnect_pcie_paths)(struct tb *tb);
509 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
512 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
522 static inline void *tb_priv(struct tb *tb)
524 return (void *)tb->privdata;
637 return tb_cfg_read(sw->tb->ctl,
651 return tb_cfg_write(sw->tb->ctl,
665 return tb_cfg_read(port->sw->tb->ctl,
679 return tb_cfg_write(port->sw->tb->ctl,
688 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg)
689 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg)
690 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg)
691 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg)
692 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg)
697 level(__sw->tb, "%llx: " fmt, \
708 level(__port->sw->tb, "%llx:%u: " fmt, \
720 struct tb *icm_probe(struct tb_nhi *nhi);
721 struct tb *tb_probe(struct tb_nhi *nhi);
733 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
734 int tb_domain_add(struct tb *tb);
735 void tb_domain_remove(struct tb *tb);
736 int tb_domain_suspend_noirq(struct tb *tb);
737 int tb_domain_resume_noirq(struct tb *tb);
738 int tb_domain_suspend(struct tb *tb);
739 int tb_domain_freeze_noirq(struct tb *tb);
740 int tb_domain_thaw_noirq(struct tb *tb);
741 void tb_domain_complete(struct tb *tb);
742 int tb_domain_runtime_suspend(struct tb *tb);
743 int tb_domain_runtime_resume(struct tb *tb);
744 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
745 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
746 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
747 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
748 int tb_domain_disconnect_pcie_paths(struct tb *tb);
749 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
752 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
755 int tb_domain_disconnect_all_paths(struct tb *tb);
757 static inline struct tb *tb_domain_get(struct tb *tb)
759 if (tb)
760 get_device(&tb->dev);
761 return tb;
764 static inline void tb_domain_put(struct tb *tb)
766 put_device(&tb->dev);
792 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
794 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
808 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
810 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
811 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
1093 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1155 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
1157 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
1162 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,