Searched refs:pmnc (Results 1 – 3 of 3) sorted by relevance
122 xscale1_pmnc_counter_has_overflowed(unsigned long pmnc, in xscale1_pmnc_counter_has_overflowed() argument129 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() local159 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 …]
723 static inline int armv7_pmnc_has_overflowed(u32 pmnc) in armv7_pmnc_has_overflowed() argument725 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() argument736 return pmnc & BIT(ARMV7_IDX_TO_COUNTER(idx)); in armv7_pmnc_counter_has_overflowed()951 u32 pmnc; in armv7pmu_handle_irq() local960 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()
462 static inline int armv8pmu_counter_has_overflowed(u32 pmnc, int idx) in armv8pmu_counter_has_overflowed() argument464 return pmnc & BIT(ARMV8_IDX_TO_COUNTER(idx)); in armv8pmu_counter_has_overflowed()