Home
last modified time | relevance | path

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

/linux-3.4.99/arch/powerpc/oprofile/
Dop_model_pa6t.c107 sys->mmcr0 &= ~(0x1UL << pmc); in pa6t_reg_setup()
108 sys->mmcr0 &= ~(0x1UL << (pmc+12)); in pa6t_reg_setup()
113 sys->mmcr0 |= PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN; in pa6t_reg_setup()
115 sys->mmcr0 &= ~(PA6T_MMCR0_SUPEN | PA6T_MMCR0_HYPEN); in pa6t_reg_setup()
118 sys->mmcr0 |= PA6T_MMCR0_PREN; in pa6t_reg_setup()
120 sys->mmcr0 &= ~PA6T_MMCR0_PREN; in pa6t_reg_setup()
127 mmcr0_val = sys->mmcr0; in pa6t_reg_setup()
129 pr_debug("mmcr0_val inited to %016lx\n", sys->mmcr0); in pa6t_reg_setup()
145 u64 mmcr0 = mmcr0_val; in pa6t_cpu_setup() local
149 mmcr0 &= ~(0x3FUL); in pa6t_cpu_setup()
[all …]
Dop_model_rs64.c107 unsigned int mmcr0; in rs64_cpu_setup() local
110 mmcr0 = MMCR0_FC; in rs64_cpu_setup()
111 mtspr(SPRN_MMCR0, mmcr0); in rs64_cpu_setup()
119 mmcr0 |= MMCR0_FCM1|MMCR0_PMXE|MMCR0_FCECE; in rs64_cpu_setup()
121 mmcr0 |= MMCR0_PMC1CE|MMCR0_PMCjCE; in rs64_cpu_setup()
122 mtspr(SPRN_MMCR0, mmcr0); in rs64_cpu_setup()
135 unsigned int mmcr0; in rs64_start() local
149 mmcr0 = mfspr(SPRN_MMCR0); in rs64_start()
156 mmcr0 &= ~MMCR0_FC; in rs64_start()
157 mtspr(SPRN_MMCR0, mmcr0); in rs64_start()
[all …]
Dop_model_power4.c46 mmcr0_val = sys->mmcr0; in power4_reg_setup()
97 unsigned int mmcr0 = mmcr0_val; in power4_cpu_setup() local
103 mmcr0 |= MMCR0_FC; in power4_cpu_setup()
104 mtspr(SPRN_MMCR0, mmcr0); in power4_cpu_setup()
106 mmcr0 |= MMCR0_FCM1|MMCR0_PMXE|MMCR0_FCECE; in power4_cpu_setup()
107 mmcr0 |= MMCR0_PMC1CE|MMCR0_PMCjCE; in power4_cpu_setup()
108 mtspr(SPRN_MMCR0, mmcr0); in power4_cpu_setup()
129 unsigned int mmcr0; in power4_start() local
142 mmcr0 = mfspr(SPRN_MMCR0); in power4_start()
148 mmcr0 &= ~MMCR0_PMAO; in power4_start()
[all …]
Dop_model_7450.c62 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_start_ctrs() local
64 mmcr0 &= ~(MMCR0_FC | MMCR0_FCM0); in pmc_start_ctrs()
65 mmcr0 |= (MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); in pmc_start_ctrs()
67 mtspr(SPRN_MMCR0, mmcr0); in pmc_start_ctrs()
73 u32 mmcr0 = mfspr(SPRN_MMCR0); in pmc_stop_ctrs() local
75 mmcr0 |= MMCR0_FC; in pmc_stop_ctrs()
76 mmcr0 &= ~(MMCR0_FCECE | MMCR0_PMC1CE | MMCR0_PMCnCE | MMCR0_PMXE); in pmc_stop_ctrs()
78 mtspr(SPRN_MMCR0, mmcr0); in pmc_stop_ctrs()
Dcommon.c131 oprofilefs_create_ulong(sb, root, "mmcr0", &sys.mmcr0); in op_powerpc_create_files()
/linux-3.4.99/arch/powerpc/perf/
Dmpc7450-pmu.c270 u32 mmcr0 = 0, mmcr1 = 0, mmcr2 = 0; in mpc7450_compute_mmcr() local
307 mmcr0 |= thresh << 16; in mpc7450_compute_mmcr()
314 mmcr0 |= ev; in mpc7450_compute_mmcr()
322 mmcr0 |= MMCR0_PMC1CE; in mpc7450_compute_mmcr()
324 mmcr0 |= MMCR0_PMCnCE; in mpc7450_compute_mmcr()
327 mmcr[0] = mmcr0; in mpc7450_compute_mmcr()
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[0] = mmcr0; in p970_compute_mmcr()
Dpower4-pmu.c361 unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0; in p4_compute_mmcr() local
504 mmcr0 |= psel << (MMCR0_PMC1SEL_SH - 7 * pmc); in p4_compute_mmcr()
515 mmcr0 |= MMCR0_PMC1CE; in p4_compute_mmcr()
517 mmcr0 |= MMCR0_PMCjCE; in p4_compute_mmcr()
522 mmcr[0] = mmcr0; in p4_compute_mmcr()
Dcore-book3s.c553 static void write_mmcr0(struct cpu_hw_events *cpuhw, unsigned long mmcr0) in write_mmcr0() argument
558 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
571 : "r" (mmcr0 & ~(MMCR0_PMC1CE | MMCR0_PMCjCE)), in write_mmcr0()
575 if (mmcr0 & MMCR0_FC) in write_mmcr0()
584 if (mmcr0 & (MMCR0_PMC1CE | MMCR0_PMCjCE)) in write_mmcr0()
585 mtspr(SPRN_MMCR0, mmcr0); in write_mmcr0()
/linux-3.4.99/arch/powerpc/include/asm/
Doprofile_impl.h32 unsigned long mmcr0; member
/linux-3.4.99/arch/powerpc/kernel/
Dsysfs.c160 SYSFS_PMCSETUP(mmcr0, SPRN_MMCR0);
285 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
292 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),
313 __ATTR(mmcr0, 0600, show_mmcr0, store_mmcr0),