Lines Matching refs:nhi
1668 struct tb_port *nhi, *port; in tb_test_tunnel_dma() local
1684 nhi = &host->ports[7]; in tb_test_tunnel_dma()
1687 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma()
1690 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma()
1697 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma()
1701 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma()
1711 struct tb_port *nhi, *port; in tb_test_tunnel_dma_rx() local
1727 nhi = &host->ports[7]; in tb_test_tunnel_dma_rx()
1730 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 2); in tb_test_tunnel_dma_rx()
1733 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_rx()
1740 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].out_port, nhi); in tb_test_tunnel_dma_rx()
1748 struct tb_port *nhi, *port; in tb_test_tunnel_dma_tx() local
1764 nhi = &host->ports[7]; in tb_test_tunnel_dma_tx()
1767 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 2, -1, -1); in tb_test_tunnel_dma_tx()
1770 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_tx()
1775 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[0].in_port, nhi); in tb_test_tunnel_dma_tx()
1786 struct tb_port *nhi, *port; in tb_test_tunnel_dma_chain() local
1811 nhi = &host->ports[7]; in tb_test_tunnel_dma_chain()
1813 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_tunnel_dma_chain()
1816 KUNIT_EXPECT_PTR_EQ(test, tunnel->src_port, nhi); in tb_test_tunnel_dma_chain()
1831 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[0]->hops[2].out_port, nhi); in tb_test_tunnel_dma_chain()
1835 KUNIT_EXPECT_PTR_EQ(test, tunnel->paths[1]->hops[0].in_port, nhi); in tb_test_tunnel_dma_chain()
1851 struct tb_port *nhi, *port; in tb_test_tunnel_dma_match() local
1856 nhi = &host->ports[7]; in tb_test_tunnel_dma_match()
1859 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, 15, 1); in tb_test_tunnel_dma_match()
1875 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 15, 1, -1, -1); in tb_test_tunnel_dma_match()
1887 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, -1, -1, 15, 11); in tb_test_tunnel_dma_match()
2079 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma() local
2086 nhi = &host->ports[7]; in tb_test_credit_alloc_dma()
2089 tunnel = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma()
2116 struct tb_port *nhi, *port; in tb_test_credit_alloc_dma_multiple() local
2122 nhi = &host->ports[7]; in tb_test_credit_alloc_dma_multiple()
2143 tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in tb_test_credit_alloc_dma_multiple()
2161 tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in tb_test_credit_alloc_dma_multiple()
2179 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2188 tunnel3 = tb_tunnel_alloc_dma(NULL, nhi, port, 10, 3, 10, 3); in tb_test_credit_alloc_dma_multiple()
2346 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL1() local
2350 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL1()
2352 dma_tunnel1 = tb_tunnel_alloc_dma(NULL, nhi, port, 8, 1, 8, 1); in TB_TEST_DMA_TUNNEL1()
2376 struct tb_port *nhi, *port; in TB_TEST_DMA_TUNNEL2() local
2380 nhi = &host->ports[7]; in TB_TEST_DMA_TUNNEL2()
2382 dma_tunnel2 = tb_tunnel_alloc_dma(NULL, nhi, port, 9, 2, 9, 2); in TB_TEST_DMA_TUNNEL2()