/linux-6.12.1/drivers/media/platform/rockchip/rga/ |
D | rga-buf.c | 25 size_t n_desc = 0; in fill_descriptors() local 29 if (n_desc > max_desc) in fill_descriptors() 34 n_desc++; in fill_descriptors() 37 return n_desc; in fill_descriptors() 81 size_t n_desc = 0; in rga_buf_init() local 83 n_desc = DIV_ROUND_UP(f->size, PAGE_SIZE); in rga_buf_init() 85 rbuf->n_desc = n_desc; in rga_buf_init() 87 rbuf->n_desc * sizeof(*rbuf->dma_desc), in rga_buf_init() 113 ssize_t n_desc = 0; in rga_buf_prepare() local 126 n_desc = fill_descriptors(&rbuf->dma_desc[curr_desc], in rga_buf_prepare() [all …]
|
D | rga.h | 107 size_t n_desc; member
|
/linux-6.12.1/drivers/usb/dwc2/ |
D | hcd_ddma.c | 555 u16 idx, inc, n_desc = 0, ntd_max = 0; in dwc2_init_isoc_dma_desc() local 604 n_desc++; in dwc2_init_isoc_dma_desc() 631 if (n_desc > DESCNUM_THRESHOLD) in dwc2_init_isoc_dma_desc() 662 int n_desc) in dwc2_fill_host_dma_desc() argument 664 struct dwc2_dma_desc *dma_desc = &qh->desc_list[n_desc]; in dwc2_fill_host_dma_desc() 685 qh->n_bytes[n_desc] = len; in dwc2_fill_host_dma_desc() 695 (n_desc * sizeof(struct dwc2_dma_desc)), in dwc2_fill_host_dma_desc() 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() [all …]
|
D | hcd.h | 414 u8 n_desc; member
|
/linux-6.12.1/drivers/comedi/drivers/ |
D | comedi_isadma.c | 152 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.12.1/drivers/net/ethernet/mediatek/ |
D | mtk_wed_wo.c | 103 int index = (q->tail + 1) % q->n_desc; in mtk_wed_wo_dequeue() 140 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() 282 dma_free_coherent(wo->hw->dev, q->n_desc * sizeof(*q->desc), q->desc, in mtk_wed_wo_queue_free() 291 for (i = 0; i < q->n_desc; i++) { in mtk_wed_wo_queue_tx_clean() [all …]
|
D | mtk_wed_wo.h | 225 int n_desc; member
|
D | mtk_eth_soc.c | 1424 int i, n_desc = 1; in mtk_tx_map() local 1468 n_desc++; in mtk_tx_map() 1518 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map() 1819 int err, index = 0, n_desc = 1, nr_frags; in mtk_xdp_submit_frame() local 1861 n_desc++; in mtk_xdp_submit_frame() 1885 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame()
|
/linux-6.12.1/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-6.12.1/include/linux/comedi/ |
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-6.12.1/drivers/net/wan/ |
D | ixp4xx_hss.c | 591 u32 phys, tab_phys, n_desc; in queue_get_desc() local 601 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc() 602 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc() 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() [all …]
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | f_uvc.c | 513 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() 570 n_desc += 1; in uvc_copy_descriptors() 578 n_desc++; in uvc_copy_descriptors() 584 n_desc++; in uvc_copy_descriptors() 591 n_desc++; in uvc_copy_descriptors() 595 n_desc++; in uvc_copy_descriptors() 598 mem = kmalloc((n_desc + 1) * sizeof(*src) + bytes, GFP_KERNEL); in uvc_copy_descriptors() 604 mem += (n_desc + 1) * sizeof(*src); in uvc_copy_descriptors()
|
/linux-6.12.1/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 646 u32 phys, tab_phys, n_desc; in queue_get_desc() local 655 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc() 656 BUG_ON(n_desc >= (is_tx ? TX_DESCS : RX_DESCS)); in queue_get_desc() 657 debug_desc(phys, &tab[n_desc]); in queue_get_desc() 658 BUG_ON(tab[n_desc].next); in queue_get_desc() 659 return n_desc; in queue_get_desc() 812 u32 npe_id, n_desc; in eth_txdone_irq() local 822 n_desc = (phys - tx_desc_phys(port, 0)) / sizeof(struct desc); in eth_txdone_irq() 823 BUG_ON(n_desc >= TX_DESCS); in eth_txdone_irq() 824 desc = tx_desc_ptr(port, n_desc); in eth_txdone_irq() [all …]
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | dma.c | 136 int idx, int n_desc, int bufsize) in mt7603_init_rx_queue() argument 140 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt7603_init_rx_queue()
|
/linux-6.12.1/include/uapi/linux/ |
D | a.out.h | 154 short n_desc; member
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/ |
D | mt76.h | 259 int idx, int n_desc, int bufsize, 1192 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc, 1197 int n_desc, int ring_base, void *wed, in mt76_init_tx_queue() argument 1202 q = mt76_init_queue(phy->dev, qid, idx, n_desc, ring_base, wed, flags); in mt76_init_tx_queue() 1212 int n_desc, int ring_base) in mt76_init_mcu_queue() argument 1216 q = mt76_init_queue(dev, qid, idx, n_desc, ring_base, NULL, 0); in mt76_init_mcu_queue()
|
D | mt76x02_mmio.c | 116 int idx, int n_desc, int bufsize) in mt76x02_init_rx_queue() argument 120 err = mt76_queue_alloc(dev, q, idx, n_desc, bufsize, in mt76x02_init_rx_queue()
|
D | mt76_connac.h | 409 int mt76_connac_init_tx_queues(struct mt76_phy *phy, int idx, int n_desc,
|
D | dma.c | 684 int idx, int n_desc, int bufsize, in mt76_dma_alloc_queue() argument 693 q->ndesc = n_desc; in mt76_dma_alloc_queue()
|
D | mt76_connac_mac.c | 258 int mt76_connac_init_tx_queues(struct mt76_phy *phy, int idx, int n_desc, in mt76_connac_init_tx_queues() argument 263 err = mt76_init_tx_queue(phy, 0, idx, n_desc, ring_base, in mt76_connac_init_tx_queues()
|
D | mac80211.c | 1790 mt76_init_queue(struct mt76_dev *dev, int qid, int idx, int n_desc, in mt76_init_queue() argument 1803 err = dev->queue_ops->alloc(dev, hwq, idx, n_desc, 0, ring_base); in mt76_init_queue()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | dma.c | 9 mt7915_init_tx_queues(struct mt7915_phy *phy, int idx, int n_desc, int ring_base) in mt7915_init_tx_queues() argument 24 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, ring_base, in mt7915_init_tx_queues()
|
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | dma.c | 10 int mt7996_init_tx_queues(struct mt7996_phy *phy, int idx, int n_desc, in mt7996_init_tx_queues() argument 26 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, in mt7996_init_tx_queues()
|
D | mt7996.h | 438 int n_desc, int ring_base, struct mtk_wed_device *wed);
|