Home
last modified time | relevance | path

Searched refs:pmnc (Results 1 – 3 of 3) sorted by relevance

/arch/arm/kernel/
Dperf_event_xscale.c122 xscale1_pmnc_counter_has_overflowed(unsigned long pmnc, in xscale1_pmnc_counter_has_overflowed() argument
129 ret = pmnc & XSCALE1_CCOUNT_OVERFLOW; in xscale1_pmnc_counter_has_overflowed()
132 ret = pmnc & XSCALE1_COUNT0_OVERFLOW; in xscale1_pmnc_counter_has_overflowed()
135 ret = pmnc & XSCALE1_COUNT1_OVERFLOW; in xscale1_pmnc_counter_has_overflowed()
147 unsigned long pmnc; in xscale1pmu_handle_irq() local
159 pmnc = xscale1pmu_read_pmnc(); in xscale1pmu_handle_irq()
166 xscale1pmu_write_pmnc(pmnc & ~XSCALE_PMU_ENABLE); in xscale1pmu_handle_irq()
168 if (!(pmnc & XSCALE1_OVERFLOWED_MASK)) in xscale1pmu_handle_irq()
180 if (!xscale1_pmnc_counter_has_overflowed(pmnc, idx)) in xscale1pmu_handle_irq()
198 pmnc = xscale1pmu_read_pmnc() | XSCALE_PMU_ENABLE; in xscale1pmu_handle_irq()
[all …]
Dperf_event_v7.c723 static inline int armv7_pmnc_has_overflowed(u32 pmnc) in armv7_pmnc_has_overflowed() argument
725 return pmnc & ARMV7_OVERFLOWED_MASK; in armv7_pmnc_has_overflowed()
734 static inline int armv7_pmnc_counter_has_overflowed(u32 pmnc, int idx) in armv7_pmnc_counter_has_overflowed() argument
736 return pmnc & BIT(ARMV7_IDX_TO_COUNTER(idx)); in armv7_pmnc_counter_has_overflowed()
951 u32 pmnc; in armv7pmu_handle_irq() local
960 pmnc = armv7_pmnc_getreset_flags(); in armv7pmu_handle_irq()
965 if (!armv7_pmnc_has_overflowed(pmnc)) in armv7pmu_handle_irq()
985 if (!armv7_pmnc_counter_has_overflowed(pmnc, idx)) in armv7pmu_handle_irq()
/arch/arm64/kernel/
Dperf_event.c462 static inline int armv8pmu_counter_has_overflowed(u32 pmnc, int idx) in armv8pmu_counter_has_overflowed() argument
464 return pmnc & BIT(ARMV8_IDX_TO_COUNTER(idx)); in armv8pmu_counter_has_overflowed()