Lines Matching refs:buf_pos
172 unsigned int stride, buf_pos; in tm6000_fillbuf() local
189 buf_pos = chip->buf_pos; in tm6000_fillbuf()
204 runtime->dma_area, buf_pos, in tm6000_fillbuf()
207 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf()
208 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf()
209 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf()
213 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf()
218 chip->buf_pos += length; in tm6000_fillbuf()
219 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf()
220 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
243 chip->buf_pos = 0; in snd_tm6000_prepare()
300 return chip->buf_pos; in snd_tm6000_pointer()