Lines Matching refs:tb_switch
18 struct tb_switch { struct
33 struct tb_switch *sw;
107 struct tb_switch *root_switch;
130 static inline struct tb_port *tb_upstream_port(struct tb_switch *sw) in tb_upstream_port()
135 static inline u64 tb_route(struct tb_switch *sw) in tb_route()
140 static inline int tb_sw_read(struct tb_switch *sw, void *buffer, in tb_sw_read()
152 static inline int tb_sw_write(struct tb_switch *sw, void *buffer, in tb_sw_write()
196 struct tb_switch *__sw = (sw); \
224 struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route);
225 void tb_switch_free(struct tb_switch *sw);
226 void tb_switch_suspend(struct tb_switch *sw);
227 int tb_switch_resume(struct tb_switch *sw);
229 void tb_sw_set_unpplugged(struct tb_switch *sw);
230 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route);
244 int tb_drom_read(struct tb_switch *sw);
245 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);