n_bds             156 drivers/usb/gadget/udc/bcm63xx_udc.c 	int				n_bds;
n_bds             225 drivers/usb/gadget/udc/bcm63xx_udc.c 	unsigned int			n_bds;
n_bds             642 drivers/usb/gadget/udc/bcm63xx_udc.c 		if (!iudma->is_tx || iudma->n_bds_used == iudma->n_bds ||
n_bds             764 drivers/usb/gadget/udc/bcm63xx_udc.c 	unsigned int n_bds = cfg->n_bds;
n_bds             783 drivers/usb/gadget/udc/bcm63xx_udc.c 	iudma->n_bds = n_bds;
n_bds             785 drivers/usb/gadget/udc/bcm63xx_udc.c 		n_bds * sizeof(struct bcm_enet_desc),
n_bds             789 drivers/usb/gadget/udc/bcm63xx_udc.c 	iudma->end_bd = &iudma->bd_ring[n_bds - 1];
n_bds            2208 drivers/usb/gadget/udc/bcm63xx_udc.c 			   iudma->n_bds);
n_bds            2219 drivers/usb/gadget/udc/bcm63xx_udc.c 		for (i = 0; i < iudma->n_bds; i++) {
n_bds             454 drivers/usb/musb/cppi_dma.c 		void __iomem *tibase, int onepacket, unsigned n_bds)
n_bds             473 drivers/usb/musb/cppi_dma.c 		n_bds--;
n_bds             495 drivers/usb/musb/cppi_dma.c 	if (n_bds && rx->channel.actual_len) {
n_bds             506 drivers/usb/musb/cppi_dma.c 	return n_bds;
n_bds             567 drivers/usb/musb/cppi_dma.c 	unsigned		n_bds;
n_bds             584 drivers/usb/musb/cppi_dma.c 		n_bds = 1;
n_bds             587 drivers/usb/musb/cppi_dma.c 			n_bds = DIV_ROUND_UP(length, maxpacket);
n_bds             589 drivers/usb/musb/cppi_dma.c 			n_bds = 1;
n_bds             590 drivers/usb/musb/cppi_dma.c 		n_bds = min(n_bds, (unsigned) NUM_TXCHAN_BD);
n_bds             591 drivers/usb/musb/cppi_dma.c 		length = min(n_bds * maxpacket, length);
n_bds             598 drivers/usb/musb/cppi_dma.c 			n_bds,
n_bds             621 drivers/usb/musb/cppi_dma.c 	for (i = 0; i < n_bds; ) {
n_bds             622 drivers/usb/musb/cppi_dma.c 		if (++i < n_bds && bd->next)
n_bds             768 drivers/usb/musb/cppi_dma.c 	unsigned		n_bds;
n_bds             777 drivers/usb/musb/cppi_dma.c 		n_bds = 1;
n_bds             792 drivers/usb/musb/cppi_dma.c 			n_bds = 0xffff / maxpacket;
n_bds             793 drivers/usb/musb/cppi_dma.c 			length = n_bds * maxpacket;
n_bds             795 drivers/usb/musb/cppi_dma.c 			n_bds = DIV_ROUND_UP(length, maxpacket);
n_bds             797 drivers/usb/musb/cppi_dma.c 		if (n_bds == 1)
n_bds             800 drivers/usb/musb/cppi_dma.c 			n_bds = min(n_bds, (unsigned) NUM_RXCHAN_BD);
n_bds             809 drivers/usb/musb/cppi_dma.c 		n_bds = cppi_autoreq_update(rx, tibase, onepacket, n_bds);
n_bds             813 drivers/usb/musb/cppi_dma.c 	length = min(n_bds * maxpacket, length);
n_bds             821 drivers/usb/musb/cppi_dma.c 			n_bds,
n_bds             835 drivers/usb/musb/cppi_dma.c 	for (i = 0, tail = NULL; bd && i < n_bds; i++, tail = bd) {
n_bds             866 drivers/usb/musb/cppi_dma.c 		WARNING("rx dma%d -- no BDs? need %d\n", rx->index, n_bds);
n_bds             868 drivers/usb/musb/cppi_dma.c 	} else if (i < n_bds)
n_bds             869 drivers/usb/musb/cppi_dma.c 		WARNING("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds);
n_bds             916 drivers/usb/musb/cppi_dma.c 			n_bds + 2);
n_bds             917 drivers/usb/musb/cppi_dma.c 	else if (n_bds > (i - 3))
n_bds             920 drivers/usb/musb/cppi_dma.c 			n_bds - (i - 3));
n_bds             925 drivers/usb/musb/cppi_dma.c 	if (i < (2 + n_bds)) {
n_bds             927 drivers/usb/musb/cppi_dma.c 					rx->index, i, n_bds);
n_bds             930 drivers/usb/musb/cppi_dma.c 			n_bds + 2);