Lines Matching refs:wtdma
1358 static void vortex_wtdma_setfirstbuffer(vortex_t * vortex, int wtdma) in vortex_wtdma_setfirstbuffer() argument
1361 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_setfirstbuffer()
1363 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), dma->dma_ctrl); in vortex_wtdma_setfirstbuffer()
1366 static void vortex_wtdma_setstartbuffer(vortex_t * vortex, int wtdma, int sb) in vortex_wtdma_setstartbuffer() argument
1368 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_setstartbuffer()
1370 hwwrite(vortex->mmio, VORTEX_WTDMA_START + (wtdma << 2), in vortex_wtdma_setstartbuffer()
1371 sb << ((0xf - (wtdma & 0xf)) * 2)); in vortex_wtdma_setstartbuffer()
1376 vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma, in vortex_wtdma_setbuffers() argument
1379 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_setbuffers()
1391 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0xc, in vortex_wtdma_setbuffers()
1397 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x8, in vortex_wtdma_setbuffers()
1402 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x4, in vortex_wtdma_setbuffers()
1407 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4), in vortex_wtdma_setbuffers()
1411 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFCFG0 + (wtdma << 3), dma->cfg0); in vortex_wtdma_setbuffers()
1412 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFCFG1 + (wtdma << 3), dma->cfg1); in vortex_wtdma_setbuffers()
1414 vortex_wtdma_setfirstbuffer(vortex, wtdma); in vortex_wtdma_setbuffers()
1415 vortex_wtdma_setstartbuffer(vortex, wtdma, 0); in vortex_wtdma_setbuffers()
1419 vortex_wtdma_setmode(vortex_t * vortex, int wtdma, int ie, int fmt, int d, in vortex_wtdma_setmode() argument
1422 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_setmode()
1438 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), dma->dma_ctrl); in vortex_wtdma_setmode()
1441 static int vortex_wtdma_bufshift(vortex_t * vortex, int wtdma) in vortex_wtdma_bufshift() argument
1443 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_bufshift()
1447 (hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)) in vortex_wtdma_bufshift()
1472 (((wtdma << 2) + pp) << 2), in vortex_wtdma_bufshift()
1477 (((wtdma << 2) + pp) << 2)); in vortex_wtdma_bufshift()
1494 vortex_wtdma_getposition(vortex_t * vortex, int wtdma, int *subbuf, int *pos)
1497 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2));
1502 static int vortex_wtdma_getcursubuffer(vortex_t * vortex, int wtdma)
1504 return ((hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)) >>
1508 static inline int vortex_wtdma_getlinearpos(vortex_t * vortex, int wtdma) in vortex_wtdma_getlinearpos() argument
1510 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_getlinearpos()
1513 temp = hwread(vortex->mmio, VORTEX_WTDMA_STAT + (wtdma << 2)); in vortex_wtdma_getlinearpos()
1518 static void vortex_wtdma_startfifo(vortex_t * vortex, int wtdma) in vortex_wtdma_startfifo() argument
1520 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_startfifo()
1525 vortex_fifo_setwtvalid(vortex, wtdma, in vortex_wtdma_startfifo()
1530 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_startfifo()
1532 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_startfifo()
1537 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_startfifo()
1545 static void vortex_wtdma_resumefifo(vortex_t * vortex, int wtdma) in vortex_wtdma_resumefifo() argument
1547 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_resumefifo()
1552 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_resumefifo()
1554 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_resumefifo()
1559 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_resumefifo()
1567 static void vortex_wtdma_pausefifo(vortex_t * vortex, int wtdma) in vortex_wtdma_pausefifo() argument
1569 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_pausefifo()
1574 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_pausefifo()
1578 hwwrite(vortex->mmio, VORTEX_WTDMA_CTRL + (wtdma << 2), in vortex_wtdma_pausefifo()
1580 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_pausefifo()
1587 static void vortex_wtdma_stopfifo(vortex_t * vortex, int wtdma) in vortex_wtdma_stopfifo() argument
1589 stream_t *dma = &vortex->dma_wt[wtdma]; in vortex_wtdma_stopfifo()
1593 vortex_fifo_setwtctrl(vortex, wtdma, dma->dma_unknown, in vortex_wtdma_stopfifo()