Lines Matching refs:read_index
158 int read_index; member
1367 buf->read_index = -1; in wm_adsp_buffer_clear()
1639 int write_index, read_index, avail; in wm_adsp_buffer_update_avail() local
1643 if (buf->read_index < 0) { in wm_adsp_buffer_update_avail()
1650 read_index = sign_extend32(next_read_index, 23); in wm_adsp_buffer_update_avail()
1652 if (read_index < 0) { in wm_adsp_buffer_update_avail()
1657 buf->read_index = read_index; in wm_adsp_buffer_update_avail()
1667 avail = write_index - buf->read_index; in wm_adsp_buffer_update_avail()
1672 buf->read_index, write_index, avail * CS_DSP_DATA_WORD_SIZE); in wm_adsp_buffer_update_avail()
1812 if (buf->read_index < buf->regions[i].cumulative_size) in wm_adsp_buffer_capture_block()
1820 (buf->read_index - buf->regions[i].offset); in wm_adsp_buffer_capture_block()
1823 nwords = buf->regions[i].cumulative_size - buf->read_index; in wm_adsp_buffer_capture_block()
1843 buf->read_index += nwords; in wm_adsp_buffer_capture_block()
1844 if (buf->read_index == wm_adsp_buffer_size(buf)) in wm_adsp_buffer_capture_block()
1845 buf->read_index = 0; in wm_adsp_buffer_capture_block()
1848 buf->read_index); in wm_adsp_buffer_capture_block()