Lines Matching refs:tmp_rd_idx
24 buffer->rd_idx, buffer->tmp_rd_idx); in mpsc_state_print()
88 if (buffer->flags & MPSC_PBUF_FULL || buffer->tmp_rd_idx > buffer->wr_idx) { in available()
89 *res = buffer->size - buffer->tmp_rd_idx; in available()
93 *res = (buffer->wr_idx - buffer->tmp_rd_idx); in available()
193 buffer->tmp_rd_idx = buffer->rd_idx; in drop_item_locked()
220 if (buffer->rd_idx == buffer->tmp_rd_idx) { in drop_item_locked()
221 buffer->tmp_rd_idx = idx_inc(buffer, buffer->tmp_rd_idx, rd_wlen); in drop_item_locked()
224 buffer->tmp_wr_idx = buffer->tmp_rd_idx; in drop_item_locked()
225 buffer->rd_idx = buffer->tmp_rd_idx; in drop_item_locked()
230 buffer->tmp_rd_idx = buffer->rd_idx; in drop_item_locked()
544 &buffer->buf[buffer->tmp_rd_idx]; in mpsc_pbuf_claim()
556 buffer->tmp_rd_idx = in mpsc_pbuf_claim()
557 idx_inc(buffer, buffer->tmp_rd_idx, inc); in mpsc_pbuf_claim()
562 buffer->tmp_rd_idx = in mpsc_pbuf_claim()
563 idx_inc(buffer, buffer->tmp_rd_idx, in mpsc_pbuf_claim()
588 if (buffer->rd_idx == buffer->tmp_rd_idx) { in mpsc_pbuf_free()
596 buffer->tmp_rd_idx = idx_inc(buffer, buffer->tmp_rd_idx, wlen); in mpsc_pbuf_free()