Home
last modified time | relevance | path

Searched refs:n_bds (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/usb/musb/
Dcppi_dma.c454 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()
[all …]
/linux-6.1.9/drivers/usb/gadget/udc/
Dbcm63xx_udc.c157 int n_bds; member
226 unsigned int n_bds; member
640 if (!iudma->is_tx || iudma->n_bds_used == iudma->n_bds || in iudma_write()
762 unsigned int n_bds = cfg->n_bds; in iudma_init_channel() local
781 iudma->n_bds = n_bds; in iudma_init_channel()
783 n_bds * sizeof(struct bcm_enet_desc), in iudma_init_channel()
787 iudma->end_bd = &iudma->bd_ring[n_bds - 1]; in iudma_init_channel()
2206 iudma->n_bds); in bcm63xx_iudma_dbg_show()
2217 for (i = 0; i < iudma->n_bds; i++) { in bcm63xx_iudma_dbg_show()