Lines Matching refs:prod
100 XENCONS_RING_IDX cons, prod; in pv_console_rx() local
106 prod = ACCESS_ONCE(cons_ring->in_prod); in pv_console_rx()
115 ASSERT((prod - cons) <= sizeof(cons_ring->in)); in pv_console_rx()
117 while ( cons != prod ) in pv_console_rx()
135 XENCONS_RING_IDX cons, prod; in pv_ring_puts() local
142 prod = cons_ring->out_prod; in pv_ring_puts()
150 ASSERT((prod - cons) <= sizeof(cons_ring->out)); in pv_ring_puts()
151 avail = sizeof(cons_ring->out) - (prod - cons); in pv_ring_puts()
164 cons_ring->out[MASK_XENCONS_IDX(prod++, cons_ring->out)] = '\r'; in pv_ring_puts()
169 cons_ring->out[MASK_XENCONS_IDX(prod++, cons_ring->out)] = in pv_ring_puts()
182 ACCESS_ONCE(cons_ring->out_prod) = prod; in pv_ring_puts()