/kernel/linux/linux-5.10/arch/powerpc/perf/ |
D | power6-pmu.c | 178 unsigned long mmcr1 = 0; in p6_compute_mmcr() local 216 if ((ttmset & (1 << b)) && MMCR1_TTMSEL(mmcr1, b) != u) in p6_compute_mmcr() 218 mmcr1 |= (unsigned long)u << MMCR1_TTMSEL_SH(b); in p6_compute_mmcr() 224 MMCR1_NESTSEL(mmcr1) != s) in p6_compute_mmcr() 227 mmcr1 |= (unsigned long)s << MMCR1_NESTSEL_SH; in p6_compute_mmcr() 232 mmcr1 |= MMCR1_PMC1_ADDR_SEL >> pmc; in p6_compute_mmcr() 239 mmcr1 |= MMCR1_PMC1_LLA >> pmc; in p6_compute_mmcr() 241 mmcr1 |= MMCR1_PMC1_LLA_VALUE >> pmc; in p6_compute_mmcr() 246 mmcr1 |= (unsigned long)psel << MMCR1_PMCSEL_SH(pmc); in p6_compute_mmcr() 253 mmcr->mmcr1 = mmcr1; in p6_compute_mmcr() [all …]
|
D | ppc970-pmu.c | 261 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 322 mmcr1 |= (unsigned long)(ttm & ~4) << MMCR1_TTM1SEL_SH; in p970_compute_mmcr() 340 mmcr1 |= 1ull << (MMCR1_TTM3SEL_SH + 3 - byte); in p970_compute_mmcr() 342 mmcr1 |= (unsigned long)ttm in p970_compute_mmcr() 377 mmcr1 |= 1ull << mmcr1_adder_bits[pmc]; in p970_compute_mmcr() 382 mmcr1 |= spcsel; in p970_compute_mmcr() 389 mmcr1 |= (unsigned long)pmcsel[pmc] in p970_compute_mmcr() 400 mmcr->mmcr1 = mmcr1; in p970_compute_mmcr() 417 mmcr->mmcr1 = (mmcr->mmcr1 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
|
D | power5-pmu.c | 387 unsigned long mmcr1 = 0; in power5_compute_mmcr() local 459 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5_compute_mmcr() 467 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5_compute_mmcr() 482 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5_compute_mmcr() 485 mmcr1 |= (unsigned long)ttm in power5_compute_mmcr() 516 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5_compute_mmcr() 524 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5_compute_mmcr() 529 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5_compute_mmcr() 539 mmcr->mmcr1 = mmcr1; in power5_compute_mmcr() 547 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5_disable_pmc()
|
D | power5+-pmu.c | 456 unsigned long mmcr1 = 0; in power5p_compute_mmcr() local 519 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5p_compute_mmcr() 527 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5p_compute_mmcr() 542 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5p_compute_mmcr() 545 mmcr1 |= (unsigned long)ttm in power5p_compute_mmcr() 571 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5p_compute_mmcr() 579 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5p_compute_mmcr() 587 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5p_compute_mmcr() 597 mmcr->mmcr1 = mmcr1; in power5p_compute_mmcr() 605 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5p_disable_pmc()
|
D | isa207-common.c | 416 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() 456 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); in isa207_compute_mmcr() 457 mmcr1 |= combine << combine_shift(pmc); in isa207_compute_mmcr() 458 mmcr1 |= psel << MMCR1_PMCSEL_SHIFT(pmc); in isa207_compute_mmcr() 466 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr() 470 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr() 478 mmcr1 |= val << p10_MMCR1_RADIX_SCOPE_QUAL_SHIFT; in isa207_compute_mmcr() 496 mmcr1 |= ((event[i] >> EVENT_THR_CTL_SHIFT) & in isa207_compute_mmcr() 572 mmcr->mmcr1 = mmcr1; in isa207_compute_mmcr() [all …]
|
D | power7-pmu.c | 250 unsigned long mmcr1 = 0; in power7_compute_mmcr() local 289 mmcr1 |= (unsigned long) unit in power7_compute_mmcr() 291 mmcr1 |= (unsigned long) combine in power7_compute_mmcr() 293 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power7_compute_mmcr() 295 mmcr1 |= (unsigned long) l2sel in power7_compute_mmcr() 309 mmcr->mmcr1 = mmcr1; in power7_compute_mmcr() 317 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in power7_disable_pmc()
|
D | mpc7450-pmu.c | 267 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local 313 mmcr1 |= ev; in mpc7450_compute_mmcr() 325 mmcr->mmcr1 = mmcr1; in mpc7450_compute_mmcr() 346 mmcr->mmcr1 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
|
D | core-book3s.c | 1393 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable() 1433 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
|
/kernel/linux/linux-5.10/arch/powerpc/oprofile/ |
D | op_model_pa6t.c | 115 mmcr1_val = sys->mmcr1; in pa6t_reg_setup() 117 pr_debug("mmcr1_val inited to %016lx\n", sys->mmcr1); in pa6t_reg_setup() 133 u64 mmcr1 = mmcr1_val; in pa6t_cpu_setup() local 140 mtspr(SPRN_PA6T_MMCR1, mmcr1); in pa6t_cpu_setup()
|
D | op_model_power4.c | 38 static int power7_marked_instr_event(u64 mmcr1) in power7_marked_instr_event() argument 48 psel = mmcr1 & (OPROFILE_PM_PMCSEL_MSK in power7_marked_instr_event() 53 unit = mmcr1 & (OPROFILE_PM_UNIT_MSK in power7_marked_instr_event() 104 mmcr1_val = sys->mmcr1; in power4_reg_setup()
|
D | common.c | 128 oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1); in op_powerpc_create_files()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 29 unsigned long mmcr1; member
|
D | perf_event_server.h | 22 unsigned long mmcr1; member
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | sysfs.c | 598 SYSFS_PMCSETUP(mmcr1, SPRN_MMCR1); 668 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1), 675 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1), 699 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
|
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/ |
D | perf_regs.c | 66 SMPL_REG(mmcr1, PERF_REG_POWERPC_MMCR1),
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
D | idle.c | 595 u32 mmcr1; member 674 sprs.mmcr1 = mfspr(SPRN_MMCR1); in power9_idle_stop() 791 mtspr(SPRN_MMCR1, sprs.mmcr1); in power9_idle_stop()
|