Lines Matching defs:nhi
791 static u32 tb_dma_credits(struct tb_port *nhi)
795 max_credits = (nhi->config.nfc_credits & ADP_CS_4_TOTAL_BUFFERS_MASK) >>
802 struct tb_port *nhi = tunnel->src_port;
805 credits = active ? tb_dma_credits(nhi) : 0;
806 return tb_port_set_initial_credits(nhi, credits);
829 * @nhi: Host controller port
840 struct tb_tunnel *tb_tunnel_alloc_dma(struct tb *tb, struct tb_port *nhi,
854 tunnel->src_port = nhi;
857 credits = tb_dma_credits(nhi);
859 path = tb_path_alloc(tb, dst, receive_path, nhi, receive_ring, 0, "DMA RX");
868 path = tb_path_alloc(tb, nhi, transmit_ring, dst, transmit_path, 0, "DMA TX");