Lines Matching refs:mmcr

42 	struct mmcr_regs mmcr;  member
130 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
642 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in()
676 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
1362 val = mmcra = cpuhw->mmcr.mmcra; in power_pmu_disable()
1461 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1462 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1464 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); in power_pmu_enable()
1471 memset(&cpuhw->mmcr, 0, sizeof(cpuhw->mmcr)); in power_pmu_enable()
1474 &cpuhw->mmcr, cpuhw->event, ppmu->flags)) { in power_pmu_enable()
1488 cpuhw->mmcr.mmcr0 |= MMCR0_FCP; in power_pmu_enable()
1490 cpuhw->mmcr.mmcr0 |= freeze_events_kernel; in power_pmu_enable()
1492 cpuhw->mmcr.mmcr0 |= MMCR0_FCHV; in power_pmu_enable()
1501 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1502 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1503 mtspr(SPRN_MMCR0, (cpuhw->mmcr.mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)) in power_pmu_enable()
1506 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
1509 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); in power_pmu_enable()
1560 cpuhw->mmcr.mmcr0 |= MMCR0_PMXE | MMCR0_FCECE; in power_pmu_enable()
1576 if (cpuhw->mmcr.mmcra & MMCRA_SAMPLE_ENABLE) { in power_pmu_enable()
1578 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra); in power_pmu_enable()
1715 ppmu->disable_pmc(event->hw.idx - 1, &cpuhw->mmcr); in power_pmu_del()
1736 cpuhw->mmcr.mmcr0 &= ~(MMCR0_PMXE | MMCR0_FCECE); in power_pmu_del()
2472 write_mmcr0(cpuhw, cpuhw->mmcr.mmcr0); in __perf_event_interrupt()
2493 cpuhw->mmcr.mmcr0 = MMCR0_FC; in power_pmu_prepare_cpu()