Lines Matching refs:bufptr
601 int i, len, bufptr;
629 bufptr = 0;
632 if ((ptr[bufptr] & 0xf) != devpriv->act_chanlist[devpriv->act_chanlist_pos]) { /* dropout! */
635 (ptr[bufptr] & 0xf),
644 comedi_buf_put(s->async, ptr[bufptr++] >> 4); /* get one sample */
681 unsigned int top1, top2, i, bufptr;
723 bufptr = devpriv->last_top_dma;
726 if ((dmabuf[bufptr] & 0xf) != devpriv->act_chanlist[devpriv->act_chanlist_pos]) { /* dropout! */
729 (dmabuf[bufptr] & 0xf),
739 comedi_buf_put(s->async, dmabuf[bufptr++] >> 4); /* get one sample */
740 bufptr &= (devpriv->dmasamplsize - 1);
763 devpriv->last_top_dma = bufptr;
764 bufptr--;
765 bufptr &= (devpriv->dmasamplsize - 1);
766 dmabuf[bufptr] = MAGIC_DMA_WORD;