Home
last modified time | relevance | path

Searched refs:mmcr2 (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/perf/
Disa207-common.c416 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local
430 mmcra = mmcr1 = mmcr2 = mmcr3 = 0; in isa207_compute_mmcr()
513 mmcr2 |= val << p10_L2L3_SEL_SHIFT; in isa207_compute_mmcr()
527 mmcr2 |= MMCR2_FCP(pmc); in isa207_compute_mmcr()
530 mmcr2 |= MMCR2_FCH(pmc); in isa207_compute_mmcr()
534 mmcr2 |= MMCR2_FCH(pmc); in isa207_compute_mmcr()
536 mmcr2 |= MMCR2_FCS(pmc); in isa207_compute_mmcr()
574 mmcr->mmcr2 = mmcr2; in isa207_compute_mmcr()
Dmpc7450-pmu.c267 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
306 mmcr2 = 0x80000000; in mpc7450_compute_mmcr()
326 mmcr->mmcr2 = mmcr2; in mpc7450_compute_mmcr()
333 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
Dcore-book3s.c586 current->thread.mmcr2 = mfspr(SPRN_MMCR2) & MMCR2_USER_MASK; in ebb_switch_out()
630 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); in ebb_switch_in()
1437 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dswitch_to.h106 t->thread.mmcr2 = 0; in clear_task_ebb()
Dperf_event_server.h23 unsigned long mmcr2; member
Dprocessor.h266 unsigned long mmcr2; member
/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-view.c411 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_get()
412 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_get()
429 BUILD_BUG_ON(TSO(sier) + sizeof(unsigned long) != TSO(mmcr2)); in pmu_set()
430 BUILD_BUG_ON(TSO(mmcr2) + sizeof(unsigned long) != TSO(mmcr0)); in pmu_set()
450 &target->thread.mmcr2, 3 * sizeof(unsigned long), in pmu_set()
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/
Dperf_regs.c67 SMPL_REG(mmcr2, PERF_REG_POWERPC_MMCR2),
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Didle.c596 u64 mmcr2; member
675 sprs.mmcr2 = mfspr(SPRN_MMCR2); in power9_idle_stop()
792 mtspr(SPRN_MMCR2, sprs.mmcr2); in power9_idle_stop()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsysfs.c608 SYSFS_PMCSETUP(mmcr2, SPRN_MMCR2);
676 __ATTR(mmcr2, 0600, show_mmcr2, store_mmcr2),