/Linux-v5.4/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
|
/Linux-v5.4/drivers/staging/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
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | dma.c | 15 mt7615_init_tx_queues(struct mt7615_dev *dev, int n_desc) in mt7615_init_tx_queues() argument 25 err = mt76_queue_alloc(dev, hwq, 0, n_desc, 0, MT_TX_RING_BASE); in mt7615_init_tx_queues() 40 int idx, int n_desc) in mt7615_init_mcu_queue() argument 49 err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); in mt7615_init_mcu_queue()
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | dma.c | 9 int idx, int n_desc) in mt7603_init_tx_queue() argument 18 err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); in mt7603_init_tx_queue() 124 int idx, int n_desc, int bufsize) in mt7603_init_rx_queue() argument 128 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt7603_init_rx_queue()
|
/Linux-v5.4/drivers/net/wan/ |
D | ixp4xx_hss.c | 582 u32 phys, tab_phys, n_desc; in queue_get_desc() local 591 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc() 592 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc() 593 debug_desc(phys, &tab[n_desc]); in queue_get_desc() 594 BUG_ON(tab[n_desc].next); in queue_get_desc() 595 return n_desc; in queue_get_desc() 791 int n_desc; in hss_hdlc_txdone_irq() local 796 while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, in hss_hdlc_txdone_irq() 801 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq() 809 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq() [all …]
|
/Linux-v5.4/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() 795 u32 npe_id, n_desc; in eth_txdone_irq() local 805 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq() 806 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq() 807 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq() [all …]
|
/Linux-v5.4/drivers/usb/gadget/function/ |
D | f_uvc.c | 474 unsigned int n_desc; in uvc_copy_descriptors() local 524 n_desc = 6; in uvc_copy_descriptors() 526 n_desc = 5; in uvc_copy_descriptors() 533 n_desc++; in uvc_copy_descriptors() 539 n_desc++; in uvc_copy_descriptors() 543 n_desc++; in uvc_copy_descriptors() 546 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); in uvc_copy_descriptors() 552 mem += (n_desc + 1) * sizeof(*src); in uvc_copy_descriptors()
|
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mmio.c | 101 int idx, int n_desc) in mt76x02_init_tx_queue() argument 110 err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); in mt76x02_init_tx_queue() 124 int idx, int n_desc, int bufsize) in mt76x02_init_rx_queue() argument 128 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt76x02_init_rx_queue()
|
D | dma.c | 12 int idx, int n_desc, int bufsize, in mt76_dma_alloc_queue() argument 21 q->ndesc = n_desc; in mt76_dma_alloc_queue()
|
D | mt76.h | 152 int idx, int n_desc, int bufsize,
|
/Linux-v5.4/include/uapi/linux/ |
D | a.out.h | 154 short n_desc; member
|
/Linux-v5.4/drivers/dma/ipu/ |
D | ipu_idmac.c | 956 int ret = 0, n_desc = 0; in ipu_init_channel() local 968 n_desc = 16; in ipu_init_channel() 973 n_desc = 16; in ipu_init_channel() 980 n_desc = 4; in ipu_init_channel() 994 if (n_desc && !ichan->desc) in ipu_init_channel() 995 ret = idmac_desc_alloc(ichan, n_desc); in ipu_init_channel()
|
/Linux-v5.4/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 895 int i, n_desc = 1; in mtk_tx_map() local 956 n_desc++; in mtk_tx_map() 1012 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()
|