mmcr0 28 arch/powerpc/include/asm/oprofile_impl.h unsigned long mmcr0; mmcr0 262 arch/powerpc/include/asm/processor.h unsigned mmcr0; mmcr0 86 arch/powerpc/include/asm/switch_to.h t->thread.mmcr0 = 0; mmcr0 1753 arch/powerpc/kernel/ptrace.c BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); mmcr0 1774 arch/powerpc/kernel/ptrace.c BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); mmcr0 1800 arch/powerpc/kernel/ptrace.c &target->thread.mmcr0, 4 * sizeof(unsigned long), mmcr0 470 arch/powerpc/kernel/sysfs.c SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0); mmcr0 649 arch/powerpc/kernel/sysfs.c __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), mmcr0 656 arch/powerpc/kernel/sysfs.c __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), mmcr0 677 arch/powerpc/kernel/sysfs.c __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), mmcr0 127 arch/powerpc/oprofile/common.c oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); mmcr0 57 arch/powerpc/oprofile/op_model_7450.c u32 mmcr0 = mfspr(SPRN_MMCR0); mmcr0 59 arch/powerpc/oprofile/op_model_7450.c mmcr0 &= ~(MMCR0_FC | MMCR0_FCM0); mmcr0 60 arch/powerpc/oprofile/op_model_7450.c mmcr0 |= (MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); mmcr0 62 arch/powerpc/oprofile/op_model_7450.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 68 arch/powerpc/oprofile/op_model_7450.c u32 mmcr0 = mfspr(SPRN_MMCR0); mmcr0 70 arch/powerpc/oprofile/op_model_7450.c mmcr0 |= MMCR0_FC; mmcr0 71 arch/powerpc/oprofile/op_model_7450.c mmcr0 &= ~(MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); mmcr0 73 arch/powerpc/oprofile/op_model_7450.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 94 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 &= ~(0x1UL << pmc); mmcr0 95 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 &= ~(0x1UL << (pmc+12)); mmcr0 100 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 |= PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN; mmcr0 102 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 &= ~(PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN); mmcr0 105 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 |= PA6T_MMCR0_PREN; mmcr0 107 arch/powerpc/oprofile/op_model_pa6t.c sys->mmcr0 &= ~PA6T_MMCR0_PREN; mmcr0 114 arch/powerpc/oprofile/op_model_pa6t.c mmcr0_val = sys->mmcr0; mmcr0 116 arch/powerpc/oprofile/op_model_pa6t.c pr_debug("mmcr0_val inited to %016lx\n", sys->mmcr0); mmcr0 132 arch/powerpc/oprofile/op_model_pa6t.c u64 mmcr0 = mmcr0_val; mmcr0 136 arch/powerpc/oprofile/op_model_pa6t.c mmcr0 &= ~(0x3FUL); mmcr0 137 arch/powerpc/oprofile/op_model_pa6t.c mtspr(SPRN_PA6T_MMCR0, mmcr0); mmcr0 155 arch/powerpc/oprofile/op_model_pa6t.c u64 mmcr0 = mmcr0_val | PA6T_MMCR0_HANDDIS; mmcr0 163 arch/powerpc/oprofile/op_model_pa6t.c mtspr(SPRN_PA6T_MMCR0, mmcr0); mmcr0 167 arch/powerpc/oprofile/op_model_pa6t.c pr_debug("start on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0); mmcr0 174 arch/powerpc/oprofile/op_model_pa6t.c u64 mmcr0; mmcr0 177 arch/powerpc/oprofile/op_model_pa6t.c mmcr0 = mfspr(SPRN_PA6T_MMCR0); mmcr0 178 arch/powerpc/oprofile/op_model_pa6t.c mmcr0 |= PA6T_MMCR0_FCM0; mmcr0 179 arch/powerpc/oprofile/op_model_pa6t.c mtspr(SPRN_PA6T_MMCR0, mmcr0); mmcr0 183 arch/powerpc/oprofile/op_model_pa6t.c pr_debug("stop on cpu %d, mmcr0 %llx\n", smp_processor_id(), mmcr0); mmcr0 194 arch/powerpc/oprofile/op_model_pa6t.c u64 mmcr0; mmcr0 197 arch/powerpc/oprofile/op_model_pa6t.c mmcr0 = mfspr(SPRN_PA6T_MMCR0); mmcr0 198 arch/powerpc/oprofile/op_model_pa6t.c mtspr(SPRN_PA6T_MMCR0, mmcr0 | PA6T_MMCR0_HANDDIS); mmcr0 207 arch/powerpc/oprofile/op_model_pa6t.c if (mmcr0 & PA6T_MMCR0_SIARLOG) mmcr0 217 arch/powerpc/oprofile/op_model_pa6t.c mmcr0 = mmcr0_val | PA6T_MMCR0_HANDDIS; mmcr0 218 arch/powerpc/oprofile/op_model_pa6t.c mtspr(SPRN_PA6T_MMCR0, mmcr0); mmcr0 103 arch/powerpc/oprofile/op_model_power4.c mmcr0_val = sys->mmcr0; mmcr0 171 arch/powerpc/oprofile/op_model_power4.c unsigned int mmcr0 = mmcr0_val; mmcr0 177 arch/powerpc/oprofile/op_model_power4.c mmcr0 |= MMCR0_FC; mmcr0 178 arch/powerpc/oprofile/op_model_power4.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 180 arch/powerpc/oprofile/op_model_power4.c mmcr0 |= MMCR0_FCM1|MMCR0_PMXE|MMCR0_FCECE; mmcr0 181 arch/powerpc/oprofile/op_model_power4.c mmcr0 |= MMCR0_PMC1CE|MMCR0_PMCjCE; mmcr0 182 arch/powerpc/oprofile/op_model_power4.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 203 arch/powerpc/oprofile/op_model_power4.c unsigned int mmcr0; mmcr0 216 arch/powerpc/oprofile/op_model_power4.c mmcr0 = mfspr(SPRN_MMCR0); mmcr0 222 arch/powerpc/oprofile/op_model_power4.c mmcr0 &= ~MMCR0_PMAO; mmcr0 229 arch/powerpc/oprofile/op_model_power4.c mmcr0 &= ~MMCR0_FC; mmcr0 230 arch/powerpc/oprofile/op_model_power4.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 234 arch/powerpc/oprofile/op_model_power4.c dbg("start on cpu %d, mmcr0 %x\n", smp_processor_id(), mmcr0); mmcr0 240 arch/powerpc/oprofile/op_model_power4.c unsigned int mmcr0; mmcr0 243 arch/powerpc/oprofile/op_model_power4.c mmcr0 = mfspr(SPRN_MMCR0); mmcr0 244 arch/powerpc/oprofile/op_model_power4.c mmcr0 |= MMCR0_FC; mmcr0 245 arch/powerpc/oprofile/op_model_power4.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 249 arch/powerpc/oprofile/op_model_power4.c dbg("stop on cpu %d, mmcr0 %x\n", smp_processor_id(), mmcr0); mmcr0 366 arch/powerpc/oprofile/op_model_power4.c unsigned int mmcr0; mmcr0 408 arch/powerpc/oprofile/op_model_power4.c mmcr0 = mfspr(SPRN_MMCR0); mmcr0 411 arch/powerpc/oprofile/op_model_power4.c mmcr0 |= MMCR0_PMXE; mmcr0 417 arch/powerpc/oprofile/op_model_power4.c mmcr0 &= ~MMCR0_PMAO; mmcr0 428 arch/powerpc/oprofile/op_model_power4.c mmcr0 &= ~MMCR0_FC; mmcr0 429 arch/powerpc/oprofile/op_model_power4.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 121 arch/powerpc/perf/core-book3s.c static void ebb_switch_out(unsigned long mmcr0) { } mmcr0 581 arch/powerpc/perf/core-book3s.c current->thread.mmcr0 |= MMCR0_PMXE; mmcr0 584 arch/powerpc/perf/core-book3s.c static void ebb_switch_out(unsigned long mmcr0) mmcr0 586 arch/powerpc/perf/core-book3s.c if (!(mmcr0 & MMCR0_EBE)) mmcr0 592 arch/powerpc/perf/core-book3s.c current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; mmcr0 598 arch/powerpc/perf/core-book3s.c unsigned long mmcr0 = cpuhw->mmcr[0]; mmcr0 604 arch/powerpc/perf/core-book3s.c mmcr0 |= MMCR0_EBE | MMCR0_BHRBA | MMCR0_PMCC_U6; mmcr0 611 arch/powerpc/perf/core-book3s.c mmcr0 |= current->thread.mmcr0; mmcr0 618 arch/powerpc/perf/core-book3s.c if (!(current->thread.mmcr0 & MMCR0_PMXE)) mmcr0 619 arch/powerpc/perf/core-book3s.c mmcr0 &= ~MMCR0_PMXE; mmcr0 634 arch/powerpc/perf/core-book3s.c return mmcr0; mmcr0 677 arch/powerpc/perf/core-book3s.c if ((current->thread.mmcr0 & (MMCR0_PMAO | MMCR0_PMAO_SYNC)) != MMCR0_PMAO) mmcr0 1162 arch/powerpc/perf/core-book3s.c static void write_mmcr0(struct cpu_hw_events *cpuhw, unsigned long mmcr0) mmcr0 1167 arch/powerpc/perf/core-book3s.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 1180 arch/powerpc/perf/core-book3s.c : "r" (mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)), mmcr0 1184 arch/powerpc/perf/core-book3s.c if (mmcr0 & MMCR0_FC) mmcr0 1193 arch/powerpc/perf/core-book3s.c if (mmcr0 & (MMCR0_PMC1CE | MMCR0_PMCjCE)) mmcr0 1194 arch/powerpc/perf/core-book3s.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 1204 arch/powerpc/perf/core-book3s.c unsigned long flags, mmcr0, val; mmcr0 1223 arch/powerpc/perf/core-book3s.c val = mmcr0 = mfspr(SPRN_MMCR0); mmcr0 1250 arch/powerpc/perf/core-book3s.c ebb_switch_out(mmcr0); mmcr0 1280 arch/powerpc/perf/core-book3s.c unsigned long val, mmcr0; mmcr0 1415 arch/powerpc/perf/core-book3s.c mmcr0 = ebb_switch_in(ebb, cpuhw); mmcr0 1421 arch/powerpc/perf/core-book3s.c write_mmcr0(cpuhw, mmcr0); mmcr0 267 arch/powerpc/perf/mpc7450-pmu.c u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; mmcr0 304 arch/powerpc/perf/mpc7450-pmu.c mmcr0 |= thresh << 16; mmcr0 311 arch/powerpc/perf/mpc7450-pmu.c mmcr0 |= ev; mmcr0 319 arch/powerpc/perf/mpc7450-pmu.c mmcr0 |= MMCR0_PMC1CE; mmcr0 321 arch/powerpc/perf/mpc7450-pmu.c mmcr0 |= MMCR0_PMCnCE; mmcr0 324 arch/powerpc/perf/mpc7450-pmu.c mmcr[0] = mmcr0; mmcr0 258 arch/powerpc/perf/ppc970-pmu.c unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; mmcr0 384 arch/powerpc/perf/ppc970-pmu.c mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); mmcr0 389 arch/powerpc/perf/ppc970-pmu.c mmcr0 |= MMCR0_PMC1CE; mmcr0 391 arch/powerpc/perf/ppc970-pmu.c mmcr0 |= MMCR0_PMCjCE; mmcr0 396 arch/powerpc/perf/ppc970-pmu.c mmcr[0] = mmcr0; mmcr0 594 arch/powerpc/platforms/powernv/idle.c u32 mmcr0; mmcr0 613 arch/powerpc/platforms/powernv/idle.c unsigned long mmcr0 = 0; mmcr0 658 arch/powerpc/platforms/powernv/idle.c mmcr0 = mfspr(SPRN_MMCR0); mmcr0 671 arch/powerpc/platforms/powernv/idle.c sprs.mmcr0 = mfspr(SPRN_MMCR0); mmcr0 721 arch/powerpc/platforms/powernv/idle.c mtspr(SPRN_MMCR0, mmcr0); mmcr0 790 arch/powerpc/platforms/powernv/idle.c mtspr(SPRN_MMCR0, sprs.mmcr0); mmcr0 219 tools/testing/selftests/powerpc/pmu/ebb/ebb.c u32 mmcr0; mmcr0 221 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mmcr0 = mfspr(SPRN_MMCR0); mmcr0 236 tools/testing/selftests/powerpc/pmu/ebb/ebb.c mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2),