Lines Matching refs:counter
211 enum armv6_counters counter) in armv6_pmcr_counter_has_overflowed() argument
215 if (ARMV6_CYCLE_COUNTER == counter) in armv6_pmcr_counter_has_overflowed()
217 else if (ARMV6_COUNTER0 == counter) in armv6_pmcr_counter_has_overflowed()
219 else if (ARMV6_COUNTER1 == counter) in armv6_pmcr_counter_has_overflowed()
222 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6_pmcr_counter_has_overflowed()
230 int counter = hwc->idx; in armv6pmu_read_counter() local
233 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_read_counter()
235 else if (ARMV6_COUNTER0 == counter) in armv6pmu_read_counter()
237 else if (ARMV6_COUNTER1 == counter) in armv6pmu_read_counter()
240 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_read_counter()
248 int counter = hwc->idx; in armv6pmu_write_counter() local
250 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_write_counter()
252 else if (ARMV6_COUNTER0 == counter) in armv6pmu_write_counter()
254 else if (ARMV6_COUNTER1 == counter) in armv6pmu_write_counter()
257 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_write_counter()