Lines Matching refs:buf_pos
100 size_t buf_pos; // position in the DMA buffer member
145 v_iter->buf_pos += by; in inc_buf_pos()
146 if (v_iter->buf_pos >= bytes) in inc_buf_pos()
147 v_iter->buf_pos %= bytes; in inc_buf_pos()
158 return v_iter->buf_pos / channels + v_iter->chan_block * chan_num; in buf_pos_n()
178 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i()
267 runtime->dma_area[v_iter->buf_pos] = patt_bufs[ch].buf[pos_pattern]; in fill_block_pattern_i()
286 size_t bytes_remain = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_n()
307 size_t in_cur_block = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_i()
310 get_random_bytes(&runtime->dma_area[v_iter->buf_pos], v_iter->b_rw); in fill_block_rand_i()
312 get_random_bytes(&runtime->dma_area[v_iter->buf_pos], in_cur_block); in fill_block_rand_i()
407 v_iter->buf_pos = 0; in reset_buf_iterator()
448 return bytes_to_frames(substream->runtime, v_iter->buf_pos); in snd_pcmtst_pcm_pointer()