Lines Matching refs:ringsz
189 #define SERDMA_NEXTBUF(d,f) (((d)->f+1) % (d)->ringsz)
212 unsigned ringsz;
613 dma->ringsz = DMA_DESCR;
614 dma->descrtab = kzalloc(dma->ringsz * sizeof(serdma_descr_t), GFP_KERNEL);
619 dma->descrtab_end = dma->descrtab + dma->ringsz;
746 d->hwptr = d->swptr = (d->swptr + 1) % d->ringsz;
930 diff2 = diff = (d->ringsz + hwptr - d->hwptr) % d->ringsz;
983 d->swptr = (d->swptr + diff) % d->ringsz;
1000 diff2 = diff = (hwptr + d->ringsz - d->hwptr) % d->ringsz;
1067 diff = (d->ringsz + hwptr - d->hwptr) % d->ringsz;
1094 d->ringsz));
1095 memset(d->dma_buf, 0, d->ringsz * FRAME_BYTES);
1860 swptr = (swptr + (cnt/FRAME_SAMPLE_BYTES)) % d->ringsz;