Home
last modified time | relevance | path

Searched refs:n_desc (Results 1 – 19 of 19) sorted by relevance

/drivers/usb/dwc2/
Dhcd_ddma.c585 u16 idx, inc, n_desc = 0, ntd_max = 0; in dwc2_init_isoc_dma_desc() local
634 n_desc++; in dwc2_init_isoc_dma_desc()
661 if (n_desc > DESCNUM_THRESHOLD) in dwc2_init_isoc_dma_desc()
692 int n_desc) in dwc2_fill_host_dma_desc() argument
694 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc()
715 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc()
725 (n_desc * sizeof(struct dwc2_dma_desc)), in dwc2_fill_host_dma_desc()
746 int n_desc = 0; in dwc2_init_non_isoc_dma_desc() local
761 if (n_desc) { in dwc2_init_non_isoc_dma_desc()
771 qtd->n_desc = 0; in dwc2_init_non_isoc_dma_desc()
[all …]
Dhcd.h443 u8 n_desc; member
/drivers/comedi/drivers/
Dcomedi_isadma.c154 int n_desc, unsigned int dma_chan1, in comedi_isadma_alloc() argument
163 if (n_desc < 1 || n_desc > 2) in comedi_isadma_alloc()
170 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); in comedi_isadma_alloc()
174 dma->n_desc = n_desc; in comedi_isadma_alloc()
204 for (i = 0; i < n_desc; i++) { in comedi_isadma_alloc()
237 for (i = 0; i < dma->n_desc; i++) { in comedi_isadma_free()
Dcomedi_isadma.h52 int n_desc; member
68 int n_desc, unsigned int dma_chan1,
101 comedi_isadma_alloc(struct comedi_device *dev, int n_desc, in comedi_isadma_alloc() argument
/drivers/usb/gadget/
Dconfig.c126 unsigned n_desc; in usb_copy_descriptors() local
131 for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) in usb_copy_descriptors()
133 bytes += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
145 mem += (n_desc + 1) * sizeof(*tmp); in usb_copy_descriptors()
/drivers/net/wan/
Dixp4xx_hss.c583 u32 phys, tab_phys, n_desc; in queue_get_desc() local
593 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
594 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
595 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
596 BUG_ON(tab[n_desc].next); in queue_get_desc()
597 return n_desc; in queue_get_desc()
793 int n_desc; in hss_hdlc_txdone_irq() local
798 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, in hss_hdlc_txdone_irq()
803 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
811 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
[all …]
/drivers/net/ethernet/xscale/
Dixp4xx_eth.c626 u32 phys, tab_phys, n_desc; in queue_get_desc() local
635 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
636 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
637 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
638 BUG_ON(tab[n_desc].next); in queue_get_desc()
639 return n_desc; in queue_get_desc()
792 u32 npe_id, n_desc; in eth_txdone_irq() local
802 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq()
803 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
804 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
[all …]
/drivers/usb/gadget/function/
Df_uvc.c489 unsigned int n_desc; in uvc_copy_descriptors() local
542 n_desc = 6; in uvc_copy_descriptors()
544 n_desc = 5; in uvc_copy_descriptors()
551 n_desc++; in uvc_copy_descriptors()
557 n_desc++; in uvc_copy_descriptors()
561 n_desc++; in uvc_copy_descriptors()
564 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); in uvc_copy_descriptors()
570 mem += (n_desc + 1) * sizeof(*src); in uvc_copy_descriptors()
/drivers/net/wireless/mediatek/mt76/mt7603/
Ddma.c112 int idx, int n_desc, int bufsize) in mt7603_init_rx_queue() argument
116 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt7603_init_rx_queue()
/drivers/net/wireless/mediatek/mt76/mt7915/
Ddma.c8 int mt7915_init_tx_queues(struct mt7915_phy *phy, int idx, int n_desc) in mt7915_init_tx_queues() argument
12 err = mt76_init_tx_queue(phy->mt76, 0, idx, n_desc, MT_TX_RING_BASE); in mt7915_init_tx_queues()
Dmt7915.h428 int mt7915_init_tx_queues(struct mt7915_phy *phy, int idx, int n_desc);
/drivers/net/wireless/mediatek/mt76/
Dmt76.h194 int idx, int n_desc, int bufsize,
890 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc,
893 int n_desc, int ring_base) in mt76_init_tx_queue() argument
897 q = mt76_init_queue(phy->dev, qid, idx, n_desc, ring_base); in mt76_init_tx_queue()
908 int n_desc, int ring_base) in mt76_init_mcu_queue() argument
912 q = mt76_init_queue(dev, qid, idx, n_desc, ring_base); in mt76_init_mcu_queue()
Dmt76x02_mmio.c109 int idx, int n_desc, int bufsize) in mt76x02_init_rx_queue() argument
113 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt76x02_init_rx_queue()
Ddma.c112 int idx, int n_desc, int bufsize, in mt76_dma_alloc_queue() argument
121 q->ndesc = n_desc; in mt76_dma_alloc_queue()
Dmac80211.c1324 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc, in mt76_init_queue() argument
1334 err = dev->queue_ops->alloc(dev, hwq, idx, n_desc, 0, ring_base); in mt76_init_queue()
/drivers/net/wireless/mediatek/mt76/mt7921/
Ddma.c8 int mt7921_init_tx_queues(struct mt7921_phy *phy, int idx, int n_desc) in mt7921_init_tx_queues() argument
12 err = mt76_init_tx_queue(phy->mt76, 0, idx, n_desc, MT_TX_RING_BASE); in mt7921_init_tx_queues()
Dmt7921.h354 int mt7921_init_tx_queues(struct mt7921_phy *phy, int idx, int n_desc);
/drivers/dma/ipu/
Dipu_idmac.c957 int ret = 0, n_desc = 0; in ipu_init_channel() local
969 n_desc = 16; in ipu_init_channel()
974 n_desc = 16; in ipu_init_channel()
981 n_desc = 4; in ipu_init_channel()
996 if (n_desc && !ichan->desc) in ipu_init_channel()
997 ret = idmac_desc_alloc(ichan, n_desc); in ipu_init_channel()
/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c982 int i, n_desc = 1; in mtk_tx_map() local
1043 n_desc++; in mtk_tx_map()
1099 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()