Home
last modified time | relevance | path

Searched refs:mmcr (Results 1 – 16 of 16) sorted by relevance

/linux/arch/powerpc/perf/
A Dmpc7450-pmu.c260 struct mmcr_regs *mmcr, in mpc7450_compute_mmcr() argument
325 mmcr->mmcr0 = mmcr0; in mpc7450_compute_mmcr()
326 mmcr->mmcr1 = mmcr1; in mpc7450_compute_mmcr()
327 mmcr->mmcr2 = mmcr2; in mpc7450_compute_mmcr()
334 mmcr->mmcra = mmcr2; in mpc7450_compute_mmcr()
342 static void mpc7450_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in mpc7450_disable_pmc() argument
345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
347 mmcr->mmcr1 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
A Dppc970-pmu.c258 unsigned int hwc[], struct mmcr_regs *mmcr, in p970_compute_mmcr() argument
400 mmcr->mmcr0 = mmcr0; in p970_compute_mmcr()
401 mmcr->mmcr1 = mmcr1; in p970_compute_mmcr()
402 mmcr->mmcra = mmcra; in p970_compute_mmcr()
406 static void p970_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p970_disable_pmc() argument
415 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
418 mmcr->mmcr1 = (mmcr->mmcr1 & ~(0x1fUL << shift)) | (0x08UL << shift); in p970_disable_pmc()
A Dpower7-pmu.c247 unsigned int hwc[], struct mmcr_regs *mmcr, in power7_compute_mmcr() argument
305 mmcr->mmcr0 = 0; in power7_compute_mmcr()
307 mmcr->mmcr0 = MMCR0_PMC1CE; in power7_compute_mmcr()
309 mmcr->mmcr0 |= MMCR0_PMCjCE; in power7_compute_mmcr()
310 mmcr->mmcr1 = mmcr1; in power7_compute_mmcr()
311 mmcr->mmcra = mmcra; in power7_compute_mmcr()
315 static void power7_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power7_disable_pmc() argument
318 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in power7_disable_pmc()
A Dpower6-pmu.c176 unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], in p6_compute_mmcr() argument
249 mmcr->mmcr0 = 0; in p6_compute_mmcr()
251 mmcr->mmcr0 = MMCR0_PMC1CE; in p6_compute_mmcr()
253 mmcr->mmcr0 |= MMCR0_PMCjCE; in p6_compute_mmcr()
254 mmcr->mmcr1 = mmcr1; in p6_compute_mmcr()
255 mmcr->mmcra = mmcra; in p6_compute_mmcr()
463 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p6_disable_pmc() argument
467 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in p6_disable_pmc()
A Disa207-common.c527 unsigned int hwc[], struct mmcr_regs *mmcr, in isa207_compute_mmcr() argument
669 mmcr->mmcr0 = 0; in isa207_compute_mmcr()
673 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr()
676 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr()
680 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr()
688 mmcr->mmcr0 |= MMCR0_PMCCEXT; in isa207_compute_mmcr()
690 mmcr->mmcr1 = mmcr1; in isa207_compute_mmcr()
691 mmcr->mmcra = mmcra; in isa207_compute_mmcr()
692 mmcr->mmcr2 = mmcr2; in isa207_compute_mmcr()
693 mmcr->mmcr3 = mmcr3; in isa207_compute_mmcr()
[all …]
A Dpower5-pmu.c384 unsigned int hwc[], struct mmcr_regs *mmcr, in power5_compute_mmcr() argument
535 mmcr->mmcr0 = 0; in power5_compute_mmcr()
537 mmcr->mmcr0 = MMCR0_PMC1CE; in power5_compute_mmcr()
539 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5_compute_mmcr()
540 mmcr->mmcr1 = mmcr1; in power5_compute_mmcr()
541 mmcr->mmcra = mmcra; in power5_compute_mmcr()
545 static void power5_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5_disable_pmc() argument
548 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5_disable_pmc()
A Dcore-book3s.c41 struct mmcr_regs mmcr; member
129 return cpuhw->mmcr.mmcr0; in ebb_switch_in()
1302 val = mmcra = cpuhw->mmcr.mmcra; in power_pmu_disable()
1394 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1403 memset(&cpuhw->mmcr, 0, sizeof(cpuhw->mmcr)); in power_pmu_enable()
1420 cpuhw->mmcr.mmcr0 |= MMCR0_FCP; in power_pmu_enable()
1424 cpuhw->mmcr.mmcr0 |= MMCR0_FCHV; in power_pmu_enable()
1434 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); in power_pmu_enable()
1438 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2); in power_pmu_enable()
1441 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); in power_pmu_enable()
[all …]
A Dpower5+-pmu.c453 unsigned int hwc[], struct mmcr_regs *mmcr, in power5p_compute_mmcr() argument
593 mmcr->mmcr0 = 0; in power5p_compute_mmcr()
595 mmcr->mmcr0 = MMCR0_PMC1CE; in power5p_compute_mmcr()
597 mmcr->mmcr0 |= MMCR0_PMCjCE; in power5p_compute_mmcr()
598 mmcr->mmcr1 = mmcr1; in power5p_compute_mmcr()
599 mmcr->mmcra = mmcra; in power5p_compute_mmcr()
603 static void power5p_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5p_disable_pmc() argument
606 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); in power5p_disable_pmc()
A Dgeneric-compat-pmu.c283 unsigned int hwc[], struct mmcr_regs *mmcr, in generic_compute_mmcr() argument
288 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); in generic_compute_mmcr()
290 mmcr->mmcr0 |= MMCR0_C56RUN; in generic_compute_mmcr()
A Disa207-common.h281 unsigned int hwc[], struct mmcr_regs *mmcr,
283 void isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr);
A Dpower10-pmu.c558 unsigned int hwc[], struct mmcr_regs *mmcr, in power10_compute_mmcr() argument
563 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); in power10_compute_mmcr()
565 mmcr->mmcr0 |= MMCR0_C56RUN; in power10_compute_mmcr()
/linux/drivers/mtd/maps/
A Dsc520cdp.c172 unsigned long __iomem *mmcr; in sc520cdp_setup_par() local
177 mmcr = ioremap(SC520_MMCR_BASE, SC520_MMCR_EXTENT); in sc520cdp_setup_par()
178 if(!mmcr) { /* ioremap failed: skip the PAR reprogramming */ in sc520cdp_setup_par()
192 mmcr_val = readl(&mmcr[SC520_PAR(j)]); in sc520cdp_setup_par()
196 writel(par_table[i].new_par, &mmcr[SC520_PAR(j)]); in sc520cdp_setup_par()
209 iounmap(mmcr); in sc520cdp_setup_par()
/linux/arch/powerpc/include/asm/
A Dperf_event_server.h38 unsigned int hwc[], struct mmcr_regs *mmcr,
51 void (*disable_pmc)(unsigned int pmc, struct mmcr_regs *mmcr);
A Dkvm_host.h631 u64 mmcr[4]; /* MMCR0, MMCR1, MMCR2, MMCR3 */ member
/linux/arch/powerpc/kvm/
A Dbook3s_hv.c2049 *val = get_reg_val(id, vcpu->arch.mmcr[i]); in kvmppc_get_one_reg_hv()
2052 *val = get_reg_val(id, vcpu->arch.mmcr[2]); in kvmppc_get_one_reg_hv()
2061 *val = get_reg_val(id, vcpu->arch.mmcr[3]); in kvmppc_get_one_reg_hv()
2294 vcpu->arch.mmcr[i] = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
2297 vcpu->arch.mmcr[2] = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
2306 *val = get_reg_val(id, vcpu->arch.mmcr[3]); in kvmppc_set_one_reg_hv()
2717 vcpu->arch.mmcr[0] = MMCR0_FC; in kvmppc_core_vcpu_create_hv()
/linux/arch/powerpc/kernel/
A Dasm-offsets.c459 OFFSET(VCPU_MMCR, kvm_vcpu, arch.mmcr); in main()

Completed in 36 milliseconds