/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_p9_perf.c | 94 mtspr(SPRN_MMCR1, vcpu->arch.mmcr[1]); in switch_pmu_to_guest() 95 mtspr(SPRN_MMCR2, vcpu->arch.mmcr[2]); in switch_pmu_to_guest() 101 mtspr(SPRN_MMCR3, vcpu->arch.mmcr[3]); in switch_pmu_to_guest() 108 mtspr(SPRN_MMCR0, vcpu->arch.mmcr[0]); in switch_pmu_to_guest() 137 vcpu->arch.mmcr[0] = mfspr(SPRN_MMCR0); in switch_pmu_to_host() 140 freeze_pmu(vcpu->arch.mmcr[0], vcpu->arch.mmcra); in switch_pmu_to_host() 148 vcpu->arch.mmcr[1] = mfspr(SPRN_MMCR1); in switch_pmu_to_host() 149 vcpu->arch.mmcr[2] = mfspr(SPRN_MMCR2); in switch_pmu_to_host() 155 vcpu->arch.mmcr[3] = mfspr(SPRN_MMCR3); in switch_pmu_to_host()
|
H A D | book3s_hv.h | 127 KVMPPC_BOOK3S_HV_VCPU_ARRAY_ACCESSOR(mmcr, 64, KVMPPC_GSID_MMCR)
|
/linux/arch/powerpc/perf/ |
H A D | mpc7450-pmu.c | 260 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()
|
H A D | ppc970-pmu.c | 258 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()
|
H A D | power7-pmu.c | 247 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()
|
H A D | power6-pmu.c | 176 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() 475 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p6_disable_pmc() argument 479 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); in p6_disable_pmc()
|
H A D | power5-pmu.c | 384 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()
|
H A D | isa207-common.c | 559 unsigned int hwc[], struct mmcr_regs *mmcr, in isa207_compute_mmcr() argument 704 mmcr->mmcr0 = 0; in isa207_compute_mmcr() 708 mmcr->mmcr0 = MMCR0_PMC1CE; in isa207_compute_mmcr() 711 mmcr->mmcr0 |= MMCR0_PMCjCE; in isa207_compute_mmcr() 715 mmcr->mmcr0 |= MMCR0_FC56; in isa207_compute_mmcr() 723 mmcr->mmcr0 |= MMCR0_PMCCEXT; in isa207_compute_mmcr() 725 mmcr->mmcr1 = mmcr1; in isa207_compute_mmcr() 726 mmcr->mmcra = mmcra; in isa207_compute_mmcr() 727 mmcr->mmcr2 = mmcr2; in isa207_compute_mmcr() 728 mmcr->mmcr3 = mmcr3; in isa207_compute_mmcr() [all …]
|
H A D | power5+-pmu.c | 453 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()
|
H A D | generic-compat-pmu.c | 293 unsigned int hwc[], struct mmcr_regs *mmcr, in generic_compute_mmcr() argument 298 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); in generic_compute_mmcr() 300 mmcr->mmcr0 |= MMCR0_C56RUN; in generic_compute_mmcr()
|
H A D | isa207-common.h | 282 unsigned int hwc[], struct mmcr_regs *mmcr, 284 void isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr);
|
H A D | power10-pmu.c | 569 unsigned int hwc[], struct mmcr_regs *mmcr, in power10_compute_mmcr() argument 574 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); in power10_compute_mmcr() 576 mmcr->mmcr0 |= MMCR0_C56RUN; in power10_compute_mmcr()
|
/linux/drivers/mtd/maps/ |
H A D | sc520cdp.c | 172 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()
|