Lines Matching defs:index
273 if (batch->index == 0) {
279 &batch->snapshots[batch->index - 1];
284 if (batch->index % 2 == 0) {
290 /* only start collection when index == 0, at the beginning of a batch */
391 assert(batch->index > 1);
392 return (batch->timestamps[batch->index - 1] != 0);
410 assert(batch->index == 0 || timestamps[0] != 0);
412 for (int i = 0; i < batch->index; i += 2) {
483 ringbuffer_peek(const struct intel_measure_ringbuffer *rb, unsigned index)
485 int result_offset = rb->tail + index + 1;
659 assert(batch->index % 2 == 0);
663 batch->index = 0;