Lines Matching refs:of_flags
462 xscale2_pmnc_counter_has_overflowed(unsigned long of_flags, in xscale2_pmnc_counter_has_overflowed() argument
469 ret = of_flags & XSCALE2_CCOUNT_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
472 ret = of_flags & XSCALE2_COUNT0_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
475 ret = of_flags & XSCALE2_COUNT1_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
478 ret = of_flags & XSCALE2_COUNT2_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
481 ret = of_flags & XSCALE2_COUNT3_OVERFLOW; in xscale2_pmnc_counter_has_overflowed()
493 unsigned long pmnc, of_flags; in xscale2pmu_handle_irq() local
505 of_flags = xscale2pmu_read_overflow_flags(); in xscale2pmu_handle_irq()
506 if (!(of_flags & XSCALE2_OVERFLOWED_MASK)) in xscale2pmu_handle_irq()
510 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_handle_irq()
521 if (!xscale2_pmnc_counter_has_overflowed(of_flags, idx)) in xscale2pmu_handle_irq()
593 unsigned long flags, ien, evtsel, of_flags; in xscale2pmu_disable_event() local
605 of_flags = XSCALE2_CCOUNT_OVERFLOW; in xscale2pmu_disable_event()
611 of_flags = XSCALE2_COUNT0_OVERFLOW; in xscale2pmu_disable_event()
617 of_flags = XSCALE2_COUNT1_OVERFLOW; in xscale2pmu_disable_event()
623 of_flags = XSCALE2_COUNT2_OVERFLOW; in xscale2pmu_disable_event()
629 of_flags = XSCALE2_COUNT3_OVERFLOW; in xscale2pmu_disable_event()
639 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_disable_event()