Home
last modified time | relevance | path

Searched refs:mmcr0 (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.10/arch/powerpc/oprofile/
Dop_model_pa6t.c94 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 …]
Dop_model_power4.c103 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 …]
Dop_model_7450.c57 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()
Dcommon.c127 oprofilefs_create_ulong(root, "mmcr0", &sys.mmcr0); in op_powerpc_create_files()
/Linux-v5.10/arch/powerpc/perf/
Dmpc7450-pmu.c267 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->mmcr0 = mmcr0; in mpc7450_compute_mmcr()
344 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
Dcore-book3s.c125 static void ebb_switch_out(unsigned long mmcr0) { } in ebb_switch_out() argument
128 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
583 current->thread.mmcr0 |= MMCR0_PMXE; in ebb_event_add()
586 static void ebb_switch_out(unsigned long mmcr0) in ebb_switch_out() argument
588 if (!(mmcr0 & MMCR0_EBE)) in ebb_switch_out()
594 current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; in ebb_switch_out()
605 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in() local
611 mmcr0 |= MMCR0_EBE | MMCR0_BHRBA | MMCR0_PMCC_U6; in ebb_switch_in()
618 mmcr0 |= current->thread.mmcr0; in ebb_switch_in()
625 if (!(current->thread.mmcr0 & MMCR0_PMXE)) in ebb_switch_in()
[all …]
Dppc970-pmu.c261 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
387 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr()
392 mmcr0 |= MMCR0_PMC1CE; in p970_compute_mmcr()
394 mmcr0 |= MMCR0_PMCjCE; in p970_compute_mmcr()
399 mmcr->mmcr0 = mmcr0; in p970_compute_mmcr()
414 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
Dpower7-pmu.c304 mmcr->mmcr0 = 0; in power7_compute_mmcr()
306 mmcr->mmcr0 = MMCR0_PMC1CE; in power7_compute_mmcr()
308 mmcr->mmcr0 |= MMCR0_PMCjCE; in power7_compute_mmcr()
Disa207-common.c529 mmcr->mmcr0 = 0; in isa207_compute_mmcr()
533 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr()
536 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr()
540 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr()
Dpower6-pmu.c248 mmcr->mmcr0 = 0; in p6_compute_mmcr()
250 mmcr->mmcr0 = MMCR0_PMC1CE; in p6_compute_mmcr()
252 mmcr->mmcr0 |= MMCR0_PMCjCE; in p6_compute_mmcr()
Dpower5-pmu.c534 mmcr->mmcr0 = 0; in power5_compute_mmcr()
536 mmcr->mmcr0 = MMCR0_PMC1CE; in power5_compute_mmcr()
538 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5_compute_mmcr()
Dpower5+-pmu.c592 mmcr->mmcr0 = 0; in power5p_compute_mmcr()
594 mmcr->mmcr0 = MMCR0_PMC1CE; in power5p_compute_mmcr()
596 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5p_compute_mmcr()
/Linux-v5.10/tools/testing/selftests/powerpc/pmu/ebb/
Debb.c219 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.10/arch/powerpc/include/asm/
Doprofile_impl.h28 unsigned long mmcr0; member
Dswitch_to.h97 t->thread.mmcr0 = 0; in clear_task_ebb()
Dperf_event_server.h21 unsigned long mmcr0; member
Dprocessor.h267 unsigned mmcr0; member
/Linux-v5.10/arch/powerpc/platforms/powernv/
Didle.c594 u32 mmcr0; member
613 unsigned long mmcr0 = 0; in power9_idle_stop() local
659 mmcr0 = mfspr(SPRN_MMCR0); in power9_idle_stop()
673 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.10/arch/powerpc/kernel/
Dsysfs.c597 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
667 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
674 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
698 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
/Linux-v5.10/tools/perf/arch/powerpc/util/
Dperf_regs.c65 SMPL_REG(mmcr0, PERF_REG_POWERPC_MMCR0),
/Linux-v5.10/arch/powerpc/kernel/ptrace/
Dptrace-view.c412 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
430 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
455 &target->thread.mmcr0, 4 * sizeof(unsigned long), in pmu_set()