Lines Matching refs:edma
47 struct edma_regs *regs = &fsl_chan->edma->regs; in fsl_edma_enable_request()
50 if (fsl_chan->edma->drvdata->version == v1) { in fsl_edma_enable_request()
51 edma_writeb(fsl_chan->edma, EDMA_SEEI_SEEI(ch), regs->seei); in fsl_edma_enable_request()
52 edma_writeb(fsl_chan->edma, ch, regs->serq); in fsl_edma_enable_request()
64 struct edma_regs *regs = &fsl_chan->edma->regs; in fsl_edma_disable_request()
67 if (fsl_chan->edma->drvdata->version == v1) { in fsl_edma_disable_request()
68 edma_writeb(fsl_chan->edma, ch, regs->cerq); in fsl_edma_disable_request()
69 edma_writeb(fsl_chan->edma, EDMA_CEEI_CEEI(ch), regs->ceei); in fsl_edma_disable_request()
112 u32 dmamux_nr = fsl_chan->edma->drvdata->dmamuxs; in fsl_edma_chan_mux()
114 chans_per_mux = fsl_chan->edma->n_chans / dmamux_nr; in fsl_edma_chan_mux()
116 muxaddr = fsl_chan->edma->muxbase[ch / chans_per_mux]; in fsl_edma_chan_mux()
119 if (fsl_chan->edma->drvdata->version == v3) in fsl_edma_chan_mux()
269 struct edma_regs *regs = &fsl_chan->edma->regs; in fsl_edma_desc_residue()
285 cur_addr = edma_readl(fsl_chan->edma, ®s->tcd[ch].saddr); in fsl_edma_desc_residue()
287 cur_addr = edma_readl(fsl_chan->edma, ®s->tcd[ch].daddr); in fsl_edma_desc_residue()
343 struct fsl_edma_engine *edma = fsl_chan->edma; in fsl_edma_set_tcd_regs() local
344 struct edma_regs *regs = &fsl_chan->edma->regs; in fsl_edma_set_tcd_regs()
352 edma_writew(edma, 0, ®s->tcd[ch].csr); in fsl_edma_set_tcd_regs()
353 edma_writel(edma, le32_to_cpu(tcd->saddr), ®s->tcd[ch].saddr); in fsl_edma_set_tcd_regs()
354 edma_writel(edma, le32_to_cpu(tcd->daddr), ®s->tcd[ch].daddr); in fsl_edma_set_tcd_regs()
356 edma_writew(edma, le16_to_cpu(tcd->attr), ®s->tcd[ch].attr); in fsl_edma_set_tcd_regs()
357 edma_writew(edma, le16_to_cpu(tcd->soff), ®s->tcd[ch].soff); in fsl_edma_set_tcd_regs()
359 edma_writel(edma, le32_to_cpu(tcd->nbytes), ®s->tcd[ch].nbytes); in fsl_edma_set_tcd_regs()
360 edma_writel(edma, le32_to_cpu(tcd->slast), ®s->tcd[ch].slast); in fsl_edma_set_tcd_regs()
362 edma_writew(edma, le16_to_cpu(tcd->citer), ®s->tcd[ch].citer); in fsl_edma_set_tcd_regs()
363 edma_writew(edma, le16_to_cpu(tcd->biter), ®s->tcd[ch].biter); in fsl_edma_set_tcd_regs()
364 edma_writew(edma, le16_to_cpu(tcd->doff), ®s->tcd[ch].doff); in fsl_edma_set_tcd_regs()
366 edma_writel(edma, le32_to_cpu(tcd->dlast_sga), in fsl_edma_set_tcd_regs()
369 edma_writew(edma, le16_to_cpu(tcd->csr), ®s->tcd[ch].csr); in fsl_edma_set_tcd_regs()
670 void fsl_edma_setup_regs(struct fsl_edma_engine *edma) in fsl_edma_setup_regs() argument
672 edma->regs.cr = edma->membase + EDMA_CR; in fsl_edma_setup_regs()
673 edma->regs.es = edma->membase + EDMA_ES; in fsl_edma_setup_regs()
674 edma->regs.erql = edma->membase + EDMA_ERQ; in fsl_edma_setup_regs()
675 edma->regs.eeil = edma->membase + EDMA_EEI; in fsl_edma_setup_regs()
677 edma->regs.serq = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
679 edma->regs.cerq = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
681 edma->regs.seei = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
683 edma->regs.ceei = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
685 edma->regs.cint = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
687 edma->regs.cerr = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
689 edma->regs.ssrt = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
691 edma->regs.cdne = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
693 edma->regs.intl = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
695 edma->regs.errl = edma->membase + ((edma->drvdata->version == v2) ? in fsl_edma_setup_regs()
698 if (edma->drvdata->version == v2) { in fsl_edma_setup_regs()
699 edma->regs.erqh = edma->membase + EDMA64_ERQH; in fsl_edma_setup_regs()
700 edma->regs.eeih = edma->membase + EDMA64_EEIH; in fsl_edma_setup_regs()
701 edma->regs.errh = edma->membase + EDMA64_ERRH; in fsl_edma_setup_regs()
702 edma->regs.inth = edma->membase + EDMA64_INTH; in fsl_edma_setup_regs()
705 edma->regs.tcd = edma->membase + EDMA_TCD; in fsl_edma_setup_regs()