/drivers/usb/dwc2/ |
D | hcd_ddma.c | 585 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 …]
|
D | hcd.h | 443 u8 n_desc; member
|
/drivers/comedi/drivers/ |
D | comedi_isadma.c | 154 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()
|
D | comedi_isadma.h | 52 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/ |
D | config.c | 126 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/ |
D | ixp4xx_hss.c | 583 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/ |
D | ixp4xx_eth.c | 626 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/ |
D | f_uvc.c | 489 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/ |
D | dma.c | 112 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/ |
D | dma.c | 8 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()
|
D | mt7915.h | 428 int mt7915_init_tx_queues(struct mt7915_phy *phy, int idx, int n_desc);
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt76.h | 194 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()
|
D | mt76x02_mmio.c | 109 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()
|
D | dma.c | 112 int idx, int n_desc, int bufsize, in mt76_dma_alloc_queue() argument 121 q->ndesc = n_desc; in mt76_dma_alloc_queue()
|
D | mac80211.c | 1324 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/ |
D | dma.c | 8 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()
|
D | mt7921.h | 354 int mt7921_init_tx_queues(struct mt7921_phy *phy, int idx, int n_desc);
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 957 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/ |
D | mtk_eth_soc.c | 982 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()
|