Lines Matching refs:counter
219 enum armv6_counters counter) in armv6_pmcr_counter_has_overflowed() argument
223 if (ARMV6_CYCLE_COUNTER == counter) in armv6_pmcr_counter_has_overflowed()
225 else if (ARMV6_COUNTER0 == counter) in armv6_pmcr_counter_has_overflowed()
227 else if (ARMV6_COUNTER1 == counter) in armv6_pmcr_counter_has_overflowed()
230 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6_pmcr_counter_has_overflowed()
238 int counter = hwc->idx; in armv6pmu_read_counter() local
241 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_read_counter()
243 else if (ARMV6_COUNTER0 == counter) in armv6pmu_read_counter()
245 else if (ARMV6_COUNTER1 == counter) in armv6pmu_read_counter()
248 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_read_counter()
256 int counter = hwc->idx; in armv6pmu_write_counter() local
258 if (ARMV6_CYCLE_COUNTER == counter) in armv6pmu_write_counter()
260 else if (ARMV6_COUNTER0 == counter) in armv6pmu_write_counter()
262 else if (ARMV6_COUNTER1 == counter) in armv6pmu_write_counter()
265 WARN_ONCE(1, "invalid counter number (%d)\n", counter); in armv6pmu_write_counter()