Searched refs:n_bds (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/usb/musb/ |
H A D | cppi_dma.c | 454 void __iomem *tibase, int onepacket, unsigned n_bds) cppi_autoreq_update() 473 n_bds--; cppi_autoreq_update() 495 if (n_bds && rx->channel.actual_len) { cppi_autoreq_update() 506 return n_bds; cppi_autoreq_update() 567 unsigned n_bds; cppi_next_tx_segment() local 584 n_bds = 1; cppi_next_tx_segment() 586 n_bds = length / maxpacket; cppi_next_tx_segment() 588 n_bds++; cppi_next_tx_segment() 589 n_bds = min(n_bds, (unsigned) NUM_TXCHAN_BD); cppi_next_tx_segment() 590 length = min(n_bds * maxpacket, length); cppi_next_tx_segment() 597 n_bds, cppi_next_tx_segment() 620 for (i = 0; i < n_bds; ) { cppi_next_tx_segment() 621 if (++i < n_bds && bd->next) cppi_next_tx_segment() 767 unsigned n_bds; cppi_next_rx_segment() local 776 n_bds = 1; cppi_next_rx_segment() 791 n_bds = 0xffff / maxpacket; cppi_next_rx_segment() 792 length = n_bds * maxpacket; cppi_next_rx_segment() 794 n_bds = length / maxpacket; cppi_next_rx_segment() 796 n_bds++; cppi_next_rx_segment() 798 if (n_bds == 1) cppi_next_rx_segment() 801 n_bds = min(n_bds, (unsigned) NUM_RXCHAN_BD); cppi_next_rx_segment() 810 n_bds = cppi_autoreq_update(rx, tibase, onepacket, n_bds); cppi_next_rx_segment() 814 length = min(n_bds * maxpacket, length); cppi_next_rx_segment() 822 n_bds, cppi_next_rx_segment() 836 for (i = 0, tail = NULL; bd && i < n_bds; i++, tail = bd) { cppi_next_rx_segment() 867 WARNING("rx dma%d -- no BDs? need %d\n", rx->index, n_bds); cppi_next_rx_segment() 869 } else if (i < n_bds) cppi_next_rx_segment() 870 WARNING("rx dma%d -- only %d of %d BDs\n", rx->index, i, n_bds); cppi_next_rx_segment() 917 n_bds + 2); cppi_next_rx_segment() 918 else if (n_bds > (i - 3)) cppi_next_rx_segment() 921 n_bds - (i - 3)); cppi_next_rx_segment() 926 if (i < (2 + n_bds)) { cppi_next_rx_segment() 928 rx->index, i, n_bds); cppi_next_rx_segment() 931 n_bds + 2); cppi_next_rx_segment() 453 cppi_autoreq_update(struct cppi_channel *rx, void __iomem *tibase, int onepacket, unsigned n_bds) cppi_autoreq_update() argument
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
H A D | bcm63xx_udc.c | 132 * @n_bds: Number of buffer descriptors in the ring. 141 int n_bds; member in struct:iudma_ch_cfg 158 idx | n_bds | dir | max_pkt_hs | 185 * @n_bds: Total number of BDs in the ring. 210 unsigned int n_bds; member in struct:iudma_ch 631 if (!iudma->is_tx || iudma->n_bds_used == iudma->n_bds || iudma_write() 753 unsigned int n_bds = cfg->n_bds; iudma_init_channel() local 772 iudma->n_bds = n_bds; iudma_init_channel() 774 n_bds * sizeof(struct bcm_enet_desc), iudma_init_channel() 778 iudma->end_bd = &iudma->bd_ring[n_bds - 1]; iudma_init_channel() 2198 iudma->n_bds); bcm63xx_iudma_dbg_show() 2209 for (i = 0; i < iudma->n_bds; i++) { bcm63xx_iudma_dbg_show()
|
Completed in 103 milliseconds