Lines Matching refs:of_flags
454 xscale2_pmnc_counter_has_overflowed(unsigned long of_flags, in xscale2_pmnc_counter_has_overflowed() argument
461 ret = of_flags & XSCALE2_CCOUNT_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
464 ret = of_flags & XSCALE2_COUNT0_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
467 ret = of_flags & XSCALE2_COUNT1_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
470 ret = of_flags & XSCALE2_COUNT2_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
473 ret = of_flags & XSCALE2_COUNT3_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
485 unsigned long pmnc, of_flags; in xscale2pmu_handle_irq() local
497 of_flags = xscale2pmu_read_overflow_flags(); in xscale2pmu_handle_irq()
498 if (!(of_flags & XSCALE2_OVERFLOWED_MASK)) in xscale2pmu_handle_irq()
502 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_handle_irq()
513 if (!xscale2_pmnc_counter_has_overflowed(of_flags, idx)) in xscale2pmu_handle_irq()
585 unsigned long flags, ien, evtsel, of_flags; in xscale2pmu_disable_event() local
597 of_flags = XSCALE2_CCOUNT_OVERFLOW; in xscale2pmu_disable_event()
603 of_flags = XSCALE2_COUNT0_OVERFLOW; in xscale2pmu_disable_event()
609 of_flags = XSCALE2_COUNT1_OVERFLOW; in xscale2pmu_disable_event()
615 of_flags = XSCALE2_COUNT2_OVERFLOW; in xscale2pmu_disable_event()
621 of_flags = XSCALE2_COUNT3_OVERFLOW; in xscale2pmu_disable_event()
631 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_disable_event()