Lines Matching refs:tmp_wr_idx
23 buffer->wr_idx, buffer->tmp_wr_idx, in mpsc_state_print()
68 if (buffer->rd_idx > buffer->tmp_wr_idx) { in free_space()
69 *res = buffer->rd_idx - buffer->tmp_wr_idx; in free_space()
72 *res = buffer->size - buffer->tmp_wr_idx; in free_space()
152 buffer->tmp_wr_idx = idx_inc(buffer, buffer->tmp_wr_idx, wlen); in tmp_wr_idx_inc()
153 if (buffer->tmp_wr_idx == buffer->rd_idx) { in tmp_wr_idx_inc()
170 buffer->buf[buffer->tmp_wr_idx] = skip.raw; in add_skip_item()
224 buffer->tmp_wr_idx = buffer->tmp_rd_idx; in drop_item_locked()
246 buffer->buf[buffer->tmp_wr_idx] = invalid.raw; in drop_item_locked()
250 buffer->tmp_wr_idx = idx_inc(buffer, buffer->tmp_wr_idx, *tmp_wr_idx_shift); in drop_item_locked()
267 if (cmp_tmp_wr_idx == buffer->tmp_wr_idx) { in post_drop_action()
269 buffer->tmp_wr_idx = prev_tmp_wr_idx; in post_drop_action()
313 buffer->buf[buffer->tmp_wr_idx] = item.raw; in mpsc_pbuf_put_word()
319 tmp_wr_idx_val = buffer->tmp_wr_idx; in mpsc_pbuf_put_word()
367 (union mpsc_pbuf_generic *)&buffer->buf[buffer->tmp_wr_idx]; in mpsc_pbuf_alloc()
384 tmp_wr_idx_val = buffer->tmp_wr_idx; in mpsc_pbuf_alloc()
450 buffer->buf[buffer->tmp_wr_idx] = item.raw; in mpsc_pbuf_put_word_ext()
452 (void **)&buffer->buf[buffer->tmp_wr_idx + 1]; in mpsc_pbuf_put_word_ext()
463 tmp_wr_idx_val = buffer->tmp_wr_idx; in mpsc_pbuf_put_word_ext()
503 memcpy(&buffer->buf[buffer->tmp_wr_idx], data, in mpsc_pbuf_put_data()
513 tmp_wr_idx_val = buffer->tmp_wr_idx; in mpsc_pbuf_put_data()