Lines Matching refs:host_os_sprs
36 struct p9_host_os_sprs *host_os_sprs) in switch_pmu_to_guest() argument
49 host_os_sprs->mmcr0 = mfspr(SPRN_MMCR0); in switch_pmu_to_guest()
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()
54 host_os_sprs->pmc1 = mfspr(SPRN_PMC1); in switch_pmu_to_guest()
55 host_os_sprs->pmc2 = mfspr(SPRN_PMC2); in switch_pmu_to_guest()
56 host_os_sprs->pmc3 = mfspr(SPRN_PMC3); in switch_pmu_to_guest()
57 host_os_sprs->pmc4 = mfspr(SPRN_PMC4); in switch_pmu_to_guest()
58 host_os_sprs->pmc5 = mfspr(SPRN_PMC5); in switch_pmu_to_guest()
59 host_os_sprs->pmc6 = mfspr(SPRN_PMC6); in switch_pmu_to_guest()
60 host_os_sprs->mmcr1 = mfspr(SPRN_MMCR1); in switch_pmu_to_guest()
61 host_os_sprs->mmcr2 = mfspr(SPRN_MMCR2); in switch_pmu_to_guest()
62 host_os_sprs->sdar = mfspr(SPRN_SDAR); in switch_pmu_to_guest()
63 host_os_sprs->siar = mfspr(SPRN_SIAR); in switch_pmu_to_guest()
64 host_os_sprs->sier1 = mfspr(SPRN_SIER); in switch_pmu_to_guest()
67 host_os_sprs->mmcr3 = mfspr(SPRN_MMCR3); in switch_pmu_to_guest()
68 host_os_sprs->sier2 = mfspr(SPRN_SIER2); in switch_pmu_to_guest()
69 host_os_sprs->sier3 = mfspr(SPRN_SIER3); in switch_pmu_to_guest()
119 struct p9_host_os_sprs *host_os_sprs) in switch_pmu_to_host() argument
195 mtspr(SPRN_PMC1, host_os_sprs->pmc1); in switch_pmu_to_host()
196 mtspr(SPRN_PMC2, host_os_sprs->pmc2); in switch_pmu_to_host()
197 mtspr(SPRN_PMC3, host_os_sprs->pmc3); in switch_pmu_to_host()
198 mtspr(SPRN_PMC4, host_os_sprs->pmc4); in switch_pmu_to_host()
199 mtspr(SPRN_PMC5, host_os_sprs->pmc5); in switch_pmu_to_host()
200 mtspr(SPRN_PMC6, host_os_sprs->pmc6); in switch_pmu_to_host()
201 mtspr(SPRN_MMCR1, host_os_sprs->mmcr1); in switch_pmu_to_host()
202 mtspr(SPRN_MMCR2, host_os_sprs->mmcr2); in switch_pmu_to_host()
203 mtspr(SPRN_SDAR, host_os_sprs->sdar); in switch_pmu_to_host()
204 mtspr(SPRN_SIAR, host_os_sprs->siar); in switch_pmu_to_host()
205 mtspr(SPRN_SIER, host_os_sprs->sier1); in switch_pmu_to_host()
208 mtspr(SPRN_MMCR3, host_os_sprs->mmcr3); in switch_pmu_to_host()
209 mtspr(SPRN_SIER2, host_os_sprs->sier2); in switch_pmu_to_host()
210 mtspr(SPRN_SIER3, host_os_sprs->sier3); in switch_pmu_to_host()
214 mtspr(SPRN_MMCRA, host_os_sprs->mmcra); in switch_pmu_to_host()
215 mtspr(SPRN_MMCR0, host_os_sprs->mmcr0); in switch_pmu_to_host()