Lines Matching refs:mmcr
41 struct mmcr_regs mmcr; member
129 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
648 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in()
682 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
1302 val = mmcra = cpuhw->mmcr.mmcra; in power_pmu_disable()
1307 if (cpuhw->mmcr.mmcra & MMCRA_SAMPLE_ENABLE) in power_pmu_disable()
1393 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1394 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1396 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); in power_pmu_enable()
1403 memset(&cpuhw->mmcr, 0, sizeof(cpuhw->mmcr)); in power_pmu_enable()
1406 &cpuhw->mmcr, cpuhw->event, ppmu->flags)) { in power_pmu_enable()
1420 cpuhw->mmcr.mmcr0 |= MMCR0_FCP; in power_pmu_enable()
1422 cpuhw->mmcr.mmcr0 |= freeze_events_kernel; in power_pmu_enable()
1424 cpuhw->mmcr.mmcr0 |= MMCR0_FCHV; in power_pmu_enable()
1433 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1434 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1435 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable()
1438 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
1441 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); in power_pmu_enable()
1492 cpuhw->mmcr.mmcr0 |= MMCR0_PMXE | MMCR0_FCECE; in power_pmu_enable()
1508 if (cpuhw->mmcr.mmcra & MMCRA_SAMPLE_ENABLE) { in power_pmu_enable()
1510 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra); in power_pmu_enable()
1647 ppmu->disable_pmc(event->hw.idx - 1, &cpuhw->mmcr); in power_pmu_del()
1668 cpuhw->mmcr.mmcr0 &= ~(MMCR0_PMXE | MMCR0_FCECE); in power_pmu_del()
2369 write_mmcr0(cpuhw, cpuhw->mmcr.mmcr0); in __perf_event_interrupt()
2390 cpuhw->mmcr.mmcr0 = MMCR0_FC; in power_pmu_prepare_cpu()