Lines Matching refs:dmac

224 	struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);  in rsnd_dmaen_attach()  local
252 dmac->dmaen_num++; in rsnd_dmaen_attach()
366 #define rsnd_dmapp_addr(dmac, dma, reg) \ argument
367 (dmac->ppbase + 0x20 + reg + \
373 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_write() local
376 dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data); in rsnd_dmapp_write()
378 iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_write()
385 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_read() local
387 return ioread32(rsnd_dmapp_addr(dmac, dma, reg)); in rsnd_dmapp_read()
394 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_bset() local
395 void __iomem *addr = rsnd_dmapp_addr(dmac, dma, reg); in rsnd_dmapp_bset()
442 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_attach() local
445 dmapp->dmapp_id = dmac->dmapp_num; in rsnd_dmapp_attach()
448 dmac->dmapp_num++; in rsnd_dmapp_attach()
462 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dmapp_debug_info() local
466 rsnd_debugfs_reg_show(m, dmac->ppres, dmac->ppbase, in rsnd_dmapp_debug_info()
760 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv); in rsnd_dma_alloc() local
776 if (!dmac) in rsnd_dma_alloc()
785 dma_id = dmac->dmapp_num; in rsnd_dma_alloc()
790 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
798 dma_id = dmac->dmaen_num; in rsnd_dma_alloc()
847 struct rsnd_dma_ctrl *dmac; in rsnd_dma_probe() local
859 dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL); in rsnd_dma_probe()
860 if (!dmac) { in rsnd_dma_probe()
875 dmac->dmapp_num = 0; in rsnd_dma_probe()
876 dmac->ppres = res->start; in rsnd_dma_probe()
877 dmac->ppbase = devm_ioremap_resource(dev, res); in rsnd_dma_probe()
878 if (IS_ERR(dmac->ppbase)) in rsnd_dma_probe()
879 return PTR_ERR(dmac->ppbase); in rsnd_dma_probe()
881 priv->dma = dmac; in rsnd_dma_probe()