Lines Matching refs:tb
185 struct tb *tb; member
310 struct tb *tb; member
395 struct tb *tb; member
464 int (*driver_ready)(struct tb *tb);
465 int (*start)(struct tb *tb);
466 void (*stop)(struct tb *tb);
467 int (*suspend_noirq)(struct tb *tb);
468 int (*resume_noirq)(struct tb *tb);
469 int (*suspend)(struct tb *tb);
470 int (*freeze_noirq)(struct tb *tb);
471 int (*thaw_noirq)(struct tb *tb);
472 void (*complete)(struct tb *tb);
473 int (*runtime_suspend)(struct tb *tb);
474 int (*runtime_resume)(struct tb *tb);
477 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
479 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
480 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
481 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
482 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
483 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
484 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
486 int (*disconnect_pcie_paths)(struct tb *tb);
487 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
490 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
500 static inline void *tb_priv(struct tb *tb) in tb_priv() argument
502 return (void *)tb->privdata; in tb_priv()
615 return tb_cfg_read(sw->tb->ctl, in tb_sw_read()
629 return tb_cfg_write(sw->tb->ctl, in tb_sw_write()
643 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read()
657 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
666 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
667 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
668 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
669 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
670 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
675 level(__sw->tb, "%llx: " fmt, \
686 level(__port->sw->tb, "%llx:%u: " fmt, \
698 struct tb *icm_probe(struct tb_nhi *nhi);
699 struct tb *tb_probe(struct tb_nhi *nhi);
711 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
712 int tb_domain_add(struct tb *tb);
713 void tb_domain_remove(struct tb *tb);
714 int tb_domain_suspend_noirq(struct tb *tb);
715 int tb_domain_resume_noirq(struct tb *tb);
716 int tb_domain_suspend(struct tb *tb);
717 int tb_domain_freeze_noirq(struct tb *tb);
718 int tb_domain_thaw_noirq(struct tb *tb);
719 void tb_domain_complete(struct tb *tb);
720 int tb_domain_runtime_suspend(struct tb *tb);
721 int tb_domain_runtime_resume(struct tb *tb);
722 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
723 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
724 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
725 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
726 int tb_domain_disconnect_pcie_paths(struct tb *tb);
727 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
730 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
733 int tb_domain_disconnect_all_paths(struct tb *tb);
735 static inline struct tb *tb_domain_get(struct tb *tb) in tb_domain_get() argument
737 if (tb) in tb_domain_get()
738 get_device(&tb->dev); in tb_domain_get()
739 return tb; in tb_domain_get()
742 static inline void tb_domain_put(struct tb *tb) in tb_domain_put() argument
744 put_device(&tb->dev); in tb_domain_put()
770 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
772 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
785 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
787 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
788 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
1076 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1138 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
1140 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
1145 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,