Searched refs:mmcr1 (Results 1 - 13 of 13) sorted by relevance

/linux-4.1.27/arch/powerpc/perf/
H A Dpower4-pmu.c361 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; p4_compute_mmcr() local
435 mmcr1 |= (unsigned long)(unituse[3] * 2 + unituse[2]) p4_compute_mmcr()
437 mmcr1 |= (unsigned long)(unituse[7] * 3 + unituse[6] * 2) p4_compute_mmcr()
439 mmcr1 |= (unsigned long)unituse[9] << MMCR1_TTM2SEL_SH; p4_compute_mmcr()
443 mmcr1 |= 1ull << MMCR1_TTC0SEL_SH; p4_compute_mmcr()
445 mmcr1 |= 1ull << MMCR1_TTC1SEL_SH; p4_compute_mmcr()
447 mmcr1 |= 1ull << MMCR1_TTC2SEL_SH; p4_compute_mmcr()
449 mmcr1 |= 1ull << MMCR1_TTC3SEL_SH; p4_compute_mmcr()
458 mmcr1 |= 1ull << (MMCR1_DEBUG0SEL_SH - byte); p4_compute_mmcr()
464 mmcr1 |= (unsigned long)ttm p4_compute_mmcr()
497 mmcr1 |= 1ull << mmcr1_adder_bits[pmc]; p4_compute_mmcr()
506 mmcr1 |= psel << (MMCR1_PMC3SEL_SH - 5 * (pmc - 2)); p4_compute_mmcr()
523 mmcr[1] = mmcr1; p4_compute_mmcr()
H A Dppc970-pmu.c262 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; p970_compute_mmcr() local
323 mmcr1 |= (unsigned long)(ttm & ~4) << MMCR1_TTM1SEL_SH; p970_compute_mmcr()
341 mmcr1 |= 1ull << (MMCR1_TTM3SEL_SH + 3 - byte); p970_compute_mmcr()
343 mmcr1 |= (unsigned long)ttm p970_compute_mmcr()
378 mmcr1 |= 1ull << mmcr1_adder_bits[pmc]; p970_compute_mmcr()
383 mmcr1 |= spcsel; p970_compute_mmcr()
390 mmcr1 |= (unsigned long)pmcsel[pmc] p970_compute_mmcr()
401 mmcr[1] = mmcr1; p970_compute_mmcr()
H A Dpower6-pmu.c180 unsigned long mmcr1 = 0; p6_compute_mmcr() local
218 if ((ttmset & (1 << b)) && MMCR1_TTMSEL(mmcr1, b) != u) p6_compute_mmcr()
220 mmcr1 |= (unsigned long)u << MMCR1_TTMSEL_SH(b); p6_compute_mmcr()
226 MMCR1_NESTSEL(mmcr1) != s) p6_compute_mmcr()
229 mmcr1 |= (unsigned long)s << MMCR1_NESTSEL_SH; p6_compute_mmcr()
234 mmcr1 |= MMCR1_PMC1_ADDR_SEL >> pmc; p6_compute_mmcr()
241 mmcr1 |= MMCR1_PMC1_LLA >> pmc; p6_compute_mmcr()
243 mmcr1 |= MMCR1_PMC1_LLA_VALUE >> pmc; p6_compute_mmcr()
248 mmcr1 |= (unsigned long)psel << MMCR1_PMCSEL_SH(pmc); p6_compute_mmcr()
255 mmcr[1] = mmcr1; p6_compute_mmcr()
H A Dpower5+-pmu.c457 unsigned long mmcr1 = 0; power5p_compute_mmcr() local
520 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; power5p_compute_mmcr()
528 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; power5p_compute_mmcr()
543 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); power5p_compute_mmcr()
546 mmcr1 |= (unsigned long)ttm power5p_compute_mmcr()
572 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); power5p_compute_mmcr()
580 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; power5p_compute_mmcr()
588 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power5p_compute_mmcr()
598 mmcr[1] = mmcr1; power5p_compute_mmcr()
H A Dpower5-pmu.c388 unsigned long mmcr1 = 0; power5_compute_mmcr() local
460 mmcr1 |= (unsigned long)i << MMCR1_TTM0SEL_SH; power5_compute_mmcr()
468 mmcr1 |= (unsigned long)(i & 3) << MMCR1_TTM1SEL_SH; power5_compute_mmcr()
483 mmcr1 |= 1ul << (MMCR1_TTM3SEL_SH + 3 - byte); power5_compute_mmcr()
486 mmcr1 |= (unsigned long)ttm power5_compute_mmcr()
517 mmcr1 |= 1ul << (MMCR1_PMC1_ADDER_SEL_SH - pmc); power5_compute_mmcr()
525 mmcr1 |= (unsigned long)grsel << grsel_shift[bit]; power5_compute_mmcr()
530 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power5_compute_mmcr()
540 mmcr[1] = mmcr1; power5_compute_mmcr()
H A Dpower7-pmu.c250 unsigned long mmcr1 = 0; power7_compute_mmcr() local
289 mmcr1 |= (unsigned long) unit power7_compute_mmcr()
291 mmcr1 |= (unsigned long) combine power7_compute_mmcr()
293 mmcr1 |= psel << MMCR1_PMCSEL_SH(pmc); power7_compute_mmcr()
295 mmcr1 |= (unsigned long) l2sel power7_compute_mmcr()
309 mmcr[1] = mmcr1; power7_compute_mmcr()
H A Dpower8-pmu.c405 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; power8_compute_mmcr() local
420 mmcr1 = mmcr2 = 0; power8_compute_mmcr()
439 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); power8_compute_mmcr()
440 mmcr1 |= combine << MMCR1_COMBINE_SHIFT(pmc); power8_compute_mmcr()
441 mmcr1 |= psel << MMCR1_PMCSEL_SHIFT(pmc); power8_compute_mmcr()
446 mmcr1 |= (cache & 1) << MMCR1_IC_QUAL_SHIFT; power8_compute_mmcr()
448 mmcr1 |= (cache & 1) << MMCR1_DC_QUAL_SHIFT; power8_compute_mmcr()
466 mmcr1 |= ((event[i] >> EVENT_THR_CTL_SHIFT) & power8_compute_mmcr()
512 mmcr[1] = mmcr1; power8_compute_mmcr()
H A Dmpc7450-pmu.c271 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; mpc7450_compute_mmcr() local
317 mmcr1 |= ev; mpc7450_compute_mmcr()
329 mmcr[1] = mmcr1; mpc7450_compute_mmcr()
/linux-4.1.27/arch/powerpc/oprofile/
H A Dop_model_pa6t.c123 * mmcr1 values passed from the user in the op_system_config pa6t_reg_setup()
127 mmcr1_val = sys->mmcr1; pa6t_reg_setup()
129 pr_debug("mmcr1_val inited to %016lx\n", sys->mmcr1); pa6t_reg_setup()
145 u64 mmcr1 = mmcr1_val; pa6t_cpu_setup() local
152 mtspr(SPRN_PA6T_MMCR1, mmcr1); pa6t_cpu_setup()
156 pr_debug("setup on cpu %d, mmcr1 %016lx\n", smp_processor_id(), pa6t_cpu_setup()
H A Dop_model_power4.c42 static int power7_marked_instr_event(u64 mmcr1) power7_marked_instr_event() argument
52 psel = mmcr1 & (OPROFILE_PM_PMCSEL_MSK power7_marked_instr_event()
57 unit = mmcr1 & (OPROFILE_PM_UNIT_MSK power7_marked_instr_event()
104 * mmcr1 and mmcra values passed from the user in the power4_reg_setup()
108 mmcr1_val = sys->mmcr1; power4_reg_setup()
196 dbg("setup on cpu %d, mmcr1 %lx\n", smp_processor_id(), power4_cpu_setup()
H A Dcommon.c128 * There is one mmcr0, mmcr1 and mmcra for setting the events for op_powerpc_create_files()
132 oprofilefs_create_ulong(root, "mmcr1", &sys.mmcr1); op_powerpc_create_files()
/linux-4.1.27/arch/powerpc/include/asm/
H A Doprofile_impl.h33 unsigned long mmcr1; member in struct:op_system_config
/linux-4.1.27/arch/powerpc/kernel/
H A Dsysfs.c468 SYSFS_PMCSETUP(mmcr1, SPRN_MMCR1);
599 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
606 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),
627 __ATTR(mmcr1, 0600, show_mmcr1, store_mmcr1),

Completed in 92 milliseconds