Lines Matching refs:tb
21 struct tb *tb; member
80 struct tb *tb; member
99 struct tb { struct
143 return tb_cfg_read(sw->tb->ctl, in tb_sw_read()
155 return tb_cfg_write(sw->tb->ctl, in tb_sw_write()
167 return tb_cfg_read(port->sw->tb->ctl, in tb_port_read()
179 return tb_cfg_write(port->sw->tb->ctl, in tb_port_write()
188 #define tb_err(tb, fmt, arg...) dev_err(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
189 #define tb_WARN(tb, fmt, arg...) dev_WARN(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
190 #define tb_warn(tb, fmt, arg...) dev_warn(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
191 #define tb_info(tb, fmt, arg...) dev_info(&(tb)->nhi->pdev->dev, fmt, ## arg) argument
197 level(__sw->tb, "%llx: " fmt, \
208 level(__port->sw->tb, "%llx:%x: " fmt, \
219 struct tb *thunderbolt_alloc_and_start(struct tb_nhi *nhi);
220 void thunderbolt_shutdown_and_free(struct tb *tb);
221 void thunderbolt_suspend(struct tb *tb);
222 void thunderbolt_resume(struct tb *tb);
224 struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route);
228 int tb_switch_reset(struct tb *tb, u64 route);
238 struct tb_path *tb_path_alloc(struct tb *tb, int num_hops);