Lines Matching refs:nhi

1709 	struct tb_port *nhi, *port;  in tb_test_tunnel_dma()  local
1725 nhi = &host->ports[7]; in tb_test_tunnel_dma()
1728 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma()
1731 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma()
1738 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma()
1742 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma()
1752 struct tb_port *nhi, *port; in tb_test_tunnel_dma_rx() local
1768 nhi = &host->ports[7]; in tb_test_tunnel_dma_rx()
1771 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 2); in tb_test_tunnel_dma_rx()
1774 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_rx()
1781 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma_rx()
1789 struct tb_port *nhi, *port; in tb_test_tunnel_dma_tx() local
1805 nhi = &host->ports[7]; in tb_test_tunnel_dma_tx()
1808 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 2, -1, -1); in tb_test_tunnel_dma_tx()
1811 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_tx()
1816 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, nhi); in tb_test_tunnel_dma_tx()
1827 struct tb_port *nhi, *port; in tb_test_tunnel_dma_chain() local
1852 nhi = &host->ports[7]; in tb_test_tunnel_dma_chain()
1854 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma_chain()
1857 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_chain()
1872 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[2].out_port, nhi); in tb_test_tunnel_dma_chain()
1876 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma_chain()
1892 struct tb_port *nhi, *port; in tb_test_tunnel_dma_match() local
1897 nhi = &host->ports[7]; in tb_test_tunnel_dma_match()
1900 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, 15, 1); in tb_test_tunnel_dma_match()
1916 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, -1, -1); in tb_test_tunnel_dma_match()
1928 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 11); in tb_test_tunnel_dma_match()
2170 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma() local
2177 nhi = &host->ports[7]; in tb_test_credit_alloc_dma()
2180 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma()
2207 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma_multiple() local
2213 nhi = &host->ports[7]; in tb_test_credit_alloc_dma_multiple()
2234 tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma_multiple()
2252 tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in tb_test_credit_alloc_dma_multiple()
2270 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2279 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2437 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL1() local
2441 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL1()
2443 dma_tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in TB_TEST_DMA_TUNNEL1()
2467 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL2() local
2471 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL2()
2473 dma_tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in TB_TEST_DMA_TUNNEL2()