Lines Matching refs:buf_pos
207 unsigned int stride, buf_pos; in tm6000_fillbuf() local
224 buf_pos = chip->buf_pos; in tm6000_fillbuf()
239 runtime->dma_area, buf_pos, in tm6000_fillbuf()
242 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf()
243 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf()
244 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf()
248 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf()
253 chip->buf_pos += length; in tm6000_fillbuf()
254 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf()
255 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
312 chip->buf_pos = 0; in snd_tm6000_prepare()
369 return chip->buf_pos; in snd_tm6000_pointer()