Home
last modified time | relevance | path

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

/linux/arch/powerpc/perf/
A Dmpc7450-pmu.c268 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
305 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr()
312 mmcr0 |= ev; in mpc7450_compute_mmcr()
320 mmcr0 |= MMCR0_PMC1CE; in mpc7450_compute_mmcr()
322 mmcr0 |= MMCR0_PMCnCE; in mpc7450_compute_mmcr()
325 mmcr->mmcr0 = mmcr0; in mpc7450_compute_mmcr()
345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
A Dcore-book3s.c129 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
631 if (!(mmcr0 & MMCR0_EBE)) in ebb_switch_out()
637 current->thread.mmcr0 = mmcr0 & MMCR0_USER_MASK; in ebb_switch_out()
648 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; in ebb_switch_in() local
661 mmcr0 |= current->thread.mmcr0; in ebb_switch_in()
669 mmcr0 &= ~MMCR0_PMXE; in ebb_switch_in()
690 return mmcr0; in ebb_switch_in()
1229 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
1246 if (mmcr0 & MMCR0_FC) in write_mmcr0()
1327 ebb_switch_out(mmcr0); in power_pmu_disable()
[all …]
A Dppc970-pmu.c262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local
388 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr()
393 mmcr0 |= MMCR0_PMC1CE; in p970_compute_mmcr()
395 mmcr0 |= MMCR0_PMCjCE; in p970_compute_mmcr()
400 mmcr->mmcr0 = mmcr0; in p970_compute_mmcr()
415 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
A Disa207-common.c669 mmcr->mmcr0 = 0; in isa207_compute_mmcr()
673 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr()
676 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr()
680 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr()
688 mmcr->mmcr0 |= MMCR0_PMCCEXT; in isa207_compute_mmcr()
A Dpower7-pmu.c305 mmcr->mmcr0 = 0; in power7_compute_mmcr()
307 mmcr->mmcr0 = MMCR0_PMC1CE; in power7_compute_mmcr()
309 mmcr->mmcr0 |= MMCR0_PMCjCE; in power7_compute_mmcr()
A Dpower6-pmu.c249 mmcr->mmcr0 = 0; in p6_compute_mmcr()
251 mmcr->mmcr0 = MMCR0_PMC1CE; in p6_compute_mmcr()
253 mmcr->mmcr0 |= MMCR0_PMCjCE; in p6_compute_mmcr()
A Dpower5-pmu.c535 mmcr->mmcr0 = 0; in power5_compute_mmcr()
537 mmcr->mmcr0 = MMCR0_PMC1CE; in power5_compute_mmcr()
539 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5_compute_mmcr()
A Dpower5+-pmu.c593 mmcr->mmcr0 = 0; in power5p_compute_mmcr()
595 mmcr->mmcr0 = MMCR0_PMC1CE; in power5p_compute_mmcr()
597 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5p_compute_mmcr()
A Dgeneric-compat-pmu.c290 mmcr->mmcr0 |= MMCR0_C56RUN; in generic_compute_mmcr()
A Dpower10-pmu.c565 mmcr->mmcr0 |= MMCR0_C56RUN; in power10_compute_mmcr()
/linux/tools/testing/selftests/powerpc/pmu/ebb/
A 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/arch/powerpc/platforms/powernv/
A Didle.c596 u32 mmcr0; member
615 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/arch/powerpc/include/asm/
A Dswitch_to.h107 t->thread.mmcr0 = 0; in clear_task_ebb()
A Dperf_event_server.h21 unsigned long mmcr0; member
A Dprocessor.h256 unsigned mmcr0; member
/linux/arch/powerpc/kernel/
A 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/arch/powerpc/kernel/ptrace/
A Dptrace-view.c404 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
422 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
447 &target->thread.mmcr0, 4 * sizeof(unsigned long), in pmu_set()
/linux/tools/perf/arch/powerpc/util/
A Dperf_regs.c65 SMPL_REG(mmcr0, PERF_REG_POWERPC_MMCR0),

Completed in 34 milliseconds