Lines Matching refs:tb

179 	struct tb *tb;  member
232 struct tb *tb; member
331 struct tb *tb; member
416 struct tb *tb; member
490 int (*driver_ready)(struct tb *tb);
491 int (*start)(struct tb *tb, bool reset);
492 void (*stop)(struct tb *tb);
493 int (*suspend_noirq)(struct tb *tb);
494 int (*resume_noirq)(struct tb *tb);
495 int (*suspend)(struct tb *tb);
496 int (*freeze_noirq)(struct tb *tb);
497 int (*thaw_noirq)(struct tb *tb);
498 void (*complete)(struct tb *tb);
499 int (*runtime_suspend)(struct tb *tb);
500 int (*runtime_resume)(struct tb *tb);
503 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
505 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
506 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
507 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
508 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
509 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
510 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
512 int (*disconnect_pcie_paths)(struct tb *tb);
513 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
516 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
526 static inline void *tb_priv(struct tb *tb) in tb_priv() argument
528 return (void *)tb->privdata; in tb_priv()
641 return tb_cfg_read(sw->tb->ctl, in tb_sw_read()
655 return tb_cfg_write(sw->tb->ctl, in tb_sw_write()
669 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read()
683 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
692 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
693 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
694 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
695 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
696 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
701 level(__sw->tb, "%llx: " fmt, \
712 level(__port->sw->tb, "%llx:%u: " fmt, \
724 struct tb *icm_probe(struct tb_nhi *nhi);
725 struct tb *tb_probe(struct tb_nhi *nhi);
737 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
738 int tb_domain_add(struct tb *tb, bool reset);
739 void tb_domain_remove(struct tb *tb);
740 int tb_domain_suspend_noirq(struct tb *tb);
741 int tb_domain_resume_noirq(struct tb *tb);
742 int tb_domain_suspend(struct tb *tb);
743 int tb_domain_freeze_noirq(struct tb *tb);
744 int tb_domain_thaw_noirq(struct tb *tb);
745 void tb_domain_complete(struct tb *tb);
746 int tb_domain_runtime_suspend(struct tb *tb);
747 int tb_domain_runtime_resume(struct tb *tb);
748 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
749 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
750 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
751 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
752 int tb_domain_disconnect_pcie_paths(struct tb *tb);
753 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
756 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
759 int tb_domain_disconnect_all_paths(struct tb *tb);
761 static inline struct tb *tb_domain_get(struct tb *tb) in tb_domain_get() argument
763 if (tb) in tb_domain_get()
764 get_device(&tb->dev); in tb_domain_get()
765 return tb; in tb_domain_get()
768 static inline void tb_domain_put(struct tb *tb) in tb_domain_put() argument
770 put_device(&tb->dev); in tb_domain_put()
796 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
798 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
812 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
814 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
815 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
1097 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1161 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
1163 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
1168 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,