Home
last modified time | relevance | path

Searched refs:desc_pool (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/ti/icssg/
Dicssg_prueth.c65 if (rx_chn->desc_pool) in prueth_cleanup_rx_chns()
66 k3_cppi_desc_pool_destroy(rx_chn->desc_pool); in prueth_cleanup_rx_chns()
79 if (tx_chn->desc_pool) in prueth_cleanup_tx_chns()
80 k3_cppi_desc_pool_destroy(tx_chn->desc_pool); in prueth_cleanup_tx_chns()
124 next_desc = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in prueth_xmit_free()
135 k3_cppi_desc_pool_free(tx_chn->desc_pool, next_desc); in prueth_xmit_free()
138 k3_cppi_desc_pool_free(tx_chn->desc_pool, first_desc); in prueth_xmit_free()
168 desc_tx = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in emac_tx_complete_packets()
195 (k3_cppi_desc_pool_avail(tx_chn->desc_pool) >= in emac_tx_complete_packets()
307 tx_chn->desc_pool = in prueth_init_tx_chns()
[all …]
Dicssg_prueth.h102 struct k3_cppi_desc_pool *desc_pool; member
114 struct k3_cppi_desc_pool *desc_pool; member
/linux-6.6.21/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.c296 k3_cppi_desc_pool_avail(tx_chn->desc_pool)); in am65_cpsw_nuss_ndo_host_tx_timeout()
316 desc_rx = k3_cppi_desc_pool_alloc(rx_chn->desc_pool); in am65_cpsw_nuss_rx_push()
321 desc_dma = k3_cppi_desc_pool_virt2dma(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_push()
326 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_push()
658 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in am65_cpsw_nuss_rx_cleanup()
665 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_cleanup()
746 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in am65_cpsw_nuss_rx_packets()
770 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_packets()
861 next_desc = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in am65_cpsw_nuss_xmit_free()
872 k3_cppi_desc_pool_free(tx_chn->desc_pool, next_desc); in am65_cpsw_nuss_xmit_free()
[all …]
Dam65-cpsw-nuss.h75 struct k3_cppi_desc_pool *desc_pool; member
88 struct k3_cppi_desc_pool *desc_pool; member
/linux-6.6.21/drivers/net/ethernet/marvell/prestera/
Dprestera_rxtx.c96 struct dma_pool *desc_pool; member
116 desc = dma_pool_alloc(sdma->desc_pool, GFP_DMA | GFP_KERNEL, &dma); in prestera_sdma_buf_init()
352 dma_pool_free(sdma->desc_pool, buf->desc, in prestera_sdma_rx_fini()
588 dma_pool_free(sdma->desc_pool, buf->desc, in prestera_sdma_tx_fini()
633 sdma->desc_pool = dma_pool_create("desc_pool", dev, in prestera_sdma_switch_init()
636 if (!sdma->desc_pool) in prestera_sdma_switch_init()
670 dma_pool_destroy(sdma->desc_pool); in prestera_sdma_switch_init()
684 dma_pool_destroy(sdma->desc_pool); in prestera_sdma_switch_fini()
/linux-6.6.21/drivers/dma/
Dfsl-qdma.c190 struct dma_pool *desc_pool; member
320 if (!fsl_queue->comp_pool && !fsl_queue->desc_pool) in fsl_qdma_free_chan_resources()
328 dma_pool_free(fsl_queue->desc_pool, in fsl_qdma_free_chan_resources()
340 dma_pool_free(fsl_queue->desc_pool, in fsl_qdma_free_chan_resources()
348 dma_pool_destroy(fsl_queue->desc_pool); in fsl_qdma_free_chan_resources()
352 fsl_queue->desc_pool = NULL; in fsl_qdma_free_chan_resources()
417 dma_pool_alloc(queue->desc_pool, GFP_KERNEL, in fsl_qdma_pre_request_enqueue_desc()
442 dma_pool_free(queue->desc_pool, in fsl_qdma_pre_request_enqueue_desc()
1075 if (fsl_queue->comp_pool && fsl_queue->desc_pool) in fsl_qdma_alloc_chan_resources()
1094 fsl_queue->desc_pool = in fsl_qdma_alloc_chan_resources()
[all …]
Dmmp_pdma.c113 struct dma_pool *desc_pool; /* Descriptors pool */ member
368 desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &pdesc); in mmp_pdma_alloc_descriptor()
395 if (chan->desc_pool) in mmp_pdma_alloc_chan_resources()
398 chan->desc_pool = dma_pool_create(dev_name(&dchan->dev->device), in mmp_pdma_alloc_chan_resources()
403 if (!chan->desc_pool) { in mmp_pdma_alloc_chan_resources()
421 dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); in mmp_pdma_free_desc_list()
435 dma_pool_destroy(chan->desc_pool); in mmp_pdma_free_chan_resources()
436 chan->desc_pool = NULL; in mmp_pdma_free_chan_resources()
931 dma_pool_free(chan->desc_pool, desc, txd->phys); in dma_do_tasklet()
Dxgene-dma.c283 struct dma_pool *desc_pool; member
486 dma_pool_free(chan->desc_pool, desc, desc->tx.phys); in xgene_dma_clean_descriptor()
495 desc = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in xgene_dma_alloc_descriptor()
591 dma_pool_free(chan->desc_pool, desc, desc->tx.phys); in xgene_dma_clean_running_descriptor()
780 if (chan->desc_pool) in xgene_dma_alloc_chan_resources()
783 chan->desc_pool = dma_pool_create(chan->name, chan->dev, in xgene_dma_alloc_chan_resources()
786 if (!chan->desc_pool) { in xgene_dma_alloc_chan_resources()
818 if (!chan->desc_pool) in xgene_dma_free_chan_resources()
834 dma_pool_destroy(chan->desc_pool); in xgene_dma_free_chan_resources()
835 chan->desc_pool = NULL; in xgene_dma_free_chan_resources()
[all …]
Dfsldma.c450 dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); in fsl_dma_free_descriptor()
464 desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &pdesc); in fsl_dma_alloc_descriptor()
557 dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); in fsldma_clean_running_descriptor()
695 if (chan->desc_pool) in fsl_dma_alloc_chan_resources()
702 chan->desc_pool = dma_pool_create(chan->name, chan->dev, in fsl_dma_alloc_chan_resources()
705 if (!chan->desc_pool) { in fsl_dma_alloc_chan_resources()
755 dma_pool_destroy(chan->desc_pool); in fsl_dma_free_chan_resources()
756 chan->desc_pool = NULL; in fsl_dma_free_chan_resources()
Dpxa_dma.c92 struct dma_pool *desc_pool; /* Channel's used allocator */ member
117 struct dma_pool *desc_pool; /* Descriptors pool */ member
689 if (chan->desc_pool) in pxad_alloc_chan_resources()
692 chan->desc_pool = dma_pool_create(dma_chan_name(dchan), in pxad_alloc_chan_resources()
697 if (!chan->desc_pool) { in pxad_alloc_chan_resources()
712 dma_pool_destroy(chan->desc_pool); in pxad_free_chan_resources()
713 chan->desc_pool = NULL; in pxad_free_chan_resources()
730 dma_pool_free(sw_desc->desc_pool, in pxad_free_desc()
748 sw_desc->desc_pool = chan->desc_pool; in pxad_alloc_desc()
751 sw_desc->hw_desc[i] = dma_pool_alloc(sw_desc->desc_pool, in pxad_alloc_desc()
[all …]
Ddma-jz4780.c132 struct dma_pool *desc_pool; member
244 desc->desc = dma_pool_alloc(jzchan->desc_pool, GFP_NOWAIT, in jz4780_dma_desc_alloc()
267 dma_pool_free(jzchan->desc_pool, desc->desc, desc->desc_phys); in jz4780_dma_desc_free()
763 jzchan->desc_pool = dma_pool_create(dev_name(&chan->dev->device), in jz4780_dma_alloc_chan_resources()
767 if (!jzchan->desc_pool) { in jz4780_dma_alloc_chan_resources()
781 dma_pool_destroy(jzchan->desc_pool); in jz4780_dma_free_chan_resources()
782 jzchan->desc_pool = NULL; in jz4780_dma_free_chan_resources()
Dimg-mdc-dma.c136 struct dma_pool *desc_pool; member
270 dma_pool_free(mdma->desc_pool, curr, curr_phys); in mdc_list_desc_free()
306 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, &curr_phys); in mdc_prep_dma_memcpy()
400 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, in mdc_prep_dma_cyclic()
480 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, in mdc_prep_slave_sg()
985 mdma->desc_pool = dmam_pool_create(dev_name(&pdev->dev), &pdev->dev, in mdc_dma_probe()
988 if (!mdma->desc_pool) in mdc_dma_probe()
Dstm32-mdma.c238 struct dma_pool *desc_pool; member
327 dma_pool_alloc(chan->desc_pool, GFP_NOWAIT, in stm32_mdma_alloc_desc()
340 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_alloc_desc()
353 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_desc_free()
835 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_prep_slave_sg()
931 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_prep_dma_cyclic()
1488 chan->desc_pool = dmam_pool_create(dev_name(&c->dev->device), in stm32_mdma_alloc_chan_resources()
1493 if (!chan->desc_pool) { in stm32_mdma_alloc_chan_resources()
1526 dmam_pool_destroy(chan->desc_pool); in stm32_mdma_free_chan_resources()
1527 chan->desc_pool = NULL; in stm32_mdma_free_chan_resources()
Dpl330.c470 struct list_head desc_pool; member
2122 list_move_tail(&desc->node, &pch->dmac->desc_pool); in pl330_tasklet()
2312 list_splice_tail_init(&pch->submitted_list, &pl330->desc_pool); in pl330_terminate_all()
2313 list_splice_tail_init(&pch->work_list, &pl330->desc_pool); in pl330_terminate_all()
2314 list_splice_tail_init(&pch->completed_list, &pl330->desc_pool); in pl330_terminate_all()
2371 list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); in pl330_free_chan_resources()
2602 desc = pluck_desc(&pl330->desc_pool, &pl330->pool_lock); in pl330_get_desc()
2724 list_move_tail(&desc->node, &pl330->desc_pool); in pl330_prep_dma_cyclic()
2727 list_move_tail(&first->node, &pl330->desc_pool); in pl330_prep_dma_cyclic()
2837 list_move_tail(&desc->node, &pl330->desc_pool); in __pl330_giveback_desc()
[all …]
Dfsldma.h171 struct dma_pool *desc_pool; /* Descriptors pool */ member
/linux-6.6.21/drivers/dma/xilinx/
Dxdma.c69 struct dma_pool *desc_pool; member
222 dma_pool_free(sw_desc->chan->desc_pool, in xdma_free_desc()
259 addr = dma_pool_alloc(chan->desc_pool, GFP_NOWAIT, &dma_addr); in xdma_alloc_desc()
548 dma_pool_destroy(xdma_chan->desc_pool); in xdma_free_chan_resources()
549 xdma_chan->desc_pool = NULL; in xdma_free_chan_resources()
569 xdma_chan->desc_pool = dma_pool_create(dma_chan_name(chan), in xdma_alloc_chan_resources()
572 if (!xdma_chan->desc_pool) { in xdma_alloc_chan_resources()
Dxilinx_dpdma.c236 struct dma_pool *desc_pool; member
558 sw_desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &dma_addr); in xilinx_dpdma_chan_alloc_sw_desc()
578 dma_pool_free(chan->desc_pool, sw_desc, sw_desc->dma_addr); in xilinx_dpdma_chan_free_sw_desc()
1231 chan->desc_pool = dma_pool_create(dev_name(chan->xdev->dev), in xilinx_dpdma_alloc_chan_resources()
1235 if (!chan->desc_pool) { in xilinx_dpdma_alloc_chan_resources()
1258 dma_pool_destroy(chan->desc_pool); in xilinx_dpdma_free_chan_resources()
1259 chan->desc_pool = NULL; in xilinx_dpdma_free_chan_resources()
Dxilinx_dma.c428 struct dma_pool *desc_pool; member
672 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment()
693 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment()
810 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_cdma_free_tx_segment()
821 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_vdma_free_tx_segment()
965 dma_pool_destroy(chan->desc_pool); in xilinx_dma_free_chan_resources()
966 chan->desc_pool = NULL; in xilinx_dma_free_chan_resources()
1117 if (chan->desc_pool) in xilinx_dma_alloc_chan_resources()
1192 chan->desc_pool = dma_pool_create("xilinx_cdma_desc_pool", in xilinx_dma_alloc_chan_resources()
1198 chan->desc_pool = dma_pool_create("xilinx_vdma_desc_pool", in xilinx_dma_alloc_chan_resources()
[all …]
/linux-6.6.21/drivers/net/ethernet/micrel/
Dksz884x.c1353 struct ksz_shared_mem desc_pool; member
4016 adapter->desc_pool.alloc_size = in ksz_alloc_desc()
4021 adapter->desc_pool.alloc_virt = in ksz_alloc_desc()
4023 adapter->desc_pool.alloc_size, in ksz_alloc_desc()
4024 &adapter->desc_pool.dma_addr, GFP_KERNEL); in ksz_alloc_desc()
4025 if (adapter->desc_pool.alloc_virt == NULL) { in ksz_alloc_desc()
4026 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc()
4031 offset = (((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT) ? in ksz_alloc_desc()
4033 ((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT)) : 0); in ksz_alloc_desc()
4034 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset; in ksz_alloc_desc()
[all …]
/linux-6.6.21/drivers/dma/lgm/
Dlgm-dma.c216 struct dma_pool *desc_pool; /* Descriptors pool */ member
970 dma_pool_free(c->desc_pool, ds->desc_hw, ds->desc_phys); in dma_free_desc_resource()
990 ds->desc_hw = dma_pool_zalloc(c->desc_pool, GFP_ATOMIC, in dma_alloc_desc_resource()
1281 if (c->desc_pool) in ldma_alloc_chan_resources()
1285 c->desc_pool = dma_pool_create(c->name, dev, desc_sz, in ldma_alloc_chan_resources()
1288 if (!c->desc_pool) { in ldma_alloc_chan_resources()
1302 dma_pool_destroy(c->desc_pool); in ldma_free_chan_resources()
1303 c->desc_pool = NULL; in ldma_free_chan_resources()
/linux-6.6.21/drivers/usb/gadget/udc/
Dgr_udc.h192 struct dma_pool *desc_pool; member
/linux-6.6.21/drivers/dma/dw/
Dcore.c83 desc = dma_pool_zalloc(dw->desc_pool, GFP_ATOMIC, &phys); in dwc_desc_get()
106 dma_pool_free(dw->desc_pool, child, child->txd.phys); in dwc_desc_put()
110 dma_pool_free(dw->desc_pool, desc, desc->txd.phys); in dwc_desc_put()
1133 dw->desc_pool = dmam_pool_create(dw->name, chip->dev, in do_dma_probe()
1135 if (!dw->desc_pool) { in do_dma_probe()
/linux-6.6.21/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c269 lli = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in axi_desc_get()
291 dma_pool_free(chan->desc_pool, hw_desc->lli, hw_desc->llp); in axi_desc_put()
481 chan->desc_pool = dma_pool_create(dev_name(chan2dev(chan)), in dma_chan_alloc_chan_resources()
485 if (!chan->desc_pool) { in dma_chan_alloc_chan_resources()
510 dma_pool_destroy(chan->desc_pool); in dma_chan_free_chan_resources()
511 chan->desc_pool = NULL; in dma_chan_free_chan_resources()
Ddw-axi-dmac.h46 struct dma_pool *desc_pool; member
/linux-6.6.21/drivers/dma/ti/
Domap-dma.c56 struct dma_pool *desc_pool; member
258 dma_pool_free(od->desc_pool, d->sg[i].t2_desc, in omap_dma_desc_free()
1109 osg->t2_desc = dma_pool_alloc(od->desc_pool, GFP_ATOMIC, in omap_dma_prep_slave_sg()
1131 dma_pool_free(od->desc_pool, osg->t2_desc, in omap_dma_prep_slave_sg()
1797 od->desc_pool = dma_pool_create(dev_name(&pdev->dev), in omap_dma_probe()
1801 if (!od->desc_pool) { in omap_dma_probe()
1869 dma_pool_destroy(od->desc_pool); in omap_dma_remove()

12