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()
586 n_bds = length / maxpacket; in cppi_next_tx_segment()
588 n_bds++; in cppi_next_tx_segment()
589 n_bds = min(n_bds, (unsigned) NUM_TXCHAN_BD); in cppi_next_tx_segment()
590 length = min(n_bds * maxpacket, length); in cppi_next_tx_segment()
597 n_bds, in cppi_next_tx_segment()
620 for (i = 0; i < n_bds; ) { in cppi_next_tx_segment()
621 if (++i < n_bds && bd->next) in cppi_next_tx_segment()
767 unsigned n_bds; in cppi_next_rx_segment() local
776 n_bds = 1; in cppi_next_rx_segment()
791 n_bds = 0xffff / maxpacket; in cppi_next_rx_segment()
792 length = n_bds * maxpacket; in cppi_next_rx_segment()
794 n_bds = length / maxpacket; in cppi_next_rx_segment()
796 n_bds++; in cppi_next_rx_segment()
798 if (n_bds == 1) in cppi_next_rx_segment()
801 n_bds = min(n_bds, (unsigned) NUM_RXCHAN_BD); in cppi_next_rx_segment()
810 n_bds = cppi_autoreq_update(rx, tibase, onepacket, n_bds); in cppi_next_rx_segment()
814 length = min(n_bds * maxpacket, length); in cppi_next_rx_segment()
822 n_bds, in cppi_next_rx_segment()
836 for (i = 0, tail = NULL; bd && i < n_bds; i++, tail = bd) { in cppi_next_rx_segment()
867 WARNING("rx dma%d -- no BDs? need %d\n", rx->index, n_bds); in cppi_next_rx_segment()
869 } else if (i < n_bds) in cppi_next_rx_segment()
870 WARNING("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds); in cppi_next_rx_segment()
917 n_bds + 2); in cppi_next_rx_segment()
918 else if (n_bds > (i - 3)) in cppi_next_rx_segment()
921 n_bds - (i - 3)); in cppi_next_rx_segment()
926 if (i < (2 + n_bds)) { in cppi_next_rx_segment()
928 rx->index, i, n_bds); in cppi_next_rx_segment()
931 n_bds + 2); in cppi_next_rx_segment()