Lines Matching refs:rd_offs
55 return rb_cnt(sub->wr_offs, sub->rd_offs, sub->compr_bytes); in aio_rb_cnt()
60 return rb_cnt_to_end(sub->wr_offs, sub->rd_offs, sub->compr_bytes); in aio_rbt_cnt_to_end()
65 return rb_space(sub->wr_offs, sub->rd_offs, sub->compr_bytes); in aio_rb_space()
70 return rb_space_to_end(sub->wr_offs, sub->rd_offs, sub->compr_bytes); in aio_rb_space_to_end()
1177 sub->rd_offs = 0; in aiodma_rb_set_buffer()
1191 sub->rd_offs = aiodma_rb_get_rp(sub) - start; in aiodma_rb_sync()
1197 sub->wr_offs = sub->rd_offs - period; in aiodma_rb_sync()
1198 if (sub->rd_offs < period) in aiodma_rb_sync()
1209 sub->rd_offs = sub->wr_offs - period; in aiodma_rb_sync()
1211 sub->rd_offs += size; in aiodma_rb_sync()
1213 aiodma_rb_set_rp(sub, sub->rd_offs + start); in aiodma_rb_sync()
1216 sub->rd_total += sub->rd_offs - sub->rd_org; in aiodma_rb_sync()
1217 if (sub->rd_offs < sub->rd_org) in aiodma_rb_sync()
1223 sub->rd_org = sub->rd_offs; in aiodma_rb_sync()