Lines Matching refs:in_port
737 u8 in_port; member
756 .in_port = 9, in tb_test_path_not_bonded_lane0()
763 .in_port = 1, in tb_test_path_not_bonded_lane0()
784 const struct tb_port *in_port, *out_port; in tb_test_path_not_bonded_lane0() local
786 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane0()
789 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane0()
790 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane0()
791 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_not_bonded_lane0()
818 .in_port = 5, in tb_test_path_not_bonded_lane1()
825 .in_port = 2, in tb_test_path_not_bonded_lane1()
846 const struct tb_port *in_port, *out_port; in tb_test_path_not_bonded_lane1() local
848 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1()
851 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1()
852 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1()
853 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_not_bonded_lane1()
882 .in_port = 5, in tb_test_path_not_bonded_lane1_chain()
889 .in_port = 2, in tb_test_path_not_bonded_lane1_chain()
896 .in_port = 2, in tb_test_path_not_bonded_lane1_chain()
903 .in_port = 2, in tb_test_path_not_bonded_lane1_chain()
926 const struct tb_port *in_port, *out_port; in tb_test_path_not_bonded_lane1_chain() local
928 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain()
931 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain()
932 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain()
933 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_not_bonded_lane1_chain()
962 .in_port = 13, in tb_test_path_not_bonded_lane1_chain_reverse()
969 .in_port = 6, in tb_test_path_not_bonded_lane1_chain_reverse()
976 .in_port = 8, in tb_test_path_not_bonded_lane1_chain_reverse()
983 .in_port = 2, in tb_test_path_not_bonded_lane1_chain_reverse()
1006 const struct tb_port *in_port, *out_port; in tb_test_path_not_bonded_lane1_chain_reverse() local
1008 in_port = path->hops[i].in_port; in tb_test_path_not_bonded_lane1_chain_reverse()
1011 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_not_bonded_lane1_chain_reverse()
1012 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_not_bonded_lane1_chain_reverse()
1013 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_not_bonded_lane1_chain_reverse()
1046 .in_port = 5, in tb_test_path_mixed_chain()
1053 .in_port = 1, in tb_test_path_mixed_chain()
1060 .in_port = 2, in tb_test_path_mixed_chain()
1067 .in_port = 2, in tb_test_path_mixed_chain()
1074 .in_port = 1, in tb_test_path_mixed_chain()
1098 const struct tb_port *in_port, *out_port; in tb_test_path_mixed_chain() local
1100 in_port = path->hops[i].in_port; in tb_test_path_mixed_chain()
1103 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain()
1104 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain()
1105 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_mixed_chain()
1138 .in_port = 13, in tb_test_path_mixed_chain_reverse()
1145 .in_port = 3, in tb_test_path_mixed_chain_reverse()
1152 .in_port = 6, in tb_test_path_mixed_chain_reverse()
1159 .in_port = 8, in tb_test_path_mixed_chain_reverse()
1166 .in_port = 1, in tb_test_path_mixed_chain_reverse()
1190 const struct tb_port *in_port, *out_port; in tb_test_path_mixed_chain_reverse() local
1192 in_port = path->hops[i].in_port; in tb_test_path_mixed_chain_reverse()
1195 KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route); in tb_test_path_mixed_chain_reverse()
1196 KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port); in tb_test_path_mixed_chain_reverse()
1197 KUNIT_EXPECT_EQ(test, (enum tb_port_type)in_port->config.type, in tb_test_path_mixed_chain_reverse()
1237 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[0].in_port, down); in tb_test_tunnel_pcie()
1240 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up); in tb_test_tunnel_pcie()
1252 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[0].in_port, down); in tb_test_tunnel_pcie()
1255 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up); in tb_test_tunnel_pcie()
1289 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, in); in tb_test_tunnel_dp()
1292 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, in); in tb_test_tunnel_dp()
1295 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[2]->hops[0].in_port, out); in tb_test_tunnel_dp()
1335 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, in); in tb_test_tunnel_dp_chain()
1338 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, in); in tb_test_tunnel_dp_chain()
1341 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[2]->hops[0].in_port, out); in tb_test_tunnel_dp_chain()
1385 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, in); in tb_test_tunnel_dp_tree()
1388 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, in); in tb_test_tunnel_dp_tree()
1391 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[2]->hops[0].in_port, out); in tb_test_tunnel_dp_tree()
1451 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, in); in tb_test_tunnel_dp_max_length()
1453 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[6].in_port, in tb_test_tunnel_dp_max_length()
1460 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, in); in tb_test_tunnel_dp_max_length()
1461 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[6].in_port, in tb_test_tunnel_dp_max_length()
1467 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[2]->hops[0].in_port, out); in tb_test_tunnel_dp_max_length()
1468 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[2]->hops[6].in_port, in tb_test_tunnel_dp_max_length()
1506 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[0].in_port, down); in tb_test_tunnel_usb3()
1509 KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up); in tb_test_tunnel_usb3()
1521 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[0].in_port, down); in tb_test_tunnel_usb3()
1524 KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up); in tb_test_tunnel_usb3()