/linux-6.1.9/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.c | 292 k3_cppi_desc_pool_avail(tx_chn->desc_pool)); in am65_cpsw_nuss_ndo_host_tx_timeout() 312 desc_rx = k3_cppi_desc_pool_alloc(rx_chn->desc_pool); in am65_cpsw_nuss_rx_push() 317 desc_dma = k3_cppi_desc_pool_virt2dma(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_push() 322 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_push() 624 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in am65_cpsw_nuss_rx_cleanup() 631 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_cleanup() 710 desc_rx = k3_cppi_desc_pool_dma2virt(rx_chn->desc_pool, desc_dma); in am65_cpsw_nuss_rx_packets() 734 k3_cppi_desc_pool_free(rx_chn->desc_pool, desc_rx); in am65_cpsw_nuss_rx_packets() 825 next_desc = k3_cppi_desc_pool_dma2virt(tx_chn->desc_pool, in am65_cpsw_nuss_xmit_free() 836 k3_cppi_desc_pool_free(tx_chn->desc_pool, next_desc); in am65_cpsw_nuss_xmit_free() [all …]
|
D | am65-cpsw-nuss.h | 70 struct k3_cppi_desc_pool *desc_pool; member 82 struct k3_cppi_desc_pool *desc_pool; member
|
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_rxtx.c | 99 struct dma_pool *desc_pool; member 119 desc = dma_pool_alloc(sdma->desc_pool, GFP_DMA | GFP_KERNEL, &dma); in prestera_sdma_buf_init() 355 dma_pool_free(sdma->desc_pool, buf->desc, in prestera_sdma_rx_fini() 591 dma_pool_free(sdma->desc_pool, buf->desc, in prestera_sdma_tx_fini() 636 sdma->desc_pool = dma_pool_create("desc_pool", dev, in prestera_sdma_switch_init() 639 if (!sdma->desc_pool) in prestera_sdma_switch_init() 673 dma_pool_destroy(sdma->desc_pool); in prestera_sdma_switch_init() 687 dma_pool_destroy(sdma->desc_pool); in prestera_sdma_switch_fini()
|
/linux-6.1.9/drivers/dma/ |
D | fsl-qdma.c | 189 struct dma_pool *desc_pool; member 319 if (!fsl_queue->comp_pool && !fsl_queue->desc_pool) in fsl_qdma_free_chan_resources() 327 dma_pool_free(fsl_queue->desc_pool, in fsl_qdma_free_chan_resources() 339 dma_pool_free(fsl_queue->desc_pool, in fsl_qdma_free_chan_resources() 347 dma_pool_destroy(fsl_queue->desc_pool); in fsl_qdma_free_chan_resources() 351 fsl_queue->desc_pool = NULL; in fsl_qdma_free_chan_resources() 415 dma_pool_alloc(queue->desc_pool, GFP_KERNEL, in fsl_qdma_pre_request_enqueue_desc() 440 dma_pool_free(queue->desc_pool, in fsl_qdma_pre_request_enqueue_desc() 1073 if (fsl_queue->comp_pool && fsl_queue->desc_pool) in fsl_qdma_alloc_chan_resources() 1092 fsl_queue->desc_pool = in fsl_qdma_alloc_chan_resources() [all …]
|
D | mmp_pdma.c | 113 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()
|
D | xgene-dma.c | 282 struct dma_pool *desc_pool; member 485 dma_pool_free(chan->desc_pool, desc, desc->tx.phys); in xgene_dma_clean_descriptor() 494 desc = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in xgene_dma_alloc_descriptor() 590 dma_pool_free(chan->desc_pool, desc, desc->tx.phys); in xgene_dma_clean_running_descriptor() 779 if (chan->desc_pool) in xgene_dma_alloc_chan_resources() 782 chan->desc_pool = dma_pool_create(chan->name, chan->dev, in xgene_dma_alloc_chan_resources() 785 if (!chan->desc_pool) { in xgene_dma_alloc_chan_resources() 817 if (!chan->desc_pool) in xgene_dma_free_chan_resources() 833 dma_pool_destroy(chan->desc_pool); in xgene_dma_free_chan_resources() 834 chan->desc_pool = NULL; in xgene_dma_free_chan_resources() [all …]
|
D | fsldma.c | 449 dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); in fsl_dma_free_descriptor() 463 desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &pdesc); in fsl_dma_alloc_descriptor() 556 dma_pool_free(chan->desc_pool, desc, desc->async_tx.phys); in fsldma_clean_running_descriptor() 694 if (chan->desc_pool) in fsl_dma_alloc_chan_resources() 701 chan->desc_pool = dma_pool_create(chan->name, chan->dev, in fsl_dma_alloc_chan_resources() 704 if (!chan->desc_pool) { in fsl_dma_alloc_chan_resources() 754 dma_pool_destroy(chan->desc_pool); in fsl_dma_free_chan_resources() 755 chan->desc_pool = NULL; in fsl_dma_free_chan_resources()
|
D | pxa_dma.c | 92 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() 731 dma_pool_free(sw_desc->desc_pool, in pxad_free_desc() 749 sw_desc->desc_pool = chan->desc_pool; in pxad_alloc_desc() 752 sw_desc->hw_desc[i] = dma_pool_alloc(sw_desc->desc_pool, in pxad_alloc_desc() [all …]
|
D | dma-jz4780.c | 133 struct dma_pool *desc_pool; member 245 desc->desc = dma_pool_alloc(jzchan->desc_pool, GFP_NOWAIT, in jz4780_dma_desc_alloc() 268 dma_pool_free(jzchan->desc_pool, desc->desc, desc->desc_phys); in jz4780_dma_desc_free() 764 jzchan->desc_pool = dma_pool_create(dev_name(&chan->dev->device), in jz4780_dma_alloc_chan_resources() 768 if (!jzchan->desc_pool) { in jz4780_dma_alloc_chan_resources() 782 dma_pool_destroy(jzchan->desc_pool); in jz4780_dma_free_chan_resources() 783 jzchan->desc_pool = NULL; in jz4780_dma_free_chan_resources()
|
D | img-mdc-dma.c | 137 struct dma_pool *desc_pool; member 271 dma_pool_free(mdma->desc_pool, curr, curr_phys); in mdc_list_desc_free() 307 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, &curr_phys); in mdc_prep_dma_memcpy() 401 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, in mdc_prep_dma_cyclic() 481 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, in mdc_prep_slave_sg() 988 mdma->desc_pool = dmam_pool_create(dev_name(&pdev->dev), &pdev->dev, in mdc_dma_probe() 991 if (!mdma->desc_pool) in mdc_dma_probe()
|
D | stm32-mdma.c | 239 struct dma_pool *desc_pool; member 328 dma_pool_alloc(chan->desc_pool, GFP_NOWAIT, in stm32_mdma_alloc_desc() 341 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_alloc_desc() 354 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_desc_free() 838 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_prep_slave_sg() 934 dma_pool_free(chan->desc_pool, desc->node[i].hwdesc, in stm32_mdma_prep_dma_cyclic() 1474 chan->desc_pool = dmam_pool_create(dev_name(&c->dev->device), in stm32_mdma_alloc_chan_resources() 1479 if (!chan->desc_pool) { in stm32_mdma_alloc_chan_resources() 1512 dmam_pool_destroy(chan->desc_pool); in stm32_mdma_free_chan_resources() 1513 chan->desc_pool = NULL; in stm32_mdma_free_chan_resources()
|
D | pl330.c | 464 struct list_head desc_pool; member 2116 list_move_tail(&desc->node, &pch->dmac->desc_pool); in pl330_tasklet() 2306 list_splice_tail_init(&pch->submitted_list, &pl330->desc_pool); in pl330_terminate_all() 2307 list_splice_tail_init(&pch->work_list, &pl330->desc_pool); in pl330_terminate_all() 2308 list_splice_tail_init(&pch->completed_list, &pl330->desc_pool); in pl330_terminate_all() 2360 list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); in pl330_free_chan_resources() 2588 desc = pluck_desc(&pl330->desc_pool, &pl330->pool_lock); in pl330_get_desc() 2710 list_move_tail(&desc->node, &pl330->desc_pool); in pl330_prep_dma_cyclic() 2713 list_move_tail(&first->node, &pl330->desc_pool); in pl330_prep_dma_cyclic() 2823 list_move_tail(&desc->node, &pl330->desc_pool); in __pl330_giveback_desc() [all …]
|
D | fsldma.h | 171 struct dma_pool *desc_pool; /* Descriptors pool */ member
|
/linux-6.1.9/drivers/dma/xilinx/ |
D | xilinx_dpdma.c | 236 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()
|
D | xilinx_dma.c | 424 struct dma_pool *desc_pool; member 642 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_vdma_alloc_tx_segment() 663 segment = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &phys); in xilinx_cdma_alloc_tx_segment() 780 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_cdma_free_tx_segment() 791 dma_pool_free(chan->desc_pool, segment, segment->phys); in xilinx_vdma_free_tx_segment() 935 dma_pool_destroy(chan->desc_pool); in xilinx_dma_free_chan_resources() 936 chan->desc_pool = NULL; in xilinx_dma_free_chan_resources() 1087 if (chan->desc_pool) in xilinx_dma_alloc_chan_resources() 1162 chan->desc_pool = dma_pool_create("xilinx_cdma_desc_pool", in xilinx_dma_alloc_chan_resources() 1168 chan->desc_pool = dma_pool_create("xilinx_vdma_desc_pool", in xilinx_dma_alloc_chan_resources() [all …]
|
/linux-6.1.9/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1353 struct ksz_shared_mem desc_pool; member 4314 adapter->desc_pool.alloc_size = in ksz_alloc_desc() 4319 adapter->desc_pool.alloc_virt = in ksz_alloc_desc() 4321 adapter->desc_pool.alloc_size, in ksz_alloc_desc() 4322 &adapter->desc_pool.dma_addr, GFP_KERNEL); in ksz_alloc_desc() 4323 if (adapter->desc_pool.alloc_virt == NULL) { in ksz_alloc_desc() 4324 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc() 4329 offset = (((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT) ? in ksz_alloc_desc() 4331 ((ulong) adapter->desc_pool.alloc_virt % DESC_ALIGNMENT)) : 0); in ksz_alloc_desc() 4332 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset; in ksz_alloc_desc() [all …]
|
/linux-6.1.9/drivers/dma/lgm/ |
D | lgm-dma.c | 216 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.1.9/drivers/usb/gadget/udc/ |
D | gr_udc.h | 192 struct dma_pool *desc_pool; member
|
D | gr_udc.c | 237 dma_desc = dma_pool_zalloc(ep->dev->desc_pool, gfp_flags, &paddr); in gr_alloc_dma_desc() 251 dma_pool_free(dev->desc_pool, desc, (dma_addr_t)desc->paddr); in gr_free_dma_desc() 2105 dma_pool_destroy(dev->desc_pool); in gr_remove() 2176 dev->desc_pool = dma_pool_create("desc_pool", dev->dev, in gr_probe() 2178 if (!dev->desc_pool) { in gr_probe()
|
/linux-6.1.9/drivers/dma/dw/ |
D | core.c | 83 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() 1134 dw->desc_pool = dmam_pool_create(dw->name, chip->dev, in do_dma_probe() 1136 if (!dw->desc_pool) { in do_dma_probe()
|
D | regs.h | 317 struct dma_pool *desc_pool; member
|
/linux-6.1.9/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 263 lli = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in axi_desc_get() 285 dma_pool_free(chan->desc_pool, hw_desc->lli, hw_desc->llp); in axi_desc_put() 477 chan->desc_pool = dma_pool_create(dev_name(chan2dev(chan)), in dma_chan_alloc_chan_resources() 481 if (!chan->desc_pool) { in dma_chan_alloc_chan_resources() 506 dma_pool_destroy(chan->desc_pool); in dma_chan_free_chan_resources() 507 chan->desc_pool = NULL; in dma_chan_free_chan_resources()
|
D | dw-axi-dmac.h | 45 struct dma_pool *desc_pool; member
|
/linux-6.1.9/drivers/dma/ti/ |
D | omap-dma.c | 56 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() 1799 od->desc_pool = dma_pool_create(dev_name(&pdev->dev), in omap_dma_probe() 1803 if (!od->desc_pool) { in omap_dma_probe() 1871 dma_pool_destroy(od->desc_pool); in omap_dma_remove()
|