Lines Matching refs:n_bds

454 		void __iomem *tibase, int onepacket, unsigned n_bds)  in cppi_autoreq_update()  argument
473 n_bds--; in cppi_autoreq_update()
495 if (n_bds && rx->channel.actual_len) { in cppi_autoreq_update()
506 return n_bds; in cppi_autoreq_update()
567 unsigned n_bds; in cppi_next_tx_segment() local
584 n_bds = 1; in cppi_next_tx_segment()
587 n_bds = DIV_ROUND_UP(length, maxpacket); in cppi_next_tx_segment()
589 n_bds = 1; in cppi_next_tx_segment()
590 n_bds = min(n_bds, (unsigned) NUM_TXCHAN_BD); in cppi_next_tx_segment()
591 length = min(n_bds * maxpacket, length); in cppi_next_tx_segment()
598 n_bds, in cppi_next_tx_segment()
621 for (i = 0; i < n_bds; ) { in cppi_next_tx_segment()
622 if (++i < n_bds && bd->next) in cppi_next_tx_segment()
768 unsigned n_bds; in cppi_next_rx_segment() local
777 n_bds = 1; in cppi_next_rx_segment()
792 n_bds = 0xffff / maxpacket; in cppi_next_rx_segment()
793 length = n_bds * maxpacket; in cppi_next_rx_segment()
795 n_bds = DIV_ROUND_UP(length, maxpacket); in cppi_next_rx_segment()
797 if (n_bds == 1) in cppi_next_rx_segment()
800 n_bds = min(n_bds, (unsigned) NUM_RXCHAN_BD); in cppi_next_rx_segment()
809 n_bds = cppi_autoreq_update(rx, tibase, onepacket, n_bds); in cppi_next_rx_segment()
813 length = min(n_bds * maxpacket, length); in cppi_next_rx_segment()
821 n_bds, in cppi_next_rx_segment()
835 for (i = 0, tail = NULL; bd && i < n_bds; i++, tail = bd) { in cppi_next_rx_segment()
866 WARNING("rx dma%d -- no BDs? need %d\n", rx->index, n_bds); in cppi_next_rx_segment()
868 } else if (i < n_bds) in cppi_next_rx_segment()
869 WARNING("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds); in cppi_next_rx_segment()
916 n_bds + 2); in cppi_next_rx_segment()
917 else if (n_bds > (i - 3)) in cppi_next_rx_segment()
920 n_bds - (i - 3)); in cppi_next_rx_segment()
925 if (i < (2 + n_bds)) { in cppi_next_rx_segment()
927 rx->index, i, n_bds); in cppi_next_rx_segment()
930 n_bds + 2); in cppi_next_rx_segment()