Lines Matching refs:dmaptr
85 unsigned int dmaptr, sz, frg, offs; in dma_ptr() local
87 dmaptr = get_dma_residue(dmanr); in dma_ptr()
90 if (dmaptr == 0 || dmaptr > sz) in dma_ptr()
91 dmaptr = sz; in dma_ptr()
92 dmaptr--; in dma_ptr()
93 frg = dmaptr / sm->dma.ofragsz; in dma_ptr()
94 offs = (dmaptr % sm->dma.ofragsz) + 1; in dma_ptr()
105 if (dmaptr == 0 || dmaptr > sz) in dma_ptr()
106 dmaptr = sz; in dma_ptr()
107 dmaptr--; in dma_ptr()
108 frg = dmaptr / sm->dma.ifragsz; in dma_ptr()
109 offs = (dmaptr % sm->dma.ifragsz) + 1; in dma_ptr()