Lines Matching defs:pmnc
1697 static inline int armv7_pmnc_has_overflowed(unsigned long pmnc)
1699 return pmnc & ARMV7_OVERFLOWED_MASK;
1702 static inline int armv7_pmnc_counter_has_overflowed(unsigned long pmnc,
1708 ret = pmnc & ARMV7_FLAG_C;
1710 ret = pmnc & ARMV7_FLAG_P(counter);
1968 unsigned long pmnc;
1977 pmnc = armv7_pmnc_getreset_flags();
1982 if (!armv7_pmnc_has_overflowed(pmnc))
2004 if (!armv7_pmnc_counter_has_overflowed(pmnc, idx))
2318 xscale1_pmnc_counter_has_overflowed(unsigned long pmnc,
2325 ret = pmnc & XSCALE1_CCOUNT_OVERFLOW;
2328 ret = pmnc & XSCALE1_COUNT0_OVERFLOW;
2331 ret = pmnc & XSCALE1_COUNT1_OVERFLOW;
2343 unsigned long pmnc;
2349 pmnc = xscale1pmu_read_pmnc();
2353 * flags remain in pmnc for use below. We also disable the PMU
2356 xscale1pmu_write_pmnc(pmnc & ~XSCALE_PMU_ENABLE);
2358 if (!(pmnc & XSCALE1_OVERFLOWED_MASK))
2373 if (!xscale1_pmnc_counter_has_overflowed(pmnc, idx))
2391 pmnc = xscale1pmu_read_pmnc() | XSCALE_PMU_ENABLE;
2392 xscale1pmu_write_pmnc(pmnc);
2670 unsigned long pmnc, of_flags;
2677 pmnc = xscale2pmu_read_pmnc();
2678 xscale2pmu_write_pmnc(pmnc & ~XSCALE_PMU_ENABLE);
2700 if (!xscale2_pmnc_counter_has_overflowed(pmnc, idx))
2718 pmnc = xscale2pmu_read_pmnc() | XSCALE_PMU_ENABLE;
2719 xscale2pmu_write_pmnc(pmnc);