Lines Matching refs:dmac
273 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
301 dmac->dmaen_num++;
427 #define rsnd_dmapp_addr(dmac, dma, reg) \
428 (dmac->ppbase + 0x20 + reg + \
434 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
437 dev_dbg(dev, "w 0x%px : %08x\n", rsnd_dmapp_addr(dmac, dma, reg), data);
439 iowrite32(data, rsnd_dmapp_addr(dmac, dma, reg));
446 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
448 return ioread32(rsnd_dmapp_addr(dmac, dma, reg));
455 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
456 void __iomem *addr = rsnd_dmapp_addr(dmac, dma, reg);
503 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
506 dmapp->dmapp_id = dmac->dmapp_num;
509 dmac->dmapp_num++;
523 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
527 rsnd_debugfs_reg_show(m, dmac->ppres, dmac->ppbase,
821 struct rsnd_dma_ctrl *dmac = rsnd_priv_to_dmac(priv);
837 if (!dmac)
846 dma_id = dmac->dmapp_num;
851 dma_id = dmac->dmaen_num;
859 dma_id = dmac->dmaen_num;
908 struct rsnd_dma_ctrl *dmac;
920 dmac = devm_kzalloc(dev, sizeof(*dmac), GFP_KERNEL);
921 if (!dmac) {
936 dmac->dmapp_num = 0;
937 dmac->ppres = res->start;
938 dmac->ppbase = devm_ioremap_resource(dev, res);
939 if (IS_ERR(dmac->ppbase))
940 return PTR_ERR(dmac->ppbase);
942 priv->dma = dmac;