Lines Matching refs:wr_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()
1179 sub->wr_offs = 0; in aiodma_rb_set_buffer()
1198 sub->wr_offs = sub->rd_offs - period; in aiodma_rb_sync()
1200 sub->wr_offs += size; in aiodma_rb_sync()
1202 aiodma_rb_set_wp(sub, sub->wr_offs + start); in aiodma_rb_sync()
1204 sub->wr_offs = aiodma_rb_get_wp(sub) - start; in aiodma_rb_sync()
1210 sub->rd_offs = sub->wr_offs - period; in aiodma_rb_sync()
1211 if (sub->wr_offs < period) in aiodma_rb_sync()
1220 sub->wr_total += sub->wr_offs - sub->wr_org; in aiodma_rb_sync()
1221 if (sub->wr_offs < sub->wr_org) in aiodma_rb_sync()
1225 sub->wr_org = sub->wr_offs; in aiodma_rb_sync()