• Home
  • Raw
  • Download

Lines Matching refs:tb

163 	struct tb *tb;  member
280 struct tb *tb; member
364 struct tb *tb; member
433 int (*driver_ready)(struct tb *tb);
434 int (*start)(struct tb *tb);
435 void (*stop)(struct tb *tb);
436 int (*suspend_noirq)(struct tb *tb);
437 int (*resume_noirq)(struct tb *tb);
438 int (*suspend)(struct tb *tb);
439 int (*freeze_noirq)(struct tb *tb);
440 int (*thaw_noirq)(struct tb *tb);
441 void (*complete)(struct tb *tb);
442 int (*runtime_suspend)(struct tb *tb);
443 int (*runtime_resume)(struct tb *tb);
446 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
448 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
449 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
450 int (*disapprove_switch)(struct tb *tb, struct tb_switch *sw);
451 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
452 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
453 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
455 int (*disconnect_pcie_paths)(struct tb *tb);
456 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
459 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd,
469 static inline void *tb_priv(struct tb *tb) in tb_priv() argument
471 return (void *)tb->privdata; in tb_priv()
584 return tb_cfg_read(sw->tb->ctl, in tb_sw_read()
598 return tb_cfg_write(sw->tb->ctl, in tb_sw_write()
612 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read()
626 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
635 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
636 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
637 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
638 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
639 #define tb_dbg(tb, fmt, arg...) dev_dbg(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
644 level(__sw->tb, "%llx: " fmt, \
655 level(__port->sw->tb, "%llx:%x: " fmt, \
667 struct tb *icm_probe(struct tb_nhi *nhi);
668 struct tb *tb_probe(struct tb_nhi *nhi);
680 struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize);
681 int tb_domain_add(struct tb *tb);
682 void tb_domain_remove(struct tb *tb);
683 int tb_domain_suspend_noirq(struct tb *tb);
684 int tb_domain_resume_noirq(struct tb *tb);
685 int tb_domain_suspend(struct tb *tb);
686 int tb_domain_freeze_noirq(struct tb *tb);
687 int tb_domain_thaw_noirq(struct tb *tb);
688 void tb_domain_complete(struct tb *tb);
689 int tb_domain_runtime_suspend(struct tb *tb);
690 int tb_domain_runtime_resume(struct tb *tb);
691 int tb_domain_disapprove_switch(struct tb *tb, struct tb_switch *sw);
692 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
693 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
694 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
695 int tb_domain_disconnect_pcie_paths(struct tb *tb);
696 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
699 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd,
702 int tb_domain_disconnect_all_paths(struct tb *tb);
704 static inline struct tb *tb_domain_get(struct tb *tb) in tb_domain_get() argument
706 if (tb) in tb_domain_get()
707 get_device(&tb->dev); in tb_domain_get()
708 return tb; in tb_domain_get()
711 static inline void tb_domain_put(struct tb *tb) in tb_domain_put() argument
713 put_device(&tb->dev); in tb_domain_put()
735 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
737 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
748 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
750 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
751 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
964 struct tb_path *tb_path_alloc(struct tb *tb, struct tb_port *src, int src_hopid,
1021 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
1023 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
1028 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,