Searched refs:v_iter (Results 1 – 1 of 1) sorted by relevance
142 static inline void inc_buf_pos(struct pcmtst_buf_iter *v_iter, size_t by, size_t bytes) in inc_buf_pos() argument144 v_iter->total_bytes += by; in inc_buf_pos()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()155 static inline size_t buf_pos_n(struct pcmtst_buf_iter *v_iter, unsigned int channels, in buf_pos_n() argument158 return v_iter->buf_pos / channels + v_iter->chan_block * chan_num; in buf_pos_n()171 static void check_buf_block_i(struct pcmtst_buf_iter *v_iter, struct snd_pcm_runtime *runtime) in check_buf_block_i() argument177 for (i = 0; i < v_iter->b_rw; i++) { in check_buf_block_i()178 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i()[all …]