Lines Matching refs:dma_len
488 static void dma_cmd8(PSB16STATE pThis, int mask, int dma_len)
507 if (dma_len != -1)
509 pThis->block_size = dma_len << pThis->fmt_stereo;
544 static void dma_cmd(PSB16STATE pThis, uint8_t cmd, uint8_t d0, int dma_len)
575 pThis->block_size = dma_len + 1;
1669 uint32_t dma_len, int len)
1685 cbToRead = RT_MIN(dma_len - dma_pos, cbToWrite);
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));
1764 free = dma_len;
1769 if ((free <= 0) || !dma_len)
1776 if ((free <= 0) || !dma_len)
1780 free = dma_len;
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,