| /Linux-v5.4/drivers/dma/qcom/ |
| D | hidma.c | 77 static inline struct hidma_dev *to_hidma_dev(struct dma_device *dmadev) in to_hidma_dev() argument 79 return container_of(dmadev, struct hidma_dev, ddev); in to_hidma_dev() 99 static void hidma_free(struct hidma_dev *dmadev) in hidma_free() argument 101 INIT_LIST_HEAD(&dmadev->ddev.channels); in hidma_free() 176 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback() local 195 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback() 196 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback() 200 static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) in hidma_chan_init() argument 205 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init() 209 ddev = &dmadev->ddev; in hidma_chan_init() [all …]
|
| D | hidma_dbg.c | 88 struct hidma_dev *dmadev = mchan->dmadev; in hidma_chan_show() local 90 pm_runtime_get_sync(dmadev->ddev.dev); in hidma_chan_show() 95 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show() 99 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show() 103 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_show() 105 hidma_ll_devstats(s, mchan->dmadev->lldev); in hidma_chan_show() 106 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_chan_show() 107 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_chan_show() 118 struct hidma_dev *dmadev = s->private; in hidma_dma_show() local 121 seq_printf(s, "nr_descriptors=%d\n", dmadev->nr_descriptors); in hidma_dma_show() [all …]
|
| D | hidma.h | 96 struct hidma_dev *dmadev; member 158 void hidma_debug_init(struct hidma_dev *dmadev); 159 void hidma_debug_uninit(struct hidma_dev *dmadev);
|
| /Linux-v5.4/drivers/dma/ |
| D | stm32-mdma.c | 311 static u32 stm32_mdma_read(struct stm32_mdma_device *dmadev, u32 reg) in stm32_mdma_read() argument 313 return readl_relaxed(dmadev->base + reg); in stm32_mdma_read() 316 static void stm32_mdma_write(struct stm32_mdma_device *dmadev, u32 reg, u32 val) in stm32_mdma_write() argument 318 writel_relaxed(val, dmadev->base + reg); in stm32_mdma_write() 321 static void stm32_mdma_set_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_set_bits() argument 324 void __iomem *addr = dmadev->base + reg; in stm32_mdma_set_bits() 329 static void stm32_mdma_clr_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_clr_bits() argument 332 void __iomem *addr = dmadev->base + reg; in stm32_mdma_clr_bits() 429 struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); in stm32_mdma_disable_chan() local 437 stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); in stm32_mdma_disable_chan() [all …]
|
| D | stm32-dma.c | 236 static u32 stm32_dma_read(struct stm32_dma_device *dmadev, u32 reg) in stm32_dma_read() argument 238 return readl_relaxed(dmadev->base + reg); in stm32_dma_read() 241 static void stm32_dma_write(struct stm32_dma_device *dmadev, u32 reg, u32 val) in stm32_dma_write() argument 243 writel_relaxed(val, dmadev->base + reg); in stm32_dma_write() 380 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_status() local 392 dma_isr = stm32_dma_read(dmadev, STM32_DMA_HISR); in stm32_dma_irq_status() 394 dma_isr = stm32_dma_read(dmadev, STM32_DMA_LISR); in stm32_dma_irq_status() 403 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_clear() local 417 stm32_dma_write(dmadev, STM32_DMA_HIFCR, dma_ifcr); in stm32_dma_irq_clear() 419 stm32_dma_write(dmadev, STM32_DMA_LIFCR, dma_ifcr); in stm32_dma_irq_clear() [all …]
|
| D | sa11x0-dma.c | 131 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument 133 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma() 835 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument 840 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev() 841 dmadev->dev = dev; in sa11x0_dma_init_dmadev() 842 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev() 843 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev() 844 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev() 845 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev() 846 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev() [all …]
|
| D | virt-dma.c | 129 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev) in vchan_init() argument 141 vc->chan.device = dmadev; in vchan_init() 142 list_add_tail(&vc->chan.device_node, &dmadev->channels); in vchan_init()
|
| D | mv_xor_v2.c | 159 struct dma_device dmadev; member 308 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_tx_submit() 383 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_memcpy() 439 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_xor() 558 dev_dbg(xor_dev->dmadev.dev, "%s %d\n", __func__, __LINE__); in mv_xor_v2_tasklet() 828 dma_dev = &xor_dev->dmadev; in mv_xor_v2_probe() 883 dma_async_device_unregister(&xor_dev->dmadev); in mv_xor_v2_remove()
|
| D | s3c24xx-dma.c | 1089 struct dma_device *dmadev, unsigned int channels, bool slave) in s3c24xx_dma_init_virtual_channels() argument 1094 INIT_LIST_HEAD(&dmadev->channels); in s3c24xx_dma_init_virtual_channels() 1102 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); in s3c24xx_dma_init_virtual_channels() 1120 dev_dbg(dmadev->dev, in s3c24xx_dma_init_virtual_channels() 1125 vchan_init(&chan->vc, dmadev); in s3c24xx_dma_init_virtual_channels() 1127 dev_info(dmadev->dev, "initialized %d virtual %s channels\n", in s3c24xx_dma_init_virtual_channels() 1132 static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) in s3c24xx_dma_free_virtual_channels() argument 1138 next, &dmadev->channels, vc.chan.device_node) { in s3c24xx_dma_free_virtual_channels()
|
| D | altera-msgdma.c | 179 struct dma_device dmadev; member 842 dma_dev = &mdev->dmadev; in msgdma_probe() 909 dma_async_device_unregister(&mdev->dmadev); in msgdma_remove()
|
| D | mv_xor.h | 118 struct dma_device dmadev; member
|
| D | virt-dma.h | 45 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
|
| D | mv_xor.c | 46 ((chan)->dmadev.dev) 1012 struct device *dev = mv_chan->dmadev.dev; in mv_xor_channel_remove() 1014 dma_async_device_unregister(&mv_chan->dmadev); in mv_xor_channel_remove() 1023 list_for_each_entry_safe(chan, _chan, &mv_chan->dmadev.channels, in mv_xor_channel_remove() 1053 dma_dev = &mv_chan->dmadev; in mv_xor_channel_add()
|
| D | fsl-edma-common.h | 246 void fsl_edma_cleanup_vchan(struct dma_device *dmadev);
|
| D | pxa_dma.c | 140 #define to_pxad_dev(dmadev) \ argument 141 container_of(dmadev, struct pxad_device, slave) 1222 static void pxad_free_channels(struct dma_device *dmadev) in pxad_free_channels() argument 1226 list_for_each_entry_safe(c, cn, &dmadev->channels, in pxad_free_channels()
|
| D | fsl-edma-common.c | 649 void fsl_edma_cleanup_vchan(struct dma_device *dmadev) in fsl_edma_cleanup_vchan() argument 654 &dmadev->channels, vchan.chan.device_node) { in fsl_edma_cleanup_vchan()
|
| D | amba-pl08x.c | 2370 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument 2375 INIT_LIST_HEAD(&dmadev->channels); in pl08x_dma_init_virtual_channels() 2420 vchan_init(&chan->vc, dmadev); in pl08x_dma_init_virtual_channels() 2427 static void pl08x_free_virtual_channels(struct dma_device *dmadev) in pl08x_free_virtual_channels() argument 2433 next, &dmadev->channels, vc.chan.device_node) { in pl08x_free_virtual_channels()
|
| D | mmp_pdma.c | 138 #define to_mmp_pdma_dev(dmadev) \ argument 139 container_of(dmadev, struct mmp_pdma_device, device)
|
| /Linux-v5.4/drivers/infiniband/hw/efa/ |
| D | efa_com.c | 145 dma_alloc_coherent(aq->dmadev, size, &sq->dma_addr, GFP_KERNEL); in efa_com_admin_init_sq() 183 dma_alloc_coherent(aq->dmadev, size, &cq->dma_addr, GFP_KERNEL); in efa_com_admin_init_cq() 224 aenq->entries = dma_alloc_coherent(edev->dmadev, size, &aenq->dma_addr, in efa_com_admin_init_aenq() 374 aq->comp_ctx = devm_kzalloc(aq->dmadev, size, GFP_KERNEL); in efa_com_init_comp_ctxt() 375 aq->comp_ctx_pool = devm_kzalloc(aq->dmadev, pool_size, GFP_KERNEL); in efa_com_init_comp_ctxt() 377 devm_kfree(aq->dmadev, aq->comp_ctx_pool); in efa_com_init_comp_ctxt() 378 devm_kfree(aq->dmadev, aq->comp_ctx); in efa_com_init_comp_ctxt() 680 devm_kfree(edev->dmadev, aq->comp_ctx_pool); in efa_com_admin_destroy() 681 devm_kfree(edev->dmadev, aq->comp_ctx); in efa_com_admin_destroy() 684 dma_free_coherent(edev->dmadev, size, sq->entries, sq->dma_addr); in efa_com_admin_destroy() [all …]
|
| D | efa_com.h | 59 void *dmadev; member 106 void *dmadev; member
|
| /Linux-v5.4/drivers/net/ethernet/amazon/ena/ |
| D | ena_com.c | 159 aenq->entries = dma_alloc_coherent(dev->dmadev, size, &aenq->dma_addr, in ena_com_admin_init_aenq() 344 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq() 345 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq() 347 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq() 350 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq() 353 dma_alloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq() 375 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq() 376 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq() 378 devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq() 379 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq() [all …]
|
| D | ena_com.h | 325 void *dmadev; member
|
| /Linux-v5.4/drivers/spi/ |
| D | spi-mem.c | 38 struct device *dmadev; in spi_controller_dma_map_mem_op_data() local 44 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data() 46 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data() 48 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data() 50 if (!dmadev) in spi_controller_dma_map_mem_op_data() 53 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data() 84 struct device *dmadev; in spi_controller_dma_unmap_mem_op_data() local 90 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data() 92 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_unmap_mem_op_data() 94 dmadev = ctlr->dev.parent; in spi_controller_dma_unmap_mem_op_data() [all …]
|
| /Linux-v5.4/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
| D | dma.c | 213 struct device *dmadev; member 451 return dma_alloc_coherent(di->dmadev, size, pap, GFP_ATOMIC); in dma_alloc_consistent() 486 dma_free_coherent(di->dmadev, size, va, *descpa); in dma_ringalloc() 590 di->dmadev = core->dma_dev; in dma_attach() 755 dma_free_coherent(di->dmadev, di->txdalloc, in dma_detach() 759 dma_free_coherent(di->dmadev, di->rxdalloc, in dma_detach() 897 dma_unmap_single(di->dmadev, pa, di->rxbufsize, DMA_FROM_DEVICE); in dma64_getnextrxp() 1080 pa = dma_map_single(di->dmadev, p->data, di->rxbufsize, in dma_rxfill() 1082 if (dma_mapping_error(di->dmadev, pa)) { in dma_rxfill() 1291 pa = dma_map_single(di->dmadev, data, len, DMA_TO_DEVICE); in dma_txenq() [all …]
|
| /Linux-v5.4/drivers/media/platform/ |
| D | m2m-deinterlace.c | 209 struct dma_device *dmadev = chan->device; in deinterlace_issue_dma() local 328 tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags); in deinterlace_issue_dma()
|