Lines Matching defs:route

36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route,
48 sw->config.depth = tb_route_length(route);
49 sw->config.route_hi = upper_32_bits(route);
50 sw->config.route_lo = lower_32_bits(route);
147 u64 route, bool bonded)
152 sw = alloc_switch(test, route, 1, 19);
256 port = tb_port_at(route, parent);
277 u64 route, bool bonded)
281 sw = alloc_dev_default(test, parent, route, bonded);
347 u64 route;
364 { .route = 0x0, .port = 8, .type = TB_TYPE_PCIE_DOWN },
365 { .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
366 { .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
367 { .route = 0x1, .port = 9, .type = TB_TYPE_PCIE_UP },
384 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
396 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
420 { .route = 0x0, .port = 5, .type = TB_TYPE_DP_HDMI_IN },
421 { .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
422 { .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
423 { .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
424 { .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
425 { .route = 0x301, .port = 13, .type = TB_TYPE_DP_HDMI_OUT },
443 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
455 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
481 { .route = 0x0, .port = 5, .type = TB_TYPE_DP_HDMI_IN },
482 { .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
483 { .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
484 { .route = 0x1, .port = 5, .type = TB_TYPE_PORT },
485 { .route = 0x501, .port = 1, .type = TB_TYPE_PORT },
486 { .route = 0x501, .port = 13, .type = TB_TYPE_DP_HDMI_OUT },
506 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
518 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
552 { .route = 0x50301, .port = 13, .type = TB_TYPE_DP_HDMI_IN },
553 { .route = 0x50301, .port = 1, .type = TB_TYPE_PORT },
554 { .route = 0x301, .port = 5, .type = TB_TYPE_PORT },
555 { .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
556 { .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
557 { .route = 0x1, .port = 7, .type = TB_TYPE_PORT },
558 { .route = 0x701, .port = 1, .type = TB_TYPE_PORT },
559 { .route = 0x701, .port = 7, .type = TB_TYPE_PORT },
560 { .route = 0x70701, .port = 1, .type = TB_TYPE_PORT },
561 { .route = 0x70701, .port = 3, .type = TB_TYPE_PORT },
562 { .route = 0x3070701, .port = 1, .type = TB_TYPE_PORT },
563 { .route = 0x3070701, .port = 5, .type = TB_TYPE_PORT },
564 { .route = 0x503070701, .port = 1, .type = TB_TYPE_PORT },
565 { .route = 0x503070701, .port = 14, .type = TB_TYPE_DP_HDMI_OUT },
590 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
602 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
643 { .route = 0x30303030301, .port = 13, .type = TB_TYPE_DP_HDMI_IN },
644 { .route = 0x30303030301, .port = 1, .type = TB_TYPE_PORT },
645 { .route = 0x303030301, .port = 3, .type = TB_TYPE_PORT },
646 { .route = 0x303030301, .port = 1, .type = TB_TYPE_PORT },
647 { .route = 0x3030301, .port = 3, .type = TB_TYPE_PORT },
648 { .route = 0x3030301, .port = 1, .type = TB_TYPE_PORT },
649 { .route = 0x30301, .port = 3, .type = TB_TYPE_PORT },
650 { .route = 0x30301, .port = 1, .type = TB_TYPE_PORT },
651 { .route = 0x301, .port = 3, .type = TB_TYPE_PORT },
652 { .route = 0x301, .port = 1, .type = TB_TYPE_PORT },
653 { .route = 0x1, .port = 3, .type = TB_TYPE_PORT },
654 { .route = 0x1, .port = 1, .type = TB_TYPE_PORT },
655 { .route = 0x0, .port = 1, .type = TB_TYPE_PORT },
656 { .route = 0x0, .port = 3, .type = TB_TYPE_PORT },
657 { .route = 0x3, .port = 1, .type = TB_TYPE_PORT },
658 { .route = 0x3, .port = 3, .type = TB_TYPE_PORT },
659 { .route = 0x303, .port = 1, .type = TB_TYPE_PORT },
660 { .route = 0x303, .port = 3, .type = TB_TYPE_PORT },
661 { .route = 0x30303, .port = 1, .type = TB_TYPE_PORT },
662 { .route = 0x30303, .port = 3, .type = TB_TYPE_PORT },
663 { .route = 0x3030303, .port = 1, .type = TB_TYPE_PORT },
664 { .route = 0x3030303, .port = 3, .type = TB_TYPE_PORT },
665 { .route = 0x303030303, .port = 1, .type = TB_TYPE_PORT },
666 { .route = 0x303030303, .port = 3, .type = TB_TYPE_PORT },
667 { .route = 0x30303030303, .port = 1, .type = TB_TYPE_PORT },
668 { .route = 0x30303030303, .port = 13, .type = TB_TYPE_DP_HDMI_OUT },
693 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
705 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
736 u64 route;
755 .route = 0x0,
762 .route = 0x3,
789 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
793 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
817 .route = 0x0,
824 .route = 0x1,
851 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
855 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
881 .route = 0x0,
888 .route = 0x1,
895 .route = 0x701,
902 .route = 0x50701,
931 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
935 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
961 .route = 0x50701,
968 .route = 0x701,
975 .route = 0x1,
982 .route = 0x0,
1011 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
1015 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
1045 .route = 0x0,
1052 .route = 0x1,
1059 .route = 0x701,
1066 .route = 0x50701,
1073 .route = 0x3050701,
1103 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
1107 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
1137 .route = 0x3050701,
1144 .route = 0x50701,
1151 .route = 0x701,
1158 .route = 0x1,
1165 .route = 0x0,
1195 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
1199 KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);