/Linux-v5.4/arch/powerpc/perf/ |
D | power6-pmu.c | 176 unsigned long mmcr1 = 0; in p6_compute_mmcr() local 214 if ((ttmset & (1 << b)) && MMCR1_TTMSEL(mmcr1, b) != u) in p6_compute_mmcr() 216 mmcr1 |= (unsigned long)u << MMCR1_TTMSEL_SH(b); in p6_compute_mmcr() 222 MMCR1_NESTSEL(mmcr1) != s) in p6_compute_mmcr() 225 mmcr1 |= (unsigned long)s << MMCR1_NESTSEL_SH; in p6_compute_mmcr() 230 mmcr1 |= MMCR1_PMC1_ADDR_SEL >> pmc; in p6_compute_mmcr() 237 mmcr1 |= MMCR1_PMC1_LLA >> pmc; in p6_compute_mmcr() 239 mmcr1 |= MMCR1_PMC1_LLA_VALUE >> pmc; in p6_compute_mmcr() 244 mmcr1 |= (unsigned long)psel << MMCR1_PMCSEL_SH(pmc); in p6_compute_mmcr() 251 mmcr[1] = mmcr1; in p6_compute_mmcr()
|
D | ppc970-pmu.c | 258 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p970_compute_mmcr() local 319 mmcr1 |= (unsigned long)(ttm & ~4) << MMCR1_TTM1SEL_SH; in p970_compute_mmcr() 337 mmcr1 |= 1ull << (MMCR1_TTM3SEL_SH + 3 - byte); in p970_compute_mmcr() 339 mmcr1 |= (unsigned long)ttm in p970_compute_mmcr() 374 mmcr1 |= 1ull << mmcr1_adder_bits[pmc]; in p970_compute_mmcr() 379 mmcr1 |= spcsel; in p970_compute_mmcr() 386 mmcr1 |= (unsigned long)pmcsel[pmc] in p970_compute_mmcr() 397 mmcr[1] = mmcr1; in p970_compute_mmcr()
|
D | power5-pmu.c | 384 unsigned long mmcr1 = 0; in power5_compute_mmcr() local 456 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5_compute_mmcr() 464 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5_compute_mmcr() 479 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5_compute_mmcr() 482 mmcr1 |= (unsigned long)ttm in power5_compute_mmcr() 513 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5_compute_mmcr() 521 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5_compute_mmcr() 526 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5_compute_mmcr() 536 mmcr[1] = mmcr1; in power5_compute_mmcr()
|
D | isa207-common.c | 369 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in isa207_compute_mmcr() local 382 mmcra = mmcr1 = mmcr2 = 0; in isa207_compute_mmcr() 401 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); in isa207_compute_mmcr() 402 mmcr1 |= combine << combine_shift(pmc); in isa207_compute_mmcr() 403 mmcr1 |= psel << MMCR1_PMCSEL_SHIFT(pmc); in isa207_compute_mmcr() 411 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr() 415 mmcr1 |= (cache) << MMCR1_DC_IC_QUAL_SHIFT; in isa207_compute_mmcr() 434 mmcr1 |= ((event[i] >> EVENT_THR_CTL_SHIFT) & in isa207_compute_mmcr() 480 mmcr[1] = mmcr1; in isa207_compute_mmcr()
|
D | power5+-pmu.c | 453 unsigned long mmcr1 = 0; in power5p_compute_mmcr() local 516 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; in power5p_compute_mmcr() 524 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; in power5p_compute_mmcr() 539 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); in power5p_compute_mmcr() 542 mmcr1 |= (unsigned long)ttm in power5p_compute_mmcr() 568 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); in power5p_compute_mmcr() 576 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; in power5p_compute_mmcr() 584 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power5p_compute_mmcr() 594 mmcr[1] = mmcr1; in power5p_compute_mmcr()
|
D | power7-pmu.c | 247 unsigned long mmcr1 = 0; in power7_compute_mmcr() local 286 mmcr1 |= (unsigned long) unit in power7_compute_mmcr() 288 mmcr1 |= (unsigned long) combine in power7_compute_mmcr() 290 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); in power7_compute_mmcr() 292 mmcr1 |= (unsigned long) l2sel in power7_compute_mmcr() 306 mmcr[1] = mmcr1; in power7_compute_mmcr()
|
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[1] = mmcr1; in mpc7450_compute_mmcr()
|
/Linux-v5.4/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()
|
/Linux-v5.4/arch/powerpc/include/asm/ |
D | oprofile_impl.h | 29 unsigned long mmcr1; member
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | sysfs.c | 471 SYSFS_PMCSETUP(mmcr1, SPRN_MMCR1); 650 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1), 657 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1), 678 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
|
/Linux-v5.4/arch/powerpc/platforms/powernv/ |
D | idle.c | 595 u32 mmcr1; member 672 sprs.mmcr1 = mfspr(SPRN_MMCR1); in power9_idle_stop() 791 mtspr(SPRN_MMCR1, sprs.mmcr1); in power9_idle_stop()
|