Lines Matching refs:index
175 int index; in ktrace_enter() local
184 index = ktp->kt_index; in ktrace_enter()
189 if (!ktp->kt_rollover && index == ktp->kt_nentries - 1) in ktrace_enter()
192 ASSERT((index >= 0) && (index < ktp->kt_nentries)); in ktrace_enter()
194 ktep = &(ktp->kt_entries[index]); in ktrace_enter()
246 int index; in ktrace_first() local
250 index = ktp->kt_index; in ktrace_first()
252 index = 0; in ktrace_first()
254 ktsp->ks_start = index; in ktrace_first()
255 ktep = &(ktp->kt_entries[index]); in ktrace_first()
258 index++; in ktrace_first()
259 if (index < nentries) { in ktrace_first()
260 ktsp->ks_index = index; in ktrace_first()
263 if (index > nentries) in ktrace_first()
283 int index; in ktrace_next() local
286 index = ktsp->ks_index; in ktrace_next()
287 if (index == ktsp->ks_start) { in ktrace_next()
290 ktep = &ktp->kt_entries[index]; in ktrace_next()
293 index++; in ktrace_next()
294 if (index == ktrace_nentries(ktp)) { in ktrace_next()
297 ktsp->ks_index = index; in ktrace_next()
315 int index; in ktrace_skip() local
320 index = ktsp->ks_index; in ktrace_skip()
321 new_index = index + count; in ktrace_skip()
325 if (index == ktsp->ks_start) { in ktrace_skip()
330 } else if ((new_index < index) && (index < ktsp->ks_index)) { in ktrace_skip()