Lines Matching refs:route
629 int tb_switch_reset(struct tb *tb, u64 route) in tb_switch_reset() argument
633 header.route_hi = route >> 32, in tb_switch_reset()
634 header.route_lo = route, in tb_switch_reset()
637 tb_info(tb, "resetting switch at %llx\n", route); in tb_switch_reset()
638 res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route, in tb_switch_reset()
642 res = tb_cfg_reset(tb->ctl, route, TB_CFG_DEFAULT_TIMEOUT); in tb_switch_reset()
648 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route) in get_switch_at_route() argument
650 u8 next_port = route; /* in get_switch_at_route()
654 if (route == 0) in get_switch_at_route()
663 route >> TB_ROUTE_SHIFT); in get_switch_at_route()
1074 u64 route) in tb_switch_alloc() argument
1079 int upstream_port = tb_cfg_get_upstream_port(tb->ctl, route); in tb_switch_alloc()
1088 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, TB_CFG_SWITCH, 0, 5)) in tb_switch_alloc()
1096 sw->config.depth = tb_route_length(route); in tb_switch_alloc()
1097 sw->config.route_lo = route; in tb_switch_alloc()
1098 sw->config.route_hi = route >> 32; in tb_switch_alloc()
1123 if (!route) in tb_switch_alloc()
1157 tb_switch_alloc_safe_mode(struct tb *tb, struct device *parent, u64 route) in tb_switch_alloc_safe_mode() argument
1166 sw->config.depth = tb_route_length(route); in tb_switch_alloc_safe_mode()
1167 sw->config.route_hi = upper_32_bits(route); in tb_switch_alloc_safe_mode()
1168 sw->config.route_lo = lower_32_bits(route); in tb_switch_alloc_safe_mode()
1194 u64 route; in tb_switch_configure() local
1197 route = tb_route(sw); in tb_switch_configure()
1200 route, tb_route_length(route), sw->config.upstream_port_number); in tb_switch_configure()