Lines Matching refs:count

282 	for (i = irqts->count < IRQ_TIMINGS_SIZE ?			\
283 0 : irqts->count & IRQ_TIMINGS_MASK, \
284 irqts->count = min(IRQ_TIMINGS_SIZE, \
285 irqts->count); \
286 irqts->count > 0; irqts->count--, \
294 int count; member
384 int index, i, period_max, count, start, min = INT_MAX; in __irq_timings_next_event() local
387 irqs->count = irqs->last_ts = 0; in __irq_timings_next_event()
396 period_max = irqs->count > (3 * PREDICTION_PERIOD_MAX) ? in __irq_timings_next_event()
397 PREDICTION_PERIOD_MAX : irqs->count / 3; in __irq_timings_next_event()
409 count = irqs->count < IRQ_TIMINGS_SIZE ? in __irq_timings_next_event()
410 irqs->count : IRQ_TIMINGS_SIZE; in __irq_timings_next_event()
412 start = irqs->count < IRQ_TIMINGS_SIZE ? in __irq_timings_next_event()
413 0 : (irqs->count & IRQ_TIMINGS_MASK); in __irq_timings_next_event()
421 for (i = 0; i < count; i++) { in __irq_timings_next_event()
428 index = irq_timings_next_event_index(irqs->timings, count, period_max); in __irq_timings_next_event()
457 irqs->count = 0; in __irq_timings_store()
465 irqs->circ_timings[irqs->count & IRQ_TIMINGS_MASK] = index; in __irq_timings_store()
470 irqs->count++; in __irq_timings_store()
503 irqs->count = 0; in irq_timings_store()
551 if (!irqts->count) in irq_timings_next_event()
639 size_t count; member
716 int index, start, i, count, period_max; in irq_timings_test_next_index() local
718 count = ti->count - 1; in irq_timings_test_next_index()
720 period_max = count > (3 * PREDICTION_PERIOD_MAX) ? in irq_timings_test_next_index()
721 PREDICTION_PERIOD_MAX : count / 3; in irq_timings_test_next_index()
729 for (i = 0; i < count; i++) { in irq_timings_test_next_index()
735 start = count < IRQ_TIMINGS_SIZE ? 0 : in irq_timings_test_next_index()
736 count & IRQ_TIMINGS_MASK; in irq_timings_test_next_index()
738 count = min_t(int, count, IRQ_TIMINGS_SIZE); in irq_timings_test_next_index()
740 for (i = 0; i < count; i++) { in irq_timings_test_next_index()
745 index = irq_timings_next_event_index(buffer, count, period_max); in irq_timings_test_next_index()
746 i = irq_timings_interval_index(ti->intervals[ti->count - 1]); in irq_timings_test_next_index()
764 i, tis[i].count); in irq_timings_next_index_selftest()
794 for (i = 0; i < ti->count; i++) { in irq_timings_test_irqs()
808 if (irqs->count != ti->count) { in irq_timings_test_irqs()
827 i, tis[i].count); in irq_timings_irqs_selftest()
837 unsigned count) in irq_timings_test_irqts() argument
839 int start = count >= IRQ_TIMINGS_SIZE ? count - IRQ_TIMINGS_SIZE : 0; in irq_timings_test_irqts()
846 for (i = 0; i < count; i++) { in irq_timings_test_irqts()
863 pr_debug("---> Checking timings array count (%d) is right\n", count); in irq_timings_test_irqts()
864 if (WARN_ON(irqts->count != count)) in irq_timings_test_irqts()
889 if (WARN_ON(irqts->count)) in irq_timings_test_irqts()
906 int count[] = { 0, in irq_timings_irqts_selftest() local
914 for (i = 0; i < ARRAY_SIZE(count); i++) { in irq_timings_irqts_selftest()
917 count[i], IRQ_TIMINGS_SIZE); in irq_timings_irqts_selftest()
919 ret = irq_timings_test_irqts(irqts, count[i]); in irq_timings_irqts_selftest()