Lines Matching refs:dma
177 int dma, ret; in frv_dma_open() local
184 for (dma = FRV_DMA_NCHANS - 1; dma >= 0; dma--) { in frv_dma_open()
185 channel = &frv_dma_channels[dma]; in frv_dma_open()
187 if (!test_bit(dma, &dmamask)) in frv_dma_open()
193 if (!frv_dma_channels[dma].flags) in frv_dma_open()
205 channel = &frv_dma_channels[dma]; in frv_dma_open()
227 ret = dma; in frv_dma_open()
239 void frv_dma_close(int dma) in frv_dma_close() argument
241 struct frv_dma_channel *channel = &frv_dma_channels[dma]; in frv_dma_close()
247 frv_dma_stop(dma); in frv_dma_close()
260 void frv_dma_config(int dma, unsigned long ccfr, unsigned long cctr, unsigned long apr) in frv_dma_config() argument
262 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_config()
277 void frv_dma_start(int dma, in frv_dma_start() argument
281 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_start()
292 frv_set_dma_inprogress(dma); in frv_dma_start()
302 void frv_dma_restart_circular(int dma, unsigned long six) in frv_dma_restart_circular() argument
304 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_restart_circular()
311 frv_set_dma_inprogress(dma); in frv_dma_restart_circular()
321 void frv_dma_stop(int dma) in frv_dma_stop() argument
323 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_stop()
332 frv_clear_dma_inprogress(dma); in frv_dma_stop()
341 int is_frv_dma_interrupting(int dma) in is_frv_dma_interrupting() argument
343 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in is_frv_dma_interrupting()
355 void frv_dma_dump(int dma) in frv_dma_dump() argument
357 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_dump()
365 printk("DMA[%d] cstr=%lx pix=%lx six=%lx bcl=%lx\n", dma, cstr, pix, six, bcl); in frv_dma_dump()
382 int dma; in frv_dma_pause_all() local
386 for (dma = FRV_DMA_NCHANS - 1; dma >= 0; dma--) { in frv_dma_pause_all()
387 channel = &frv_dma_channels[dma]; in frv_dma_pause_all()
404 frv_clear_dma_inprogress(dma); in frv_dma_pause_all()
423 int dma; in frv_dma_resume_all() local
425 for (dma = FRV_DMA_NCHANS - 1; dma >= 0; dma--) { in frv_dma_resume_all()
426 channel = &frv_dma_channels[dma]; in frv_dma_resume_all()
441 frv_set_dma_inprogress(dma); in frv_dma_resume_all()
454 void frv_dma_status_clear(int dma) in frv_dma_status_clear() argument
456 unsigned long ioaddr = frv_dma_channels[dma].ioaddr; in frv_dma_status_clear()