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()
1125 u64 route) in tb_switch_alloc() argument
1130 int upstream_port = tb_cfg_get_upstream_port(tb->ctl, route); in tb_switch_alloc()
1139 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, TB_CFG_SWITCH, 0, 5)) in tb_switch_alloc()
1147 sw->config.depth = tb_route_length(route); in tb_switch_alloc()
1148 sw->config.route_lo = route; in tb_switch_alloc()
1149 sw->config.route_hi = route >> 32; in tb_switch_alloc()
1174 if (!route) in tb_switch_alloc()
1208 tb_switch_alloc_safe_mode(struct tb *tb, struct device *parent, u64 route) in tb_switch_alloc_safe_mode() argument
1217 sw->config.depth = tb_route_length(route); in tb_switch_alloc_safe_mode()
1218 sw->config.route_hi = upper_32_bits(route); in tb_switch_alloc_safe_mode()
1219 sw->config.route_lo = lower_32_bits(route); in tb_switch_alloc_safe_mode()
1245 u64 route; in tb_switch_configure() local
1248 route = tb_route(sw); in tb_switch_configure()
1251 route, tb_route_length(route), sw->config.upstream_port_number); in tb_switch_configure()
1556 u64 route; member
1572 if (lookup->route) { in tb_switch_match()
1573 return sw->config.route_lo == lower_32_bits(lookup->route) && in tb_switch_match()
1574 sw->config.route_hi == upper_32_bits(lookup->route); in tb_switch_match()
1642 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route() argument
1647 if (!route) in tb_switch_find_by_route()
1652 lookup.route = route; in tb_switch_find_by_route()