Lines Matching refs:route
235 int tb_switch_reset(struct tb *tb, u64 route) in tb_switch_reset() argument
239 header.route_hi = route >> 32, in tb_switch_reset()
240 header.route_lo = route, in tb_switch_reset()
243 tb_info(tb, "resetting switch at %llx\n", route); in tb_switch_reset()
244 res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route, in tb_switch_reset()
248 res = tb_cfg_reset(tb->ctl, route, TB_CFG_DEFAULT_TIMEOUT); in tb_switch_reset()
254 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route) in get_switch_at_route() argument
256 u8 next_port = route; /* in get_switch_at_route()
260 if (route == 0) in get_switch_at_route()
269 route >> TB_ROUTE_SHIFT); in get_switch_at_route()
339 struct tb_switch *tb_switch_alloc(struct tb *tb, u64 route) in tb_switch_alloc() argument
344 int upstream_port = tb_cfg_get_upstream_port(tb->ctl, route); in tb_switch_alloc()
353 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, 2, 0, 5)) in tb_switch_alloc()
357 route, tb_route_length(route), upstream_port); in tb_switch_alloc()
363 sw->config.depth = tb_route_length(route); in tb_switch_alloc()
364 sw->config.route_lo = route; in tb_switch_alloc()
365 sw->config.route_hi = route >> 32; in tb_switch_alloc()