Lines Matching refs:evtsel
547 unsigned long flags, ien, evtsel; in xscale2pmu_enable_event() local
554 evtsel = xscale2pmu_read_event_select(); in xscale2pmu_enable_event()
562 evtsel &= ~XSCALE2_COUNT0_EVT_MASK; in xscale2pmu_enable_event()
563 evtsel |= hwc->config_base << XSCALE2_COUNT0_EVT_SHFT; in xscale2pmu_enable_event()
567 evtsel &= ~XSCALE2_COUNT1_EVT_MASK; in xscale2pmu_enable_event()
568 evtsel |= hwc->config_base << XSCALE2_COUNT1_EVT_SHFT; in xscale2pmu_enable_event()
572 evtsel &= ~XSCALE2_COUNT2_EVT_MASK; in xscale2pmu_enable_event()
573 evtsel |= hwc->config_base << XSCALE2_COUNT2_EVT_SHFT; in xscale2pmu_enable_event()
577 evtsel &= ~XSCALE2_COUNT3_EVT_MASK; in xscale2pmu_enable_event()
578 evtsel |= hwc->config_base << XSCALE2_COUNT3_EVT_SHFT; in xscale2pmu_enable_event()
586 xscale2pmu_write_event_select(evtsel); in xscale2pmu_enable_event()
593 unsigned long flags, ien, evtsel, of_flags; in xscale2pmu_disable_event() local
600 evtsel = xscale2pmu_read_event_select(); in xscale2pmu_disable_event()
609 evtsel &= ~XSCALE2_COUNT0_EVT_MASK; in xscale2pmu_disable_event()
610 evtsel |= XSCALE_PERFCTR_UNUSED << XSCALE2_COUNT0_EVT_SHFT; in xscale2pmu_disable_event()
615 evtsel &= ~XSCALE2_COUNT1_EVT_MASK; in xscale2pmu_disable_event()
616 evtsel |= XSCALE_PERFCTR_UNUSED << XSCALE2_COUNT1_EVT_SHFT; in xscale2pmu_disable_event()
621 evtsel &= ~XSCALE2_COUNT2_EVT_MASK; in xscale2pmu_disable_event()
622 evtsel |= XSCALE_PERFCTR_UNUSED << XSCALE2_COUNT2_EVT_SHFT; in xscale2pmu_disable_event()
627 evtsel &= ~XSCALE2_COUNT3_EVT_MASK; in xscale2pmu_disable_event()
628 evtsel |= XSCALE_PERFCTR_UNUSED << XSCALE2_COUNT3_EVT_SHFT; in xscale2pmu_disable_event()
637 xscale2pmu_write_event_select(evtsel); in xscale2pmu_disable_event()