Lines Matching refs:route

2413 				  u64 route)  in tb_switch_alloc()  argument
2420 if (route) { in tb_switch_alloc()
2424 down = tb_port_at(route, parent_sw); in tb_switch_alloc()
2428 depth = tb_route_length(route); in tb_switch_alloc()
2430 upstream_port = tb_cfg_get_upstream_port(tb->ctl, route); in tb_switch_alloc()
2439 ret = tb_cfg_read(tb->ctl, &sw->config, route, 0, TB_CFG_SWITCH, 0, 5); in tb_switch_alloc()
2451 sw->config.route_hi = upper_32_bits(route); in tb_switch_alloc()
2452 sw->config.route_lo = lower_32_bits(route); in tb_switch_alloc()
2498 if (!route) in tb_switch_alloc()
2532 tb_switch_alloc_safe_mode(struct tb *tb, struct device *parent, u64 route) in tb_switch_alloc_safe_mode() argument
2541 sw->config.depth = tb_route_length(route); in tb_switch_alloc_safe_mode()
2542 sw->config.route_hi = upper_32_bits(route); in tb_switch_alloc_safe_mode()
2543 sw->config.route_lo = lower_32_bits(route); in tb_switch_alloc_safe_mode()
2570 u64 route; in tb_switch_configure() local
2573 route = tb_route(sw); in tb_switch_configure()
2576 sw->config.enabled ? "restoring" : "initializing", route, in tb_switch_configure()
2577 tb_route_length(route), sw->config.upstream_port_number); in tb_switch_configure()
3685 u64 route; member
3701 if (lookup->route) { in tb_switch_match()
3702 return sw->config.route_lo == lower_32_bits(lookup->route) && in tb_switch_match()
3703 sw->config.route_hi == upper_32_bits(lookup->route); in tb_switch_match()
3771 struct tb_switch *tb_switch_find_by_route(struct tb *tb, u64 route) in tb_switch_find_by_route() argument
3776 if (!route) in tb_switch_find_by_route()
3781 lookup.route = route; in tb_switch_find_by_route()