Lines Matching refs:tb
90 struct tb *tb; member
179 struct tb *tb; member
217 int (*driver_ready)(struct tb *tb);
218 int (*start)(struct tb *tb);
219 void (*stop)(struct tb *tb);
220 int (*suspend_noirq)(struct tb *tb);
221 int (*resume_noirq)(struct tb *tb);
222 int (*suspend)(struct tb *tb);
223 void (*complete)(struct tb *tb);
224 int (*runtime_suspend)(struct tb *tb);
225 int (*runtime_resume)(struct tb *tb);
226 void (*handle_event)(struct tb *tb, enum tb_cfg_pkg_type,
228 int (*get_boot_acl)(struct tb *tb, uuid_t *uuids, size_t nuuids);
229 int (*set_boot_acl)(struct tb *tb, const uuid_t *uuids, size_t nuuids);
230 int (*approve_switch)(struct tb *tb, struct tb_switch *sw);
231 int (*add_switch_key)(struct tb *tb, struct tb_switch *sw);
232 int (*challenge_switch_key)(struct tb *tb, struct tb_switch *sw,
234 int (*disconnect_pcie_paths)(struct tb *tb);
235 int (*approve_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd);
236 int (*disconnect_xdomain_paths)(struct tb *tb, struct tb_xdomain *xd);
239 static inline void *tb_priv(struct tb *tb) in tb_priv() argument
241 return (void *)tb->privdata; in tb_priv()
281 return tb_cfg_read(sw->tb->ctl, in tb_sw_read()
293 return tb_cfg_write(sw->tb->ctl, in tb_sw_write()
305 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read()
317 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
326 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
327 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
328 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
329 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
335 level(__sw->tb, "%llx: " fmt, \
346 level(__port->sw->tb, "%llx:%x: " fmt, \
356 struct tb *icm_probe(struct tb_nhi *nhi);
357 struct tb *tb_probe(struct tb_nhi *nhi);
368 struct tb *tb_domain_alloc(struct tb_nhi *nhi, size_t privsize);
369 int tb_domain_add(struct tb *tb);
370 void tb_domain_remove(struct tb *tb);
371 int tb_domain_suspend_noirq(struct tb *tb);
372 int tb_domain_resume_noirq(struct tb *tb);
373 int tb_domain_suspend(struct tb *tb);
374 void tb_domain_complete(struct tb *tb);
375 int tb_domain_runtime_suspend(struct tb *tb);
376 int tb_domain_runtime_resume(struct tb *tb);
377 int tb_domain_approve_switch(struct tb *tb, struct tb_switch *sw);
378 int tb_domain_approve_switch_key(struct tb *tb, struct tb_switch *sw);
379 int tb_domain_challenge_switch_key(struct tb *tb, struct tb_switch *sw);
380 int tb_domain_disconnect_pcie_paths(struct tb *tb);
381 int tb_domain_approve_xdomain_paths(struct tb *tb, struct tb_xdomain *xd);
382 int tb_domain_disconnect_xdomain_paths(struct tb *tb, struct tb_xdomain *xd);
383 int tb_domain_disconnect_all_paths(struct tb *tb);
385 static inline void tb_domain_put(struct tb *tb) in tb_domain_put() argument
387 put_device(&tb->dev); in tb_domain_put()
390 struct tb_switch *tb_switch_alloc(struct tb *tb, struct device *parent,
392 struct tb_switch *tb_switch_alloc_safe_mode(struct tb *tb,
399 int tb_switch_reset(struct tb *tb, u64 route);
402 struct tb_switch *tb_switch_find_by_link_depth(struct tb *tb, u8 link,
404 struct tb_switch *tb_switch_find_by_uuid(struct tb *tb, const uuid_t *uuid);
405 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route);
438 struct tb_path *tb_path_alloc(struct tb *tb, int num_hops);
471 bool tb_xdomain_handle_request(struct tb *tb, enum tb_cfg_pkg_type type,
473 struct tb_xdomain *tb_xdomain_alloc(struct tb *tb, struct device *parent,
478 struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,