Lines Matching refs:dma_pos
1668 static int sb16WriteAudio(PSB16STATE pThis, int nchan, uint32_t dma_pos,
1685 cbToRead = RT_MIN(dma_len - dma_pos, cbToWrite);
1690 cbRead = DMA_read_memory (nchan, tmpbuf, dma_pos, cbToRead);
1692 int rc = PDMDevHlpDMAReadMemory(pThis->pDevIns, nchan, tmpbuf, dma_pos, cbToRead, &cbRead);
1719 dma_pos = (dma_pos + cbWrittenMin) % dma_len;
1730 static int sb16DMARead(void *opaque, int nchan, int dma_pos, int dma_len)
1732 static DECLCALLBACK(uint32_t) sb16DMARead(PPDMDEVINS pDevIns, void *opaque, unsigned nchan, uint32_t dma_pos, uint32_t dma_len)
1740 LogFlowFunc(("invalid block size=%d nchan=%d dma_pos=%d dma_len=%d\n",
1741 pThis->block_size, nchan, dma_pos, dma_len));
1742 return dma_pos;
1770 return dma_pos;
1777 return dma_pos;
1787 LogFlowFunc(("pos:%06d %d till:%d len:%d\n", dma_pos, free, till, dma_len));
1803 written = sb16WriteAudio(pThis, nchan, dma_pos, dma_len, copy);
1804 dma_pos = (dma_pos + written) % dma_len;
1824 dma_pos, free, dma_len, pThis->left_till_irq, copy, written,
1831 return dma_pos;