Lines Matching refs:i
281 #define for_each_irqts(i, irqts) \ argument
282 for (i = irqts->count < IRQ_TIMINGS_SIZE ? \
287 i = (i + 1) & IRQ_TIMINGS_MASK)
384 int index, i, period_max, count, start, min = INT_MAX; in __irq_timings_next_event() local
421 for (i = 0; i < count; i++) { in __irq_timings_next_event()
422 int index = (start + i) & IRQ_TIMINGS_MASK; in __irq_timings_next_event()
424 irqs->timings[i] = irqs->circ_timings[index]; in __irq_timings_next_event()
425 min = min_t(int, irqs->timings[i], min); in __irq_timings_next_event()
542 int i, irq = 0; in irq_timings_next_event() local
568 for_each_irqts(i, irqts) { in irq_timings_next_event()
569 irq = irq_timing_decode(irqts->values[i], &ts); in irq_timings_next_event()
579 idr_for_each_entry(&irqt_stats, s, i) { in irq_timings_next_event()
583 ts = __irq_timings_next_event(irqs, i, now); in irq_timings_next_event()
716 int index, start, i, count, period_max; in irq_timings_test_next_index() local
729 for (i = 0; i < count; i++) { in irq_timings_test_next_index()
730 index = irq_timings_interval_index(ti->intervals[i]); in irq_timings_test_next_index()
731 _buffer[i & IRQ_TIMINGS_MASK] = index; in irq_timings_test_next_index()
740 for (i = 0; i < count; i++) { in irq_timings_test_next_index()
741 int index = (start + i) & IRQ_TIMINGS_MASK; in irq_timings_test_next_index()
742 buffer[i] = _buffer[index]; in irq_timings_test_next_index()
746 i = irq_timings_interval_index(ti->intervals[ti->count - 1]); in irq_timings_test_next_index()
748 if (index != i) { in irq_timings_test_next_index()
750 i, index); in irq_timings_test_next_index()
759 int i, ret; in irq_timings_next_index_selftest() local
761 for (i = 0; i < ARRAY_SIZE(tis); i++) { in irq_timings_next_index_selftest()
764 i, tis[i].count); in irq_timings_next_index_selftest()
766 ret = irq_timings_test_next_index(&tis[i]); in irq_timings_next_index_selftest()
778 int i, index, ret, irq = 0xACE5; in irq_timings_test_irqs() local
794 for (i = 0; i < ti->count; i++) { in irq_timings_test_irqs()
796 index = irq_timings_interval_index(ti->intervals[i]); in irq_timings_test_irqs()
798 i, ti->intervals[i], index); in irq_timings_test_irqs()
800 __irq_timings_store(irq, irqs, ti->intervals[i]); in irq_timings_test_irqs()
801 if (irqs->circ_timings[i & IRQ_TIMINGS_MASK] != index) { in irq_timings_test_irqs()
823 int i, ret; in irq_timings_irqs_selftest() local
825 for (i = 0; i < ARRAY_SIZE(tis); i++) { in irq_timings_irqs_selftest()
827 i, tis[i].count); in irq_timings_irqs_selftest()
828 ret = irq_timings_test_irqs(&tis[i]); in irq_timings_irqs_selftest()
840 int i, irq, oirq = 0xBEEF; in irq_timings_test_irqts() local
846 for (i = 0; i < count; i++) { in irq_timings_test_irqts()
848 i, i & IRQ_TIMINGS_MASK, ots + i, oirq + i); in irq_timings_test_irqts()
850 irq_timings_push(ots + i, oirq + i); in irq_timings_test_irqts()
871 for_each_irqts(i, irqts) { in irq_timings_test_irqts()
873 irq = irq_timing_decode(irqts->values[i], &ts); in irq_timings_test_irqts()
876 i, ts, ots, irq, oirq); in irq_timings_test_irqts()
898 int i, ret; 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()