Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/usb/dwc2/
A Dhcd_ddma.c604 n_desc++; in dwc2_init_isoc_dma_desc()
662 int n_desc) in dwc2_fill_host_dma_desc() argument
716 int n_desc = 0; in dwc2_init_non_isoc_dma_desc() local
731 if (n_desc) { in dwc2_init_non_isoc_dma_desc()
741 qtd->n_desc = 0; in dwc2_init_non_isoc_dma_desc()
747 n_desc - 1, in dwc2_init_non_isoc_dma_desc()
759 n_desc, &qh->desc_list[n_desc], in dwc2_init_non_isoc_dma_desc()
762 qtd->n_desc++; in dwc2_init_non_isoc_dma_desc()
763 n_desc++; in dwc2_init_non_isoc_dma_desc()
775 if (n_desc) { in dwc2_init_non_isoc_dma_desc()
[all …]
A Dhcd.h414 u8 n_desc; member
/linux-6.3-rc2/drivers/comedi/drivers/
A Dcomedi_isadma.c152 int n_desc, unsigned int dma_chan1, in comedi_isadma_alloc() argument
161 if (n_desc < 1 || n_desc > 2) in comedi_isadma_alloc()
168 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); in comedi_isadma_alloc()
172 dma->n_desc = n_desc; in comedi_isadma_alloc()
202 for (i = 0; i < n_desc; i++) { in comedi_isadma_alloc()
235 for (i = 0; i < dma->n_desc; i++) { in comedi_isadma_free()
/linux-6.3-rc2/drivers/net/ethernet/mediatek/
A Dmtk_wed_wo.c104 int index = (q->tail + 1) % q->n_desc; in mtk_wed_wo_dequeue()
141 while (q->queued < q->n_desc) { in mtk_wed_wo_queue_refill()
156 q->head = (q->head + 1) % q->n_desc; in mtk_wed_wo_queue_refill()
218 u32 index = (q->head - 1) % q->n_desc; in mtk_wed_wo_rx_run_queue()
258 int n_desc, int buf_size, int index, in mtk_wed_wo_queue_alloc() argument
262 q->n_desc = n_desc; in mtk_wed_wo_queue_alloc()
265 q->desc = dmam_alloc_coherent(wo->hw->dev, n_desc * sizeof(*q->desc), in mtk_wed_wo_queue_alloc()
270 q->entry = devm_kzalloc(wo->hw->dev, n_desc * sizeof(*q->entry), in mtk_wed_wo_queue_alloc()
292 for (i = 0; i < q->n_desc; i++) { in mtk_wed_wo_queue_tx_clean()
336 mtk_wed_mmio_w32(wo, q->regs.ring_size, q->n_desc); in mtk_wed_wo_queue_reset()
[all …]
A Dmtk_wed_wo.h222 int n_desc; member
A Dmtk_eth_soc.c1319 int i, n_desc = 1; in mtk_tx_map() local
1364 n_desc++; in mtk_tx_map()
1415 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()
1716 int err, index = 0, n_desc = 1, nr_frags; in mtk_xdp_submit_frame() local
1758 n_desc++; in mtk_xdp_submit_frame()
1782 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame()
/linux-6.3-rc2/include/linux/comedi/
A 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
/linux-6.3-rc2/drivers/usb/gadget/
A 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()
/linux-6.3-rc2/drivers/net/wan/
A Dixp4xx_hss.c591 u32 phys, tab_phys, n_desc; in queue_get_desc() local
603 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
604 BUG_ON(tab[n_desc].next); in queue_get_desc()
605 return n_desc; in queue_get_desc()
801 int n_desc; in hss_hdlc_txdone_irq() local
806 while ((n_desc = queue_get_desc(port->txdoneq, in hss_hdlc_txdone_irq()
811 desc = tx_desc_ptr(port, n_desc); in hss_hdlc_txdone_irq()
819 dev->name, port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
821 free_buffer_irq(port->tx_buff_tab[n_desc]); in hss_hdlc_txdone_irq()
822 port->tx_buff_tab[n_desc] = NULL; in hss_hdlc_txdone_irq()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/xscale/
A Dixp4xx_eth.c638 u32 phys, tab_phys, n_desc; in queue_get_desc() local
647 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc()
648 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc()
649 debug_desc(phys, &tab[n_desc]); in queue_get_desc()
650 BUG_ON(tab[n_desc].next); in queue_get_desc()
651 return n_desc; in queue_get_desc()
804 u32 npe_id, n_desc; in eth_txdone_irq() local
815 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq()
816 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq()
828 free_buffer_irq(port->tx_buff_tab[n_desc]); in eth_txdone_irq()
[all …]
/linux-6.3-rc2/drivers/usb/gadget/function/
A Df_uvc.c514 unsigned int n_desc; in uvc_copy_descriptors() local
562 n_desc = 3; in uvc_copy_descriptors()
565 n_desc += 2; in uvc_copy_descriptors()
569 n_desc += 1; in uvc_copy_descriptors()
577 n_desc++; in uvc_copy_descriptors()
583 n_desc++; in uvc_copy_descriptors()
590 n_desc++; in uvc_copy_descriptors()
594 n_desc++; in uvc_copy_descriptors()
597 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); in uvc_copy_descriptors()
603 mem += (n_desc + 1) * sizeof(*src); in uvc_copy_descriptors()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/
A 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()
/linux-6.3-rc2/include/uapi/linux/
A Da.out.h154 short n_desc; member
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/
A Dmt76.h232 int idx, int n_desc, int bufsize,
984 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc,
988 int n_desc, int ring_base, u32 flags) in mt76_init_tx_queue() argument
992 q = mt76_init_queue(phy->dev, qid, idx, n_desc, ring_base, flags); in mt76_init_tx_queue()
1002 int n_desc, int ring_base) in mt76_init_mcu_queue() argument
1006 q = mt76_init_queue(dev, qid, idx, n_desc, ring_base, 0); in mt76_init_mcu_queue()
A 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()
A Dmt76_connac.h356 int mt76_connac_init_tx_queues(struct mt76_phy *phy, int idx, int n_desc,
A Ddma.c684 int idx, int n_desc, int bufsize, in mt76_dma_alloc_queue() argument
693 q->ndesc = n_desc; in mt76_dma_alloc_queue()
A Dmt76_connac_mac.c254 int mt76_connac_init_tx_queues(struct mt76_phy *phy, int idx, int n_desc, in mt76_connac_init_tx_queues() argument
259 err = mt76_init_tx_queue(phy, 0, idx, n_desc, ring_base, flags); in mt76_connac_init_tx_queues()
A Dmac80211.c1663 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc, in mt76_init_queue() argument
1675 err = dev->queue_ops->alloc(dev, hwq, idx, n_desc, 0, ring_base); in mt76_init_queue()
/linux-6.3-rc2/drivers/dma/ipu/
A 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()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
A Ddma.c9 mt7915_init_tx_queues(struct mt7915_phy *phy, int idx, int n_desc, int ring_base) in mt7915_init_tx_queues() argument
22 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, ring_base, in mt7915_init_tx_queues()

Completed in 55 milliseconds