Lines Matching refs:mmcr0
99 * adjust the mmcr0.en[0-5] and mmcr0.inten[0-5] values obtained from the
107 sys->mmcr0 &= ~(0x1UL << pmc);
108 sys->mmcr0 &= ~(0x1UL << (pmc+12));
113 sys->mmcr0 |= PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN;
115 sys->mmcr0 &= ~(PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN);
118 sys->mmcr0 |= PA6T_MMCR0_PREN;
120 sys->mmcr0 &= ~PA6T_MMCR0_PREN;
123 * The performance counter event settings are given in the mmcr0 and
127 mmcr0_val = sys->mmcr0;
129 pr_debug("mmcr0_val inited to %016lx\n", sys->mmcr0);
145 u64 mmcr0 = mmcr0_val;
149 mmcr0 &= ~(0x3FUL);
150 mtspr(SPRN_PA6T_MMCR0, mmcr0);
155 pr_debug("setup on cpu %d, mmcr0 %016lx\n", smp_processor_id(),
168 u64 mmcr0 = mmcr0_val | PA6T_MMCR0_HANDDIS;
176 mtspr(SPRN_PA6T_MMCR0, mmcr0);
180 pr_debug("start on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0);
187 u64 mmcr0;
190 mmcr0 = mfspr(SPRN_PA6T_MMCR0);
191 mmcr0 |= PA6T_MMCR0_FCM0;
192 mtspr(SPRN_PA6T_MMCR0, mmcr0);
196 pr_debug("stop on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0);
207 u64 mmcr0;
210 mmcr0 = mfspr(SPRN_PA6T_MMCR0);
211 mtspr(SPRN_PA6T_MMCR0, mmcr0 | PA6T_MMCR0_HANDDIS);
220 if (mmcr0 & PA6T_MMCR0_SIARLOG)
229 /* Restore mmcr0 to a good known value since the PMI changes it */
230 mmcr0 = mmcr0_val | PA6T_MMCR0_HANDDIS;
231 mtspr(SPRN_PA6T_MMCR0, mmcr0);