Lines Matching refs:rd_index
61 unsigned int rd_index; member
145 if (s->rd_index == s->wr_index) { in block_from_buf()
153 for (i = s->rd_index; i < s->rd_index + 3; i++) in block_from_buf()
157 memcpy(buf, &s->buffer[s->rd_index], 3); in block_from_buf()
159 s->rd_index += 3; in block_from_buf()
160 if (s->rd_index >= s->buf_size) in block_from_buf()
161 s->rd_index = 0; in block_from_buf()
237 if (s->wr_index == s->rd_index) { in block_to_buf()
238 s->rd_index += 3; in block_to_buf()
239 if (s->rd_index >= s->buf_size) in block_to_buf()
240 s->rd_index = 0; in block_to_buf()
474 s->rd_index = 0; in saa6588_probe()