/openbmc/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_prueth.c | 65 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() 307 tx_chn->desc_pool = in prueth_init_tx_chns() 312 if (IS_ERR(tx_chn->desc_pool)) { in prueth_init_tx_chns() 313 ret = PTR_ERR(tx_chn->desc_pool); in prueth_init_tx_chns() 314 tx_chn->desc_pool = NULL; in prueth_init_tx_chns() 380 if (IS_ERR(rx_chn->desc_pool)) { in prueth_init_rx_chns() 381 ret = PTR_ERR(rx_chn->desc_pool); in prueth_init_rx_chns() [all …]
|
H A D | icssg_prueth.h | 102 struct k3_cppi_desc_pool *desc_pool; member 114 struct k3_cppi_desc_pool *desc_pool; member
|
/openbmc/u-boot/drivers/dma/ |
H A D | keystone_nav.c | 33 struct qm_host_desc desc_pool[HDESC_NUM] __aligned(sizeof(struct qm_host_desc)); 61 qm_cfg->desc_mem[0].base_addr = (u32)desc_pool; in _qm_init() 67 memset(desc_pool, 0, sizeof(desc_pool)); in _qm_init() 69 qm_push(&desc_pool[j], qm_cfg->qpool_num); in _qm_init()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.c | 296 k3_cppi_desc_pool_avail(tx_chn->desc_pool)); in am65_cpsw_nuss_ndo_host_tx_timeout() 1633 if (!IS_ERR_OR_NULL(tx_chn->desc_pool)) in am65_cpsw_nuss_free_tx_chns() 1659 if (!IS_ERR_OR_NULL(tx_chn->desc_pool)) in am65_cpsw_nuss_remove_tx_chns() 1743 if (IS_ERR(tx_chn->desc_pool)) { in am65_cpsw_nuss_init_tx_chns() 1744 ret = PTR_ERR(tx_chn->desc_pool); in am65_cpsw_nuss_init_tx_chns() 1785 if (!IS_ERR_OR_NULL(rx_chn->desc_pool)) in am65_cpsw_nuss_free_rx_chns() 1786 k3_cppi_desc_pool_destroy(rx_chn->desc_pool); in am65_cpsw_nuss_free_rx_chns() 1806 if (!IS_ERR_OR_NULL(rx_chn->desc_pool)) in am65_cpsw_nuss_remove_rx_chns() 1807 k3_cppi_desc_pool_destroy(rx_chn->desc_pool); in am65_cpsw_nuss_remove_rx_chns() 1847 if (IS_ERR(rx_chn->desc_pool)) { in am65_cpsw_nuss_init_rx_chns() [all …]
|
H A D | am65-cpsw-nuss.h | 75 struct k3_cppi_desc_pool *desc_pool; member 88 struct k3_cppi_desc_pool *desc_pool; member
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_rxtx.c | 96 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()
|
/openbmc/linux/drivers/dma/ |
H A D | fsl-qdma.c | 190 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() 1094 fsl_queue->desc_pool = in fsl_qdma_alloc_chan_resources() 1099 if (!fsl_queue->desc_pool) in fsl_qdma_alloc_chan_resources() [all …]
|
H A 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()
|
H A D | xgene-dma.c | 283 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 …]
|
H A D | fsldma.c | 450 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()
|
H A 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() 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 …]
|
H A D | dma-jz4780.c | 132 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()
|
H A D | img-mdc-dma.c | 136 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()
|
H A D | stm32-mdma.c | 238 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()
|
H A D | pl330.c | 470 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() 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() 2840 list_move_tail(&first->node, &pl330->desc_pool); in __pl330_giveback_desc() 3085 INIT_LIST_HEAD(&pl330->desc_pool); in pl330_probe() [all …]
|
/openbmc/linux/drivers/dma/xilinx/ |
H A D | xdma.c | 69 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()
|
H A D | xilinx_dpdma.c | 237 struct dma_pool *desc_pool; member 559 sw_desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &dma_addr); in xilinx_dpdma_chan_alloc_sw_desc() 579 dma_pool_free(chan->desc_pool, sw_desc, sw_desc->dma_addr); in xilinx_dpdma_chan_free_sw_desc() 1234 chan->desc_pool = dma_pool_create(dev_name(chan->xdev->dev), in xilinx_dpdma_alloc_chan_resources() 1238 if (!chan->desc_pool) { in xilinx_dpdma_alloc_chan_resources() 1261 dma_pool_destroy(chan->desc_pool); in xilinx_dpdma_free_chan_resources() 1262 chan->desc_pool = NULL; in xilinx_dpdma_free_chan_resources()
|
H A D | xilinx_dma.c | 428 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 …]
|
/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ksz884x.c | 1353 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() 4026 adapter->desc_pool.alloc_size = 0; in ksz_alloc_desc() 4034 adapter->desc_pool.virt = adapter->desc_pool.alloc_virt + offset; in ksz_alloc_desc() 4035 adapter->desc_pool.phys = adapter->desc_pool.dma_addr + offset; in ksz_alloc_desc() 4039 adapter->desc_pool.virt; in ksz_alloc_desc() 4176 if (adapter->desc_pool.alloc_virt) in ksz_free_desc() 4178 adapter->desc_pool.alloc_size, in ksz_free_desc() 4180 adapter->desc_pool.dma_addr); in ksz_free_desc() [all …]
|
/openbmc/linux/drivers/dma/lgm/ |
H A 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()
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | gr_udc.h | 192 struct dma_pool *desc_pool; member
|
/openbmc/linux/drivers/dma/dw/ |
H A D | core.c | 84 desc = dma_pool_zalloc(dw->desc_pool, GFP_ATOMIC, &phys); in dwc_desc_get() 107 dma_pool_free(dw->desc_pool, child, child->txd.phys); in dwc_desc_put() 111 dma_pool_free(dw->desc_pool, desc, desc->txd.phys); in dwc_desc_put() 1208 dw->desc_pool = dmam_pool_create(dw->name, chip->dev, in do_dma_probe() 1210 if (!dw->desc_pool) { in do_dma_probe()
|
/openbmc/linux/drivers/dma/dw-axi-dmac/ |
H A D | dw-axi-dmac-platform.c | 270 lli = dma_pool_zalloc(chan->desc_pool, GFP_NOWAIT, &phys); in axi_desc_get() 292 dma_pool_free(chan->desc_pool, hw_desc->lli, hw_desc->llp); in axi_desc_put() 482 chan->desc_pool = dma_pool_create(dev_name(chan2dev(chan)), in dma_chan_alloc_chan_resources() 486 if (!chan->desc_pool) { in dma_chan_alloc_chan_resources() 511 dma_pool_destroy(chan->desc_pool); in dma_chan_free_chan_resources() 512 chan->desc_pool = NULL; in dma_chan_free_chan_resources()
|
H A D | dw-axi-dmac.h | 46 struct dma_pool *desc_pool; member
|
/openbmc/linux/drivers/dma/ti/ |
H A 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() 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()
|