Lines Matching refs:src_port
298 struct tb_port *src_port, *dst_port, *p; in tb_test_path_basic() local
303 src_port = &host->ports[5]; in tb_test_path_basic()
304 dst_port = src_port; in tb_test_path_basic()
306 p = tb_next_port_on_path(src_port, dst_port, NULL); in tb_test_path_basic()
309 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_basic()
315 struct tb_port *src_port, *dst_port, *p; in tb_test_path_not_connected_walk() local
322 src_port = &host->ports[12]; in tb_test_path_not_connected_walk()
325 p = tb_next_port_on_path(src_port, dst_port, NULL); in tb_test_path_not_connected_walk()
326 KUNIT_EXPECT_PTR_EQ(test, p, src_port); in tb_test_path_not_connected_walk()
328 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_not_connected_walk()
331 p = tb_next_port_on_path(src_port, dst_port, p); in tb_test_path_not_connected_walk()
336 p = tb_next_port_on_path(dst_port, src_port, NULL); in tb_test_path_not_connected_walk()
339 p = tb_next_port_on_path(dst_port, src_port, p); in tb_test_path_not_connected_walk()
342 p = tb_next_port_on_path(dst_port, src_port, p); in tb_test_path_not_connected_walk()
369 struct tb_port *src_port, *dst_port, *p; in tb_test_path_single_hop_walk() local
376 src_port = &host->ports[8]; in tb_test_path_single_hop_walk()
382 tb_for_each_port_on_path(src_port, dst_port, p) { in tb_test_path_single_hop_walk()
394 tb_for_each_port_on_path(dst_port, src_port, p) { in tb_test_path_single_hop_walk()
427 struct tb_port *src_port, *dst_port, *p; in tb_test_path_daisy_chain_walk() local
435 src_port = &host->ports[5]; in tb_test_path_daisy_chain_walk()
441 tb_for_each_port_on_path(src_port, dst_port, p) { in tb_test_path_daisy_chain_walk()
453 tb_for_each_port_on_path(dst_port, src_port, p) { in tb_test_path_daisy_chain_walk()
488 struct tb_port *src_port, *dst_port, *p; in tb_test_path_simple_tree_walk() local
498 src_port = &host->ports[5]; in tb_test_path_simple_tree_walk()
504 tb_for_each_port_on_path(src_port, dst_port, p) { in tb_test_path_simple_tree_walk()
516 tb_for_each_port_on_path(dst_port, src_port, p) { in tb_test_path_simple_tree_walk()
568 struct tb_port *src_port, *dst_port, *p; in tb_test_path_complex_tree_walk() local
582 src_port = &dev3->ports[13]; in tb_test_path_complex_tree_walk()
588 tb_for_each_port_on_path(src_port, dst_port, p) { in tb_test_path_complex_tree_walk()
600 tb_for_each_port_on_path(dst_port, src_port, p) { in tb_test_path_complex_tree_walk()
616 struct tb_port *src_port, *dst_port, *p; in tb_test_path_max_length_walk() local
685 src_port = &dev6->ports[13]; in tb_test_path_max_length_walk()
691 tb_for_each_port_on_path(src_port, dst_port, p) { in tb_test_path_max_length_walk()
703 tb_for_each_port_on_path(dst_port, src_port, p) { in tb_test_path_max_length_walk()
1233 KUNIT_EXPECT_PTR_EQ(test, tunnel1->src_port, down); in tb_test_tunnel_pcie()
1248 KUNIT_EXPECT_PTR_EQ(test, tunnel2->src_port, down); in tb_test_tunnel_pcie()
1285 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, in); in tb_test_tunnel_dp()
1331 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, in); in tb_test_tunnel_dp_chain()
1381 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, in); in tb_test_tunnel_dp_tree()
1446 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, in); in tb_test_tunnel_dp_max_length()
1502 KUNIT_EXPECT_PTR_EQ(test, tunnel1->src_port, down); in tb_test_tunnel_usb3()
1517 KUNIT_EXPECT_PTR_EQ(test, tunnel2->src_port, down); in tb_test_tunnel_usb3()