Lines Matching refs:next_batch
231 uint16_t b_start, b_end, next_batch; in batch_completed() local
244 next_batch = (idxd->batch_idx_read + 1); in batch_completed()
245 if (next_batch > idxd->max_batches) in batch_completed()
246 next_batch = 0; in batch_completed()
248 b_end = idxd->batch_idx_ring[next_batch]; in batch_completed()
268 if (idxd->batch_idx_ring[next_batch] - idxd->batch_idx_ring[idxd->batch_idx_read] == 1) { in batch_completed()
281 uint16_t next_batch; in batch_completed_status() local
290 next_batch = (idxd->batch_idx_read + 1); in batch_completed_status()
291 if (next_batch > idxd->max_batches) in batch_completed_status()
292 next_batch = 0; in batch_completed_status()
294 const uint16_t b_end = idxd->batch_idx_ring[next_batch]; in batch_completed_status()
302 idxd->batch_idx_read = next_batch; in batch_completed_status()
328 idxd->batch_idx_read = next_batch; in batch_completed_status()