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
735 * -*-> Audio DMAC in rsnd_dma_of_path()
736 * -o-> Audio DMAC peri peri in rsnd_dma_of_path()
789 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dma_alloc() local
805 if (!dmac) in rsnd_dma_alloc()
814 dma_id = dmac->dmapp_num; in rsnd_dma_alloc()
819 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
827 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
876 struct rsnd_dma_ctrl *dmac; in rsnd_dma_probe() local
889 dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL); in rsnd_dma_probe()
890 if (!dmac || !res) { in rsnd_dma_probe()
895 dmac->dmapp_num = 0; in rsnd_dma_probe()
896 dmac->ppres = res->start; in rsnd_dma_probe()
897 dmac->ppbase = devm_ioremap_resource(dev, res); in rsnd_dma_probe()
898 if (IS_ERR(dmac->ppbase)) in rsnd_dma_probe()
899 return PTR_ERR(dmac->ppbase); in rsnd_dma_probe()
901 priv->dma = dmac; in rsnd_dma_probe()