/Linux-v5.4/arch/powerpc/oprofile/ |
D | op_model_pa6t.c | 94 sys->mmcr0 &= ~(0x1UL << pmc); in pa6t_reg_setup() 95 sys->mmcr0 &= ~(0x1UL << (pmc+12)); in pa6t_reg_setup() 100 sys->mmcr0 |= PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN; in pa6t_reg_setup() 102 sys->mmcr0 &= ~(PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN); in pa6t_reg_setup() 105 sys->mmcr0 |= PA6T_MMCR0_PREN; in pa6t_reg_setup() 107 sys->mmcr0 &= ~PA6T_MMCR0_PREN; in pa6t_reg_setup() 114 mmcr0_val = sys->mmcr0; in pa6t_reg_setup() 116 pr_debug("mmcr0_val inited to %016lx\n", sys->mmcr0); in pa6t_reg_setup() 132 u64 mmcr0 = mmcr0_val; in pa6t_cpu_setup() local 136 mmcr0 &= ~(0x3FUL); in pa6t_cpu_setup() [all …]
|
D | op_model_power4.c | 103 mmcr0_val = sys->mmcr0; in power4_reg_setup() 171 unsigned int mmcr0 = mmcr0_val; in power4_cpu_setup() local 177 mmcr0 |= MMCR0_FC; in power4_cpu_setup() 178 mtspr(SPRN_MMCR0, mmcr0); in power4_cpu_setup() 180 mmcr0 |= MMCR0_FCM1|MMCR0_PMXE|MMCR0_FCECE; in power4_cpu_setup() 181 mmcr0 |= MMCR0_PMC1CE|MMCR0_PMCjCE; in power4_cpu_setup() 182 mtspr(SPRN_MMCR0, mmcr0); in power4_cpu_setup() 203 unsigned int mmcr0; in power4_start() local 216 mmcr0 = mfspr(SPRN_MMCR0); in power4_start() 222 mmcr0 &= ~MMCR0_PMAO; in power4_start() [all …]
|
D | op_model_7450.c | 57 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_start_ctrs() local 59 mmcr0 &= ~(MMCR0_FC | MMCR0_FCM0); in pmc_start_ctrs() 60 mmcr0 |= (MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); in pmc_start_ctrs() 62 mtspr(SPRN_MMCR0, mmcr0); in pmc_start_ctrs() 68 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_stop_ctrs() local 70 mmcr0 |= MMCR0_FC; in pmc_stop_ctrs() 71 mmcr0 &= ~(MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); in pmc_stop_ctrs() 73 mtspr(SPRN_MMCR0, mmcr0); in pmc_stop_ctrs()
|
D | common.c | 127 oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); in op_powerpc_create_files()
|
/Linux-v5.4/arch/powerpc/perf/ |
D | mpc7450-pmu.c | 267 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local 304 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr() 311 mmcr0 |= ev; in mpc7450_compute_mmcr() 319 mmcr0 |= MMCR0_PMC1CE; in mpc7450_compute_mmcr() 321 mmcr0 |= MMCR0_PMCnCE; in mpc7450_compute_mmcr() 324 mmcr[0] = mmcr0; in mpc7450_compute_mmcr()
|
D | core-book3s.c | 121 static void ebb_switch_out(unsigned long mmcr0) { } in ebb_switch_out() argument 581 current->thread.mmcr0 |= MMCR0_PMXE; in ebb_event_add() 584 static void ebb_switch_out(unsigned long mmcr0) in ebb_switch_out() argument 586 if (!(mmcr0 & MMCR0_EBE)) in ebb_switch_out() 592 current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; in ebb_switch_out() 598 unsigned long mmcr0 = cpuhw->mmcr[0]; in ebb_switch_in() local 604 mmcr0 |= MMCR0_EBE | MMCR0_BHRBA | MMCR0_PMCC_U6; in ebb_switch_in() 611 mmcr0 |= current->thread.mmcr0; in ebb_switch_in() 618 if (!(current->thread.mmcr0 & MMCR0_PMXE)) in ebb_switch_in() 619 mmcr0 &= ~MMCR0_PMXE; in ebb_switch_in() [all …]
|
D | ppc970-pmu.c | 258 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 384 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr() 389 mmcr0 |= MMCR0_PMC1CE; in p970_compute_mmcr() 391 mmcr0 |= MMCR0_PMCjCE; in p970_compute_mmcr() 396 mmcr[0] = mmcr0; in p970_compute_mmcr()
|
/Linux-v5.4/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 219 u32 mmcr0; in dump_ebb_hw_state() local 221 mmcr0 = mfspr(SPRN_MMCR0); in dump_ebb_hw_state() 236 mmcr0, decode_mmcr0(mmcr0), mfspr(SPRN_MMCR2), in dump_ebb_hw_state()
|
/Linux-v5.4/arch/powerpc/platforms/powernv/ |
D | idle.c | 594 u32 mmcr0; member 613 unsigned long mmcr0 = 0; in power9_idle_stop() local 658 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 671 sprs.mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop() 721 mtspr(SPRN_MMCR0, mmcr0); in power9_idle_stop() 790 mtspr(SPRN_MMCR0, sprs.mmcr0); in power9_idle_stop()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 28 unsigned long mmcr0; member
|
D | switch_to.h | 86 t->thread.mmcr0 = 0; in clear_task_ebb()
|
D | processor.h | 262 unsigned mmcr0; member
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | sysfs.c | 470 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0); 649 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), 656 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0), 677 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
|
D | ptrace.c | 1753 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get() 1774 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set() 1800 &target->thread.mmcr0, 4 * sizeof(unsigned long), in pmu_set()
|