Lines Matching refs:adbdma
1082 static void vortex_adbdma_setfirstbuffer(vortex_t * vortex, int adbdma) in vortex_adbdma_setfirstbuffer() argument
1084 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setfirstbuffer()
1086 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_setfirstbuffer()
1090 static void vortex_adbdma_setstartbuffer(vortex_t * vortex, int adbdma, int sb) in vortex_adbdma_setstartbuffer() argument
1092 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setstartbuffer()
1094 hwwrite(vortex->mmio, VORTEX_ADBDMA_START + (adbdma << 2), in vortex_adbdma_setstartbuffer()
1095 sb << ((0xf - (adbdma & 0xf)) * 2)); in vortex_adbdma_setstartbuffer()
1100 vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, in vortex_adbdma_setbuffers() argument
1103 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setbuffers()
1116 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0xc, in vortex_adbdma_setbuffers()
1123 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x8, in vortex_adbdma_setbuffers()
1129 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x4, in vortex_adbdma_setbuffers()
1135 VORTEX_ADBDMA_BUFBASE + (adbdma << 4), in vortex_adbdma_setbuffers()
1143 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG0 + (adbdma << 3), dma->cfg0); in vortex_adbdma_setbuffers()
1144 hwwrite(vortex->mmio, VORTEX_ADBDMA_BUFCFG1 + (adbdma << 3), dma->cfg1); in vortex_adbdma_setbuffers()
1146 vortex_adbdma_setfirstbuffer(vortex, adbdma); in vortex_adbdma_setbuffers()
1147 vortex_adbdma_setstartbuffer(vortex, adbdma, 0); in vortex_adbdma_setbuffers()
1151 vortex_adbdma_setmode(vortex_t * vortex, int adbdma, int ie, int dir, in vortex_adbdma_setmode() argument
1154 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_setmode()
1168 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_setmode()
1170 hwread(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2)); in vortex_adbdma_setmode()
1173 static int vortex_adbdma_bufshift(vortex_t * vortex, int adbdma) in vortex_adbdma_bufshift() argument
1175 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_bufshift()
1179 (hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)) & in vortex_adbdma_bufshift()
1204 VORTEX_ADBDMA_BUFBASE + (((adbdma << 2) + pp) << 2), in vortex_adbdma_bufshift()
1209 (((adbdma << 2) + pp) << 2)); in vortex_adbdma_bufshift()
1219 adbdma, dma->period_virt, dma->period_real, delta); in vortex_adbdma_bufshift()
1225 static void vortex_adbdma_resetup(vortex_t *vortex, int adbdma) { in vortex_adbdma_resetup() argument
1226 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_resetup()
1246 VORTEX_ADBDMA_BUFBASE + (((adbdma << 2) + pp) << 2), in vortex_adbdma_resetup()
1250 hwread(vortex->mmio, VORTEX_ADBDMA_BUFBASE + (((adbdma << 2)+pp) << 2)); in vortex_adbdma_resetup()
1254 static inline int vortex_adbdma_getlinearpos(vortex_t * vortex, int adbdma) in vortex_adbdma_getlinearpos() argument
1256 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_getlinearpos()
1259 temp = hwread(vortex->mmio, VORTEX_ADBDMA_STAT + (adbdma << 2)); in vortex_adbdma_getlinearpos()
1272 static void vortex_adbdma_startfifo(vortex_t * vortex, int adbdma) in vortex_adbdma_startfifo() argument
1275 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_startfifo()
1279 vortex_fifo_setadbvalid(vortex, adbdma, in vortex_adbdma_startfifo()
1284 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_startfifo()
1286 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_startfifo()
1291 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_startfifo()
1299 static void vortex_adbdma_resumefifo(vortex_t * vortex, int adbdma) in vortex_adbdma_resumefifo() argument
1301 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_resumefifo()
1306 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_resumefifo()
1308 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_resumefifo()
1313 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_resumefifo()
1321 static void vortex_adbdma_pausefifo(vortex_t * vortex, int adbdma) in vortex_adbdma_pausefifo() argument
1323 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_pausefifo()
1328 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_pausefifo()
1332 hwwrite(vortex->mmio, VORTEX_ADBDMA_CTRL + (adbdma << 2), in vortex_adbdma_pausefifo()
1334 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_pausefifo()
1341 static void vortex_adbdma_stopfifo(vortex_t * vortex, int adbdma) in vortex_adbdma_stopfifo() argument
1343 stream_t *dma = &vortex->dma_adb[adbdma]; in vortex_adbdma_stopfifo()
1347 vortex_fifo_setadbctrl(vortex, adbdma, dma->dma_unknown, in vortex_adbdma_stopfifo()
1837 unsigned char adbdma, unsigned char src) in vortex_connection_adbdma_src() argument
1839 vortex_route(vortex, en, ch, ADB_DMA(adbdma), ADB_SRCIN(src)); in vortex_connection_adbdma_src()
1874 unsigned char src, unsigned char adbdma) in vortex_connection_src_adbdma() argument
1876 vortex_route(vortex, en, ch, ADB_SRCOUT(src), ADB_DMA(adbdma)); in vortex_connection_src_adbdma()
1882 unsigned char src1, unsigned char adbdma) in vortex_connection_src_src_adbdma() argument
1886 ADB_DMA(adbdma)); in vortex_connection_src_src_adbdma()
1911 unsigned char adbdma, unsigned char src0,
1914 vortex_routes(vortex, en, channel, ADB_DMA(adbdma),
1922 unsigned char mix1, unsigned char adbdma)
1928 OFFSET_MIXOUT) & ADB_MASK) << ADB_SHIFT) | (adbdma & ADB_MASK);
1930 (((mix1 + OFFSET_MIXOUT) & ADB_MASK) << ADB_SHIFT) | ((adbdma +
2353 vortex_adb_setsrc(vortex_t * vortex, int adbdma, unsigned int rate, int dir) in vortex_adb_setsrc() argument
2355 stream_t *stream = &(vortex->dma_adb[adbdma]); in vortex_adb_setsrc()