Lines Matching defs:batch
39 int batch; /* number of entries to consume in a batch */
259 * batch of entries has been consumed.
272 if (unlikely(consumer_head - r->consumer_tail >= r->batch ||
477 r->batch = SMP_CACHE_BYTES * 2 / sizeof(*(r->queue));
478 /* We need to set batch at least to 1 to make logic
483 if (r->batch > r->size / 2 || !r->batch)
484 r->batch = 1;
511 static inline void ptr_ring_unconsume(struct ptr_ring *r, void **batch, int n,
533 * Go over entries in batch, start moving head back and copy entries.
541 /* This batch entry will have to be destroyed. */
544 r->queue[head] = batch[--n];
551 /* Destroy all entries left in the batch. */
553 destroy(batch[--n]);