Lines Matching refs:nhi

1791 	struct tb_port *nhi, *port;  in tb_test_tunnel_dma()  local
1807 nhi = &host->ports[7]; in tb_test_tunnel_dma()
1810 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma()
1813 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma()
1820 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma()
1824 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma()
1834 struct tb_port *nhi, *port; in tb_test_tunnel_dma_rx() local
1850 nhi = &host->ports[7]; in tb_test_tunnel_dma_rx()
1853 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 2); in tb_test_tunnel_dma_rx()
1856 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_rx()
1863 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma_rx()
1871 struct tb_port *nhi, *port; in tb_test_tunnel_dma_tx() local
1887 nhi = &host->ports[7]; in tb_test_tunnel_dma_tx()
1890 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 2, -1, -1); in tb_test_tunnel_dma_tx()
1893 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_tx()
1898 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, nhi); in tb_test_tunnel_dma_tx()
1909 struct tb_port *nhi, *port; in tb_test_tunnel_dma_chain() local
1934 nhi = &host->ports[7]; in tb_test_tunnel_dma_chain()
1936 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma_chain()
1939 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_chain()
1954 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[2].out_port, nhi); in tb_test_tunnel_dma_chain()
1958 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma_chain()
1974 struct tb_port *nhi, *port; in tb_test_tunnel_dma_match() local
1979 nhi = &host->ports[7]; in tb_test_tunnel_dma_match()
1982 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, 15, 1); in tb_test_tunnel_dma_match()
1998 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, -1, -1); in tb_test_tunnel_dma_match()
2010 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 11); in tb_test_tunnel_dma_match()
2252 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma() local
2259 nhi = &host->ports[7]; in tb_test_credit_alloc_dma()
2262 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma()
2289 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma_multiple() local
2295 nhi = &host->ports[7]; in tb_test_credit_alloc_dma_multiple()
2316 tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma_multiple()
2334 tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in tb_test_credit_alloc_dma_multiple()
2352 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2361 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2519 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL1() local
2523 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL1()
2525 dma_tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in TB_TEST_DMA_TUNNEL1()
2549 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL2() local
2553 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL2()
2555 dma_tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in TB_TEST_DMA_TUNNEL2()