Lines Matching refs:buf_pos
171 unsigned int stride, buf_pos; in tm6000_fillbuf() local
188 buf_pos = chip->buf_pos; in tm6000_fillbuf()
203 runtime->dma_area, buf_pos, in tm6000_fillbuf()
206 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf()
207 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf()
208 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf()
212 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf()
217 chip->buf_pos += length; in tm6000_fillbuf()
218 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf()
219 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
242 chip->buf_pos = 0; in snd_tm6000_prepare()
299 return chip->buf_pos; in snd_tm6000_pointer()