• Home
  • Raw
  • Download

Lines Matching refs:edma

150 	struct fsl_edma_engine		*edma;  member
182 static u16 edma_readw(struct fsl_edma_engine *edma, void __iomem *addr) in edma_readw() argument
184 if (edma->big_endian) in edma_readw()
190 static u32 edma_readl(struct fsl_edma_engine *edma, void __iomem *addr) in edma_readl() argument
192 if (edma->big_endian) in edma_readl()
198 static void edma_writeb(struct fsl_edma_engine *edma, u8 val, void __iomem *addr) in edma_writeb() argument
203 static void edma_writew(struct fsl_edma_engine *edma, u16 val, void __iomem *addr) in edma_writew() argument
205 if (edma->big_endian) in edma_writew()
211 static void edma_writel(struct fsl_edma_engine *edma, u32 val, void __iomem *addr) in edma_writel() argument
213 if (edma->big_endian) in edma_writel()
231 void __iomem *addr = fsl_chan->edma->membase; in fsl_edma_enable_request()
234 edma_writeb(fsl_chan->edma, EDMA_SEEI_SEEI(ch), addr + EDMA_SEEI); in fsl_edma_enable_request()
235 edma_writeb(fsl_chan->edma, ch, addr + EDMA_SERQ); in fsl_edma_enable_request()
240 void __iomem *addr = fsl_chan->edma->membase; in fsl_edma_disable_request()
243 edma_writeb(fsl_chan->edma, ch, addr + EDMA_CERQ); in fsl_edma_disable_request()
244 edma_writeb(fsl_chan->edma, EDMA_CEEI_CEEI(ch), addr + EDMA_CEEI); in fsl_edma_disable_request()
254 chans_per_mux = fsl_chan->edma->n_chans / DMAMUX_NR; in fsl_edma_chan_mux()
256 muxaddr = fsl_chan->edma->muxbase[ch / chans_per_mux]; in fsl_edma_chan_mux()
259 edma_writeb(fsl_chan->edma, in fsl_edma_chan_mux()
263 edma_writeb(fsl_chan->edma, EDMAMUX_CHCFG_DIS, muxaddr + ch_off); in fsl_edma_chan_mux()
357 void __iomem *addr = fsl_chan->edma->membase; in fsl_edma_desc_residue()
366 len += edma_readl(fsl_chan->edma, &(edesc->tcd[i].vtcd->nbytes)) in fsl_edma_desc_residue()
367 * edma_readw(fsl_chan->edma, &(edesc->tcd[i].vtcd->biter)); in fsl_edma_desc_residue()
373 cur_addr = edma_readl(fsl_chan->edma, addr + EDMA_TCD_SADDR(ch)); in fsl_edma_desc_residue()
375 cur_addr = edma_readl(fsl_chan->edma, addr + EDMA_TCD_DADDR(ch)); in fsl_edma_desc_residue()
379 size = edma_readl(fsl_chan->edma, &(edesc->tcd[i].vtcd->nbytes)) in fsl_edma_desc_residue()
380 * edma_readw(fsl_chan->edma, &(edesc->tcd[i].vtcd->biter)); in fsl_edma_desc_residue()
382 dma_addr = edma_readl(fsl_chan->edma, in fsl_edma_desc_residue()
385 dma_addr = edma_readl(fsl_chan->edma, in fsl_edma_desc_residue()
432 void __iomem *addr = fsl_chan->edma->membase; in fsl_edma_set_tcd_params()
453 static void fill_tcd_params(struct fsl_edma_engine *edma, in fill_tcd_params() argument
466 edma_writel(edma, src, &(tcd->saddr)); in fill_tcd_params()
467 edma_writel(edma, dst, &(tcd->daddr)); in fill_tcd_params()
468 edma_writew(edma, attr, &(tcd->attr)); in fill_tcd_params()
469 edma_writew(edma, EDMA_TCD_SOFF_SOFF(soff), &(tcd->soff)); in fill_tcd_params()
470 edma_writel(edma, EDMA_TCD_NBYTES_NBYTES(nbytes), &(tcd->nbytes)); in fill_tcd_params()
471 edma_writel(edma, EDMA_TCD_SLAST_SLAST(slast), &(tcd->slast)); in fill_tcd_params()
472 edma_writew(edma, EDMA_TCD_CITER_CITER(citer), &(tcd->citer)); in fill_tcd_params()
473 edma_writew(edma, EDMA_TCD_DOFF_DOFF(doff), &(tcd->doff)); in fill_tcd_params()
474 edma_writel(edma, EDMA_TCD_DLAST_SGA_DLAST_SGA(dlast_sga), &(tcd->dlast_sga)); in fill_tcd_params()
475 edma_writew(edma, EDMA_TCD_BITER_BITER(biter), &(tcd->biter)); in fill_tcd_params()
485 edma_writew(edma, csr, &(tcd->csr)); in fill_tcd_params()
561 fill_tcd_params(fsl_chan->edma, fsl_desc->tcd[i].vtcd, src_addr, in fsl_edma_prep_dma_cyclic()
610 fill_tcd_params(fsl_chan->edma, fsl_desc->tcd[i].vtcd, in fsl_edma_prep_slave_sg()
616 fill_tcd_params(fsl_chan->edma, fsl_desc->tcd[i].vtcd, in fsl_edma_prep_slave_sg()
896 fsl_chan->edma = fsl_edma; in fsl_edma_probe()