Lines Matching refs:of_flags
468 xscale2_pmnc_counter_has_overflowed(unsigned long of_flags, in xscale2_pmnc_counter_has_overflowed() argument
475 ret = of_flags & XSCALE2_CCOUNT_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
478 ret = of_flags & XSCALE2_COUNT0_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
481 ret = of_flags & XSCALE2_COUNT1_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
484 ret = of_flags & XSCALE2_COUNT2_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
487 ret = of_flags & XSCALE2_COUNT3_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
499 unsigned long pmnc, of_flags; in xscale2pmu_handle_irq() local
510 of_flags = xscale2pmu_read_overflow_flags(); in xscale2pmu_handle_irq()
511 if (!(of_flags & XSCALE2_OVERFLOWED_MASK)) in xscale2pmu_handle_irq()
515 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_handle_irq()
526 if (!xscale2_pmnc_counter_has_overflowed(of_flags, idx)) in xscale2pmu_handle_irq()
598 unsigned long flags, ien, evtsel, of_flags; in xscale2pmu_disable_event() local
610 of_flags = XSCALE2_CCOUNT_OVERFLOW; in xscale2pmu_disable_event()
616 of_flags = XSCALE2_COUNT0_OVERFLOW; in xscale2pmu_disable_event()
622 of_flags = XSCALE2_COUNT1_OVERFLOW; in xscale2pmu_disable_event()
628 of_flags = XSCALE2_COUNT2_OVERFLOW; in xscale2pmu_disable_event()
634 of_flags = XSCALE2_COUNT3_OVERFLOW; in xscale2pmu_disable_event()
644 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_disable_event()