n_desc 956 drivers/dma/ipu/ipu_idmac.c int ret = 0, n_desc = 0; n_desc 968 drivers/dma/ipu/ipu_idmac.c n_desc = 16; n_desc 973 drivers/dma/ipu/ipu_idmac.c n_desc = 16; n_desc 980 drivers/dma/ipu/ipu_idmac.c n_desc = 4; n_desc 994 drivers/dma/ipu/ipu_idmac.c if (n_desc && !ichan->desc) n_desc 995 drivers/dma/ipu/ipu_idmac.c ret = idmac_desc_alloc(ichan, n_desc); n_desc 917 drivers/net/ethernet/mediatek/mtk_eth_soc.c int i, n_desc = 1; n_desc 978 drivers/net/ethernet/mediatek/mtk_eth_soc.c n_desc++; n_desc 1034 drivers/net/ethernet/mediatek/mtk_eth_soc.c atomic_sub(n_desc, &ring->free_count); n_desc 615 drivers/net/ethernet/xscale/ixp4xx_eth.c u32 phys, tab_phys, n_desc; n_desc 624 drivers/net/ethernet/xscale/ixp4xx_eth.c n_desc = (phys - tab_phys) / sizeof(struct desc); n_desc 625 drivers/net/ethernet/xscale/ixp4xx_eth.c BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); n_desc 626 drivers/net/ethernet/xscale/ixp4xx_eth.c debug_desc(phys, &tab[n_desc]); n_desc 627 drivers/net/ethernet/xscale/ixp4xx_eth.c BUG_ON(tab[n_desc].next); n_desc 628 drivers/net/ethernet/xscale/ixp4xx_eth.c return n_desc; n_desc 784 drivers/net/ethernet/xscale/ixp4xx_eth.c u32 npe_id, n_desc; n_desc 794 drivers/net/ethernet/xscale/ixp4xx_eth.c n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); n_desc 795 drivers/net/ethernet/xscale/ixp4xx_eth.c BUG_ON(n_desc >= TX_DESCS); n_desc 796 drivers/net/ethernet/xscale/ixp4xx_eth.c desc = tx_desc_ptr(port, n_desc); n_desc 799 drivers/net/ethernet/xscale/ixp4xx_eth.c if (port->tx_buff_tab[n_desc]) { /* not the draining packet */ n_desc 806 drivers/net/ethernet/xscale/ixp4xx_eth.c port->netdev->name, port->tx_buff_tab[n_desc]); n_desc 808 drivers/net/ethernet/xscale/ixp4xx_eth.c free_buffer_irq(port->tx_buff_tab[n_desc]); n_desc 809 drivers/net/ethernet/xscale/ixp4xx_eth.c port->tx_buff_tab[n_desc] = NULL; n_desc 582 drivers/net/wan/ixp4xx_hss.c u32 phys, tab_phys, n_desc; n_desc 591 drivers/net/wan/ixp4xx_hss.c n_desc = (phys - tab_phys) / sizeof(struct desc); n_desc 592 drivers/net/wan/ixp4xx_hss.c BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); n_desc 593 drivers/net/wan/ixp4xx_hss.c debug_desc(phys, &tab[n_desc]); n_desc 594 drivers/net/wan/ixp4xx_hss.c BUG_ON(tab[n_desc].next); n_desc 595 drivers/net/wan/ixp4xx_hss.c return n_desc; n_desc 791 drivers/net/wan/ixp4xx_hss.c int n_desc; n_desc 796 drivers/net/wan/ixp4xx_hss.c while ((n_desc = queue_get_desc(queue_ids[port->id].txdone, n_desc 801 drivers/net/wan/ixp4xx_hss.c desc = tx_desc_ptr(port, n_desc); n_desc 809 drivers/net/wan/ixp4xx_hss.c dev->name, port->tx_buff_tab[n_desc]); n_desc 811 drivers/net/wan/ixp4xx_hss.c free_buffer_irq(port->tx_buff_tab[n_desc]); n_desc 812 drivers/net/wan/ixp4xx_hss.c port->tx_buff_tab[n_desc] = NULL; n_desc 816 drivers/net/wan/ixp4xx_hss.c tx_desc_phys(port, n_desc), desc); n_desc 12 drivers/net/wireless/mediatek/mt76/dma.c int idx, int n_desc, int bufsize, n_desc 21 drivers/net/wireless/mediatek/mt76/dma.c q->ndesc = n_desc; n_desc 152 drivers/net/wireless/mediatek/mt76/mt76.h int idx, int n_desc, int bufsize, n_desc 9 drivers/net/wireless/mediatek/mt76/mt7603/dma.c int idx, int n_desc) n_desc 18 drivers/net/wireless/mediatek/mt76/mt7603/dma.c err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); n_desc 124 drivers/net/wireless/mediatek/mt76/mt7603/dma.c int idx, int n_desc, int bufsize) n_desc 128 drivers/net/wireless/mediatek/mt76/mt7603/dma.c err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, n_desc 15 drivers/net/wireless/mediatek/mt76/mt7615/dma.c mt7615_init_tx_queues(struct mt7615_dev *dev, int n_desc) n_desc 25 drivers/net/wireless/mediatek/mt76/mt7615/dma.c err = mt76_queue_alloc(dev, hwq, 0, n_desc, 0, MT_TX_RING_BASE); n_desc 40 drivers/net/wireless/mediatek/mt76/mt7615/dma.c int idx, int n_desc) n_desc 49 drivers/net/wireless/mediatek/mt76/mt7615/dma.c err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); n_desc 101 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c int idx, int n_desc) n_desc 110 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c err = mt76_queue_alloc(dev, hwq, idx, n_desc, 0, MT_TX_RING_BASE); n_desc 124 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c int idx, int n_desc, int bufsize) n_desc 128 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, n_desc 154 drivers/staging/comedi/drivers/comedi_isadma.c int n_desc, unsigned int dma_chan1, n_desc 163 drivers/staging/comedi/drivers/comedi_isadma.c if (n_desc < 1 || n_desc > 2) n_desc 170 drivers/staging/comedi/drivers/comedi_isadma.c desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); n_desc 174 drivers/staging/comedi/drivers/comedi_isadma.c dma->n_desc = n_desc; n_desc 204 drivers/staging/comedi/drivers/comedi_isadma.c for (i = 0; i < n_desc; i++) { n_desc 237 drivers/staging/comedi/drivers/comedi_isadma.c for (i = 0; i < dma->n_desc; i++) { n_desc 52 drivers/staging/comedi/drivers/comedi_isadma.h int n_desc; n_desc 68 drivers/staging/comedi/drivers/comedi_isadma.h int n_desc, unsigned int dma_chan1, n_desc 101 drivers/staging/comedi/drivers/comedi_isadma.h comedi_isadma_alloc(struct comedi_device *dev, int n_desc, n_desc 443 drivers/usb/dwc2/hcd.h u8 n_desc; n_desc 585 drivers/usb/dwc2/hcd_ddma.c u16 idx, inc, n_desc = 0, ntd_max = 0; n_desc 634 drivers/usb/dwc2/hcd_ddma.c n_desc++; n_desc 661 drivers/usb/dwc2/hcd_ddma.c if (n_desc > DESCNUM_THRESHOLD) n_desc 692 drivers/usb/dwc2/hcd_ddma.c int n_desc) n_desc 694 drivers/usb/dwc2/hcd_ddma.c struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; n_desc 715 drivers/usb/dwc2/hcd_ddma.c qh->n_bytes[n_desc] = len; n_desc 725 drivers/usb/dwc2/hcd_ddma.c (n_desc * sizeof(struct dwc2_dma_desc)), n_desc 746 drivers/usb/dwc2/hcd_ddma.c int n_desc = 0; n_desc 761 drivers/usb/dwc2/hcd_ddma.c if (n_desc) { n_desc 771 drivers/usb/dwc2/hcd_ddma.c qtd->n_desc = 0; n_desc 773 drivers/usb/dwc2/hcd_ddma.c if (n_desc > 1) { n_desc 774 drivers/usb/dwc2/hcd_ddma.c qh->desc_list[n_desc - 1].status |= HOST_DMA_A; n_desc 777 drivers/usb/dwc2/hcd_ddma.c n_desc - 1, n_desc 778 drivers/usb/dwc2/hcd_ddma.c &qh->desc_list[n_desc - 1]); n_desc 781 drivers/usb/dwc2/hcd_ddma.c ((n_desc - 1) * n_desc 786 drivers/usb/dwc2/hcd_ddma.c dwc2_fill_host_dma_desc(hsotg, chan, qtd, qh, n_desc); n_desc 789 drivers/usb/dwc2/hcd_ddma.c n_desc, &qh->desc_list[n_desc], n_desc 790 drivers/usb/dwc2/hcd_ddma.c qh->desc_list[n_desc].buf, n_desc 791 drivers/usb/dwc2/hcd_ddma.c qh->desc_list[n_desc].status); n_desc 792 drivers/usb/dwc2/hcd_ddma.c qtd->n_desc++; n_desc 793 drivers/usb/dwc2/hcd_ddma.c n_desc++; n_desc 795 drivers/usb/dwc2/hcd_ddma.c n_desc != MAX_DMA_DESC_NUM_GENERIC); n_desc 797 drivers/usb/dwc2/hcd_ddma.c dev_vdbg(hsotg->dev, "n_desc=%d\n", n_desc); n_desc 801 drivers/usb/dwc2/hcd_ddma.c if (n_desc == MAX_DMA_DESC_NUM_GENERIC) n_desc 805 drivers/usb/dwc2/hcd_ddma.c if (n_desc) { n_desc 806 drivers/usb/dwc2/hcd_ddma.c qh->desc_list[n_desc - 1].status |= n_desc 809 drivers/usb/dwc2/hcd_ddma.c n_desc - 1, &qh->desc_list[n_desc - 1]); n_desc 811 drivers/usb/dwc2/hcd_ddma.c qh->desc_list_dma + (n_desc - 1) * n_desc 815 drivers/usb/dwc2/hcd_ddma.c if (n_desc > 1) { n_desc 824 drivers/usb/dwc2/hcd_ddma.c chan->ntd = n_desc; n_desc 1204 drivers/usb/dwc2/hcd_ddma.c } else if (desc_num + 1 == qtd->n_desc) { n_desc 1244 drivers/usb/dwc2/hcd_ddma.c qtd_desc_count = qtd->n_desc; n_desc 126 drivers/usb/gadget/config.c unsigned n_desc; n_desc 131 drivers/usb/gadget/config.c for (bytes = 0, n_desc = 0, tmp = src; *tmp; tmp++, n_desc++) n_desc 133 drivers/usb/gadget/config.c bytes += (n_desc + 1) * sizeof(*tmp); n_desc 145 drivers/usb/gadget/config.c mem += (n_desc + 1) * sizeof(*tmp); n_desc 474 drivers/usb/gadget/function/f_uvc.c unsigned int n_desc; n_desc 524 drivers/usb/gadget/function/f_uvc.c n_desc = 6; n_desc 526 drivers/usb/gadget/function/f_uvc.c n_desc = 5; n_desc 533 drivers/usb/gadget/function/f_uvc.c n_desc++; n_desc 539 drivers/usb/gadget/function/f_uvc.c n_desc++; n_desc 543 drivers/usb/gadget/function/f_uvc.c n_desc++; n_desc 546 drivers/usb/gadget/function/f_uvc.c mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); n_desc 552 drivers/usb/gadget/function/f_uvc.c mem += (n_desc + 1) * sizeof(*src); n_desc 154 include/uapi/linux/a.out.h short n_desc;