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
496 of_flags = xscale2pmu_read_overflow_flags(); in xscale2pmu_handle_irq()
497 if (!(of_flags & XSCALE2_OVERFLOWED_MASK)) in xscale2pmu_handle_irq()
501 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_handle_irq()
512 if (!xscale2_pmnc_counter_has_overflowed(of_flags, idx)) in xscale2pmu_handle_irq()
579 unsigned long ien, evtsel, of_flags; in xscale2pmu_disable_event() local
589 of_flags = XSCALE2_CCOUNT_OVERFLOW; in xscale2pmu_disable_event()
595 of_flags = XSCALE2_COUNT0_OVERFLOW; in xscale2pmu_disable_event()
601 of_flags = XSCALE2_COUNT1_OVERFLOW; in xscale2pmu_disable_event()
607 of_flags = XSCALE2_COUNT2_OVERFLOW; in xscale2pmu_disable_event()
613 of_flags = XSCALE2_COUNT3_OVERFLOW; in xscale2pmu_disable_event()
622 xscale2pmu_write_overflow_flags(of_flags); in xscale2pmu_disable_event()