Lines Matching full:dmac
3 // Renesas R-Car Audio DMAC support
13 * Audio DMAC peri peri register
67 * Audio DMAC
174 * in case of monaural data writing or reading through Audio-DMAC in rsnd_dmaen_start()
273 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmaen_attach() local
301 dmac->dmaen_num++; in rsnd_dmaen_attach()
338 * Audio DMAC peri peri
427 #define rsnd_dmapp_addr(dmac, dma, reg) \ argument
428 (dmac->ppbase + 0x20 + reg + \
434 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_write() local
437 dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); in rsnd_dmapp_write()
439 iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_write()
446 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_read() local
448 return ioread32(rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_read()
455 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_bset() local
456 void __iomem *addr = rsnd_dmapp_addr(dmac, dma, reg); in rsnd_dmapp_bset()
503 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_attach() local
506 dmapp->dmapp_id = dmac->dmapp_num; in rsnd_dmapp_attach()
509 dmac->dmapp_num++; in rsnd_dmapp_attach()
523 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_debug_info() local
527 rsnd_debugfs_reg_show(m, dmac->ppres, dmac->ppbase, in rsnd_dmapp_debug_info()
545 * Common DMAC Interface
551 * RSND_xxx_I_N for Audio DMAC input
552 * RSND_xxx_O_N for Audio DMAC output
553 * RSND_xxx_I_P for Audio DMAC peri peri input
554 * RSND_xxx_O_P for Audio DMAC peri peri output
557 * mod / DMAC in / DMAC out / DMAC PP in / DMAC pp out
660 * mod / SYS-DMAC in / SYS-DMAC out
767 * -*-> Audio DMAC in rsnd_dma_of_path()
768 * -o-> Audio DMAC peri peri in rsnd_dma_of_path()
821 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dma_alloc() local
837 if (!dmac) in rsnd_dma_alloc()
846 dma_id = dmac->dmapp_num; in rsnd_dma_alloc()
851 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
859 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
908 struct rsnd_dma_ctrl *dmac; in rsnd_dma_probe() local
920 dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL); in rsnd_dma_probe()
921 if (!dmac) { in rsnd_dma_probe()
936 dmac->dmapp_num = 0; in rsnd_dma_probe()
937 dmac->ppres = res->start; in rsnd_dma_probe()
938 dmac->ppbase = devm_ioremap_resource(dev, res); in rsnd_dma_probe()
939 if (IS_ERR(dmac->ppbase)) in rsnd_dma_probe()
940 return PTR_ERR(dmac->ppbase); in rsnd_dma_probe()
942 priv->dma = dmac; in rsnd_dma_probe()