Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/dma/qcom/
Dhidma.c77 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()
175 struct hidma_dev *dmadev = to_hidma_dev(ddev); in hidma_callback() local
194 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_callback()
195 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_callback()
199 static int hidma_chan_init(struct hidma_dev *dmadev, u32 dma_sig) in hidma_chan_init() argument
204 mchan = devm_kzalloc(dmadev->ddev.dev, sizeof(*mchan), GFP_KERNEL); in hidma_chan_init()
208 ddev = &dmadev->ddev; in hidma_chan_init()
[all …]
Dhidma_dbg.c96 struct hidma_dev *dmadev = mchan->dmadev; in hidma_chan_stats() local
98 pm_runtime_get_sync(dmadev->ddev.dev); in hidma_chan_stats()
103 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_stats()
107 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_stats()
111 hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); in hidma_chan_stats()
113 hidma_ll_devstats(s, mchan->dmadev->lldev); in hidma_chan_stats()
114 pm_runtime_mark_last_busy(dmadev->ddev.dev); in hidma_chan_stats()
115 pm_runtime_put_autosuspend(dmadev->ddev.dev); in hidma_chan_stats()
126 struct hidma_dev *dmadev = s->private; in hidma_dma_info() local
129 seq_printf(s, "nr_descriptors=%d\n", dmadev->nr_descriptors); in hidma_dma_info()
[all …]
Dhidma.h106 struct hidma_dev *dmadev; member
169 int hidma_debug_init(struct hidma_dev *dmadev);
170 void hidma_debug_uninit(struct hidma_dev *dmadev);
/Linux-v4.19/drivers/dma/
Ddma-jz4740.c149 static inline uint32_t jz4740_dma_read(struct jz4740_dma_dev *dmadev, in jz4740_dma_read() argument
152 return readl(dmadev->base + reg); in jz4740_dma_read()
155 static inline void jz4740_dma_write(struct jz4740_dma_dev *dmadev, in jz4740_dma_write() argument
158 writel(val, dmadev->base + reg); in jz4740_dma_write()
161 static inline void jz4740_dma_write_mask(struct jz4740_dma_dev *dmadev, in jz4740_dma_write_mask() argument
166 tmp = jz4740_dma_read(dmadev, reg); in jz4740_dma_write_mask()
169 jz4740_dma_write(dmadev, reg, tmp); in jz4740_dma_write_mask()
210 struct jz4740_dma_dev *dmadev = jz4740_dma_chan_get_dev(chan); in jz4740_dma_slave_config() local
260 jz4740_dma_write(dmadev, JZ_REG_DMA_CMD(chan->id), cmd); in jz4740_dma_slave_config()
261 jz4740_dma_write(dmadev, JZ_REG_DMA_STATUS_CTRL(chan->id), 0); in jz4740_dma_slave_config()
[all …]
Dstm32-mdma.c321 static u32 stm32_mdma_read(struct stm32_mdma_device *dmadev, u32 reg) in stm32_mdma_read() argument
323 return readl_relaxed(dmadev->base + reg); in stm32_mdma_read()
326 static void stm32_mdma_write(struct stm32_mdma_device *dmadev, u32 reg, u32 val) in stm32_mdma_write() argument
328 writel_relaxed(val, dmadev->base + reg); in stm32_mdma_write()
331 static void stm32_mdma_set_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_set_bits() argument
334 void __iomem *addr = dmadev->base + reg; in stm32_mdma_set_bits()
339 static void stm32_mdma_clr_bits(struct stm32_mdma_device *dmadev, u32 reg, in stm32_mdma_clr_bits() argument
342 void __iomem *addr = dmadev->base + reg; in stm32_mdma_clr_bits()
439 struct stm32_mdma_device *dmadev = stm32_mdma_get_dev(chan); in stm32_mdma_disable_chan() local
447 stm32_mdma_clr_bits(dmadev, reg, STM32_MDMA_CCR_IRQ_MASK); in stm32_mdma_disable_chan()
[all …]
Dstm32-dma.c236 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()
394 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_status() local
406 dma_isr = stm32_dma_read(dmadev, STM32_DMA_HISR); in stm32_dma_irq_status()
408 dma_isr = stm32_dma_read(dmadev, STM32_DMA_LISR); in stm32_dma_irq_status()
417 struct stm32_dma_device *dmadev = stm32_dma_get_dev(chan); in stm32_dma_irq_clear() local
431 stm32_dma_write(dmadev, STM32_DMA_HIFCR, dma_ifcr); in stm32_dma_irq_clear()
433 stm32_dma_write(dmadev, STM32_DMA_LIFCR, dma_ifcr); in stm32_dma_irq_clear()
[all …]
Dsa11x0-dma.c135 static struct sa11x0_dma_dev *to_sa11x0_dma(struct dma_device *dmadev) in to_sa11x0_dma() argument
137 return container_of(dmadev, struct sa11x0_dma_dev, slave); in to_sa11x0_dma()
833 static int sa11x0_dma_init_dmadev(struct dma_device *dmadev, in sa11x0_dma_init_dmadev() argument
838 INIT_LIST_HEAD(&dmadev->channels); in sa11x0_dma_init_dmadev()
839 dmadev->dev = dev; in sa11x0_dma_init_dmadev()
840 dmadev->device_free_chan_resources = sa11x0_dma_free_chan_resources; in sa11x0_dma_init_dmadev()
841 dmadev->device_config = sa11x0_dma_device_config; in sa11x0_dma_init_dmadev()
842 dmadev->device_pause = sa11x0_dma_device_pause; in sa11x0_dma_init_dmadev()
843 dmadev->device_resume = sa11x0_dma_device_resume; in sa11x0_dma_init_dmadev()
844 dmadev->device_terminate_all = sa11x0_dma_device_terminate_all; in sa11x0_dma_init_dmadev()
[all …]
Dvirt-dma.c132 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev) in vchan_init() argument
144 vc->chan.device = dmadev; in vchan_init()
145 list_add_tail(&vc->chan.device_node, &dmadev->channels); in vchan_init()
Dmv_xor_v2.c169 struct dma_device dmadev; member
319 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_tx_submit()
394 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_memcpy()
450 dev_dbg(xor_dev->dmadev.dev, in mv_xor_v2_prep_dma_xor()
569 dev_dbg(xor_dev->dmadev.dev, "%s %d\n", __func__, __LINE__); in mv_xor_v2_tasklet()
839 dma_dev = &xor_dev->dmadev; in mv_xor_v2_probe()
894 dma_async_device_unregister(&xor_dev->dmadev); in mv_xor_v2_remove()
Ds3c24xx-dma.c1093 struct dma_device *dmadev, unsigned int channels, bool slave) in s3c24xx_dma_init_virtual_channels() argument
1098 INIT_LIST_HEAD(&dmadev->channels); in s3c24xx_dma_init_virtual_channels()
1106 chan = devm_kzalloc(dmadev->dev, sizeof(*chan), GFP_KERNEL); in s3c24xx_dma_init_virtual_channels()
1124 dev_dbg(dmadev->dev, in s3c24xx_dma_init_virtual_channels()
1129 vchan_init(&chan->vc, dmadev); in s3c24xx_dma_init_virtual_channels()
1131 dev_info(dmadev->dev, "initialized %d virtual %s channels\n", in s3c24xx_dma_init_virtual_channels()
1136 static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) in s3c24xx_dma_free_virtual_channels() argument
1142 next, &dmadev->channels, vc.chan.device_node) { in s3c24xx_dma_free_virtual_channels()
Daltera-msgdma.c183 struct dma_device dmadev; member
846 dma_dev = &mdev->dmadev; in msgdma_probe()
913 dma_async_device_unregister(&mdev->dmadev); in msgdma_remove()
Dvirt-dma.h47 void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
Dmv_xor.h126 struct dma_device dmadev; member
Dmv_xor.c54 ((chan)->dmadev.dev)
1020 struct device *dev = mv_chan->dmadev.dev; in mv_xor_channel_remove()
1022 dma_async_device_unregister(&mv_chan->dmadev); in mv_xor_channel_remove()
1031 list_for_each_entry_safe(chan, _chan, &mv_chan->dmadev.channels, in mv_xor_channel_remove()
1061 dma_dev = &mv_chan->dmadev; in mv_xor_channel_add()
Dpxa_dma.c144 #define to_pxad_dev(dmadev) \ argument
145 container_of(dmadev, struct pxad_device, slave)
1271 static void pxad_free_channels(struct dma_device *dmadev) in pxad_free_channels() argument
1275 list_for_each_entry_safe(c, cn, &dmadev->channels, in pxad_free_channels()
Damba-pl08x.c2372 struct dma_device *dmadev, unsigned int channels, bool slave) in pl08x_dma_init_virtual_channels() argument
2377 INIT_LIST_HEAD(&dmadev->channels); in pl08x_dma_init_virtual_channels()
2422 vchan_init(&chan->vc, dmadev); in pl08x_dma_init_virtual_channels()
2429 static void pl08x_free_virtual_channels(struct dma_device *dmadev) in pl08x_free_virtual_channels() argument
2435 next, &dmadev->channels, vc.chan.device_node) { in pl08x_free_virtual_channels()
Dzx_dma.c134 #define to_zx_dma(dmadev) container_of(dmadev, struct zx_dma_dev, slave) argument
Dmmp_pdma.c140 #define to_mmp_pdma_dev(dmadev) \ argument
141 container_of(dmadev, struct mmp_pdma_device, device)
Dk3dma.c119 #define to_k3_dma(dmadev) container_of(dmadev, struct k3_dma_dev, slave) argument
Dfsl-edma.c998 static void fsl_edma_cleanup_vchan(struct dma_device *dmadev) in fsl_edma_cleanup_vchan() argument
1003 &dmadev->channels, vchan.chan.device_node) { in fsl_edma_cleanup_vchan()
/Linux-v4.19/drivers/spi/
Dspi-mem.c36 struct device *dmadev; in spi_controller_dma_map_mem_op_data() local
42 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_map_mem_op_data()
44 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_map_mem_op_data()
46 dmadev = ctlr->dev.parent; in spi_controller_dma_map_mem_op_data()
48 if (!dmadev) in spi_controller_dma_map_mem_op_data()
51 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
82 struct device *dmadev; in spi_controller_dma_unmap_mem_op_data() local
88 dmadev = ctlr->dma_tx->device->dev; in spi_controller_dma_unmap_mem_op_data()
90 dmadev = ctlr->dma_rx->device->dev; in spi_controller_dma_unmap_mem_op_data()
92 dmadev = ctlr->dev.parent; in spi_controller_dma_unmap_mem_op_data()
[all …]
/Linux-v4.19/drivers/net/ethernet/amazon/ena/
Dena_com.c160 aenq->entries = dma_zalloc_coherent(dev->dmadev, size, &aenq->dma_addr, in ena_com_admin_init_aenq()
345 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
346 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
348 dma_zalloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
351 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
354 dma_zalloc_coherent(ena_dev->dmadev, size, in ena_com_init_io_sq()
359 dev_node = dev_to_node(ena_dev->dmadev); in ena_com_init_io_sq()
360 set_dev_node(ena_dev->dmadev, ctx->numa_node); in ena_com_init_io_sq()
362 devm_kzalloc(ena_dev->dmadev, size, GFP_KERNEL); in ena_com_init_io_sq()
363 set_dev_node(ena_dev->dmadev, dev_node); in ena_com_init_io_sq()
[all …]
Dena_com.h319 void *dmadev; member
/Linux-v4.19/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c213 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-v4.19/drivers/media/platform/
Dm2m-deinterlace.c216 struct dma_device *dmadev = chan->device; in deinterlace_issue_dma() local
335 tx = dmadev->device_prep_interleaved_dma(chan, ctx->xt, flags); in deinterlace_issue_dma()

12