Lines Matching refs:tb

106  * @tb: Pointer to the domain the switch belongs to
148 struct tb *tb;
222 * @tb: Pointer to the domain the retimer belongs to
232 struct tb *tb;
292 * @tb: Pointer to the domain structure
313 struct tb *tb;
372 int (*driver_ready)(struct tb *tb);
373 int (*start)(struct tb *tb);
374 void (*stop)(struct tb *tb);
375 int (*suspend_noirq)(struct tb *tb);
376 int (*resume_noirq)(struct tb *tb);
377 int (*suspend)(struct tb *tb);
378 int (*freeze_noirq)(struct tb *tb);
379 int (*thaw_noirq)(struct tb *tb);
380 void (*complete)(struct tb *tb);
381 int (*runtime_suspend)(struct tb *tb);
382 int (*runtime_resume)(struct tb *tb);
385 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
387 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
388 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
389 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
390 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
391 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
393 int (*disconnect_pcie_paths)(struct tb *tb);
394 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd);
395 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd);
398 static inline void *tb_priv(struct tb *tb)
400 return (void *)tb->privdata;
513 return tb_cfg_read(sw->tb->ctl,
527 return tb_cfg_write(sw->tb->ctl,
541 return tb_cfg_read(port->sw->tb->ctl,
555 return tb_cfg_write(port->sw->tb->ctl,
564 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg)
565 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg)
566 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg)
567 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg)
568 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg)
573 level(__sw->tb, "%llx: " fmt, \
584 level(__port->sw->tb, "%llx:%x: " fmt, \
596 struct tb *icm_probe(struct tb_nhi *nhi);
597 struct tb *tb_probe(struct tb_nhi *nhi);
608 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize);
609 int tb_domain_add(struct tb *tb);
610 void tb_domain_remove(struct tb *tb);
611 int tb_domain_suspend_noirq(struct tb *tb);
612 int tb_domain_resume_noirq(struct tb *tb);
613 int tb_domain_suspend(struct tb *tb);
614 int tb_domain_freeze_noirq(struct tb *tb);
615 int tb_domain_thaw_noirq(struct tb *tb);
616 void tb_domain_complete(struct tb *tb);
617 int tb_domain_runtime_suspend(struct tb *tb);
618 int tb_domain_runtime_resume(struct tb *tb);
619 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
620 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
621 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
622 int tb_domain_disconnect_pcie_paths(struct tb *tb);
623 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd);
624 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd);
625 int tb_domain_disconnect_all_paths(struct tb *tb);
627 static inline struct tb *tb_domain_get(struct tb *tb)
629 if (tb)
630 get_device(&tb->dev);
631 return tb;
634 static inline void tb_domain_put(struct tb *tb)
636 put_device(&tb->dev);
648 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
650 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
661 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
663 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
664 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
891 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
935 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
937 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
942 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,