Lines Matching refs:buf_pos
215 unsigned int stride, buf_pos; in tm6000_fillbuf() local
232 buf_pos = chip->buf_pos; in tm6000_fillbuf()
247 runtime->dma_area, buf_pos, in tm6000_fillbuf()
250 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf()
251 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf()
252 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf()
256 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf()
261 chip->buf_pos += length; in tm6000_fillbuf()
262 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf()
263 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf()
320 chip->buf_pos = 0; in snd_tm6000_prepare()
377 return chip->buf_pos; in snd_tm6000_pointer()