Searched refs:n_desc (Results 1 - 10 of 10) sorted by relevance

/linux-4.4.14/drivers/usb/dwc2/
H A Dhcd_ddma.c542 u16 idx, inc, n_desc, ntd_max = 0; dwc2_init_isoc_dma_desc() local
546 n_desc = 0; dwc2_init_isoc_dma_desc()
561 if (n_desc > 1) dwc2_init_isoc_dma_desc()
562 qh->desc_list[n_desc - 1].status |= HOST_DMA_A; dwc2_init_isoc_dma_desc()
566 n_desc++; dwc2_init_isoc_dma_desc()
587 if (n_desc > DESCNUM_THRESHOLD) dwc2_init_isoc_dma_desc()
609 if (n_desc) { dwc2_init_isoc_dma_desc()
610 qh->desc_list[n_desc - 1].status |= HOST_DMA_A; dwc2_init_isoc_dma_desc()
611 if (n_desc > 1) dwc2_init_isoc_dma_desc()
619 int n_desc) dwc2_fill_host_dma_desc()
621 struct dwc2_hcd_dma_desc *dma_desc = &qh->desc_list[n_desc]; dwc2_fill_host_dma_desc()
642 qh->n_bytes[n_desc] = len; dwc2_fill_host_dma_desc()
667 int n_desc = 0; dwc2_init_non_isoc_dma_desc() local
682 if (n_desc) { dwc2_init_non_isoc_dma_desc()
692 qtd->n_desc = 0; dwc2_init_non_isoc_dma_desc()
694 if (n_desc > 1) { dwc2_init_non_isoc_dma_desc()
695 qh->desc_list[n_desc - 1].status |= HOST_DMA_A; dwc2_init_non_isoc_dma_desc()
698 n_desc - 1, dwc2_init_non_isoc_dma_desc()
699 &qh->desc_list[n_desc - 1]); dwc2_init_non_isoc_dma_desc()
701 dwc2_fill_host_dma_desc(hsotg, chan, qtd, qh, n_desc); dwc2_init_non_isoc_dma_desc()
704 n_desc, &qh->desc_list[n_desc], dwc2_init_non_isoc_dma_desc()
705 qh->desc_list[n_desc].buf, dwc2_init_non_isoc_dma_desc()
706 qh->desc_list[n_desc].status); dwc2_init_non_isoc_dma_desc()
707 qtd->n_desc++; dwc2_init_non_isoc_dma_desc()
708 n_desc++; dwc2_init_non_isoc_dma_desc()
710 n_desc != MAX_DMA_DESC_NUM_GENERIC); dwc2_init_non_isoc_dma_desc()
712 dev_vdbg(hsotg->dev, "n_desc=%d\n", n_desc); dwc2_init_non_isoc_dma_desc()
716 if (n_desc == MAX_DMA_DESC_NUM_GENERIC) dwc2_init_non_isoc_dma_desc()
720 if (n_desc) { dwc2_init_non_isoc_dma_desc()
721 qh->desc_list[n_desc - 1].status |= dwc2_init_non_isoc_dma_desc()
724 n_desc - 1, &qh->desc_list[n_desc - 1]); dwc2_init_non_isoc_dma_desc()
725 if (n_desc > 1) { dwc2_init_non_isoc_dma_desc()
730 chan->ntd = n_desc; dwc2_init_non_isoc_dma_desc()
1063 } else if (desc_num + 1 == qtd->n_desc) { dwc2_process_non_isoc_desc()
1103 for (i = 0; i < qtd->n_desc; i++) { dwc2_complete_non_isoc_xfer_ddma()
616 dwc2_fill_host_dma_desc(struct dwc2_hsotg *hsotg, struct dwc2_host_chan *chan, struct dwc2_qtd *qtd, struct dwc2_qh *qh, int n_desc) dwc2_fill_host_dma_desc() argument
H A Dhcd.h316 * @n_desc: Number of DMA descriptors for this QTD
345 u8 n_desc; member in struct:dwc2_qtd
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Dcomedi_isadma.c155 * @n_desc: the number of cookies to allocate
164 int n_desc, unsigned int dma_chan1, comedi_isadma_alloc()
173 if (n_desc < 1 || n_desc > 2) comedi_isadma_alloc()
180 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); comedi_isadma_alloc()
184 dma->n_desc = n_desc; comedi_isadma_alloc()
201 for (i = 0; i < n_desc; i++) { comedi_isadma_alloc()
234 for (i = 0; i < dma->n_desc; i++) { comedi_isadma_free()
163 comedi_isadma_alloc(struct comedi_device *dev, int n_desc, unsigned int dma_chan1, unsigned int dma_chan2, unsigned int maxsize, char dma_dir) comedi_isadma_alloc() argument
H A Dcomedi_isadma.h51 * @n_desc: the number of cookies
58 int n_desc; member in struct:comedi_isadma
74 int n_desc, unsigned int dma_chan1,
107 comedi_isadma_alloc(struct comedi_device *dev, int n_desc, comedi_isadma_alloc() argument
/linux-4.4.14/drivers/usb/gadget/
H A Dconfig.c130 unsigned n_desc; usb_copy_descriptors() local
135 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) usb_copy_descriptors()
137 bytes += (n_desc + 1) * sizeof(*tmp); usb_copy_descriptors()
149 mem += (n_desc + 1) * sizeof(*tmp); usb_copy_descriptors()
/linux-4.4.14/drivers/net/ethernet/xscale/
H A Dixp4xx_eth.c630 u32 phys, tab_phys, n_desc; queue_get_desc() local
639 n_desc = (phys - tab_phys) / sizeof(struct desc); queue_get_desc()
640 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); queue_get_desc()
641 debug_desc(phys, &tab[n_desc]); queue_get_desc()
642 BUG_ON(tab[n_desc].next); queue_get_desc()
643 return n_desc; queue_get_desc()
800 u32 npe_id, n_desc; eth_txdone_irq() local
810 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); eth_txdone_irq()
811 BUG_ON(n_desc >= TX_DESCS); eth_txdone_irq()
812 desc = tx_desc_ptr(port, n_desc); eth_txdone_irq()
815 if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ eth_txdone_irq()
822 port->netdev->name, port->tx_buff_tab[n_desc]); eth_txdone_irq()
824 free_buffer_irq(port->tx_buff_tab[n_desc]); eth_txdone_irq()
825 port->tx_buff_tab[n_desc] = NULL; eth_txdone_irq()
/linux-4.4.14/drivers/net/wan/
H A Dixp4xx_hss.c585 u32 phys, tab_phys, n_desc; queue_get_desc() local
594 n_desc = (phys - tab_phys) / sizeof(struct desc); queue_get_desc()
595 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); queue_get_desc()
596 debug_desc(phys, &tab[n_desc]); queue_get_desc()
597 BUG_ON(tab[n_desc].next); queue_get_desc()
598 return n_desc; queue_get_desc()
794 int n_desc; hss_hdlc_txdone_irq() local
799 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, hss_hdlc_txdone_irq()
804 desc = tx_desc_ptr(port, n_desc); hss_hdlc_txdone_irq()
812 dev->name, port->tx_buff_tab[n_desc]); hss_hdlc_txdone_irq()
814 free_buffer_irq(port->tx_buff_tab[n_desc]); hss_hdlc_txdone_irq()
815 port->tx_buff_tab[n_desc] = NULL; hss_hdlc_txdone_irq()
819 tx_desc_phys(port, n_desc), desc); hss_hdlc_txdone_irq()
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_uvc.c466 unsigned int n_desc; uvc_copy_descriptors() local
516 n_desc = 6; uvc_copy_descriptors()
518 n_desc = 5; uvc_copy_descriptors()
525 n_desc++; uvc_copy_descriptors()
531 n_desc++; uvc_copy_descriptors()
535 n_desc++; uvc_copy_descriptors()
538 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); uvc_copy_descriptors()
544 mem += (n_desc + 1) * sizeof(*src); uvc_copy_descriptors()
/linux-4.4.14/drivers/dma/ipu/
H A Dipu_idmac.c958 int ret = 0, n_desc = 0; ipu_init_channel() local
970 n_desc = 16; ipu_init_channel()
975 n_desc = 16; ipu_init_channel()
982 n_desc = 4; ipu_init_channel()
996 if (n_desc && !ichan->desc) ipu_init_channel()
997 ret = idmac_desc_alloc(ichan, n_desc); ipu_init_channel()
/linux-4.4.14/include/uapi/linux/
H A Da.out.h172 short n_desc;
171 short n_desc; global() member in struct:nlist

Completed in 397 milliseconds