Lines Matching refs:mmcra
8 static void freeze_pmu(unsigned long mmcr0, unsigned long mmcra) in freeze_pmu() argument
12 if (mmcra & MMCRA_SAMPLE_ENABLE) in freeze_pmu()
17 if (!(mmcra & MMCRA_BHRB_DISABLE)) in freeze_pmu()
24 mmcra = 0; in freeze_pmu()
27 mmcra = MMCRA_BHRB_DISABLE; in freeze_pmu()
31 mtspr(SPRN_MMCRA, mmcra); in freeze_pmu()
50 host_os_sprs->mmcra = mfspr(SPRN_MMCRA); in switch_pmu_to_guest()
52 freeze_pmu(host_os_sprs->mmcr0, host_os_sprs->mmcra); in switch_pmu_to_guest()
107 mtspr(SPRN_MMCRA, vcpu->arch.mmcra); in switch_pmu_to_guest()
138 vcpu->arch.mmcra = mfspr(SPRN_MMCRA); in switch_pmu_to_host()
140 freeze_pmu(vcpu->arch.mmcr[0], vcpu->arch.mmcra); in switch_pmu_to_host()
214 mtspr(SPRN_MMCRA, host_os_sprs->mmcra); in switch_pmu_to_host()