/linux-master/arch/powerpc/kvm/ |
H A D | book3s_hv_p9_perf.c | 94 mtspr(SPRN_MMCR1, vcpu->arch.mmcr[1]); 95 mtspr(SPRN_MMCR2, vcpu->arch.mmcr[2]); 101 mtspr(SPRN_MMCR3, vcpu->arch.mmcr[3]); 108 mtspr(SPRN_MMCR0, vcpu->arch.mmcr[0]); 137 vcpu->arch.mmcr[0] = mfspr(SPRN_MMCR0); 140 freeze_pmu(vcpu->arch.mmcr[0], vcpu->arch.mmcra); 148 vcpu->arch.mmcr[1] = mfspr(SPRN_MMCR1); 149 vcpu->arch.mmcr[2] = mfspr(SPRN_MMCR2); 155 vcpu->arch.mmcr[3] = mfspr(SPRN_MMCR3);
|
H A D | book3s_hv.h | 124 KVMPPC_BOOK3S_HV_VCPU_ARRAY_ACCESSOR(mmcr, 64, KVMPPC_GSID_MMCR)
|
H A D | book3s_hv_nestedv2.c | 243 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.mmcr[i]); 487 vcpu->arch.mmcr[i] = kvmppc_gse_get_u64(gse);
|
H A D | book3s_hv.c | 2543 *val = get_reg_val(id, vcpu->arch.mmcr[3]);
|
/linux-master/arch/powerpc/perf/ |
H A D | ppc970-pmu.c | 258 unsigned int hwc[], struct mmcr_regs *mmcr, 400 mmcr->mmcr0 = mmcr0; 401 mmcr->mmcr1 = mmcr1; 402 mmcr->mmcra = mmcra; 406 static void p970_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 415 mmcr->mmcr0 = (mmcr->mmcr0 & ~(0x1fUL << shift)) | (0x08UL << shift); 418 mmcr->mmcr1 = (mmcr->mmcr1 & ~(0x1fUL << shift)) | (0x08UL << shift); 257 p970_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | power7-pmu.c | 247 unsigned int hwc[], struct mmcr_regs *mmcr, 305 mmcr->mmcr0 = 0; 307 mmcr->mmcr0 = MMCR0_PMC1CE; 309 mmcr->mmcr0 |= MMCR0_PMCjCE; 310 mmcr->mmcr1 = mmcr1; 311 mmcr->mmcra = mmcra; 315 static void power7_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 318 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); 246 power7_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | mpc7450-pmu.c | 260 struct mmcr_regs *mmcr, 325 mmcr->mmcr0 = mmcr0; 326 mmcr->mmcr1 = mmcr1; 327 mmcr->mmcr2 = mmcr2; 334 mmcr->mmcra = mmcr2; 342 static void mpc7450_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); 347 mmcr->mmcr1 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); 259 mpc7450_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | isa207-common.c | 559 unsigned int hwc[], struct mmcr_regs *mmcr, 704 mmcr->mmcr0 = 0; 708 mmcr->mmcr0 = MMCR0_PMC1CE; 711 mmcr->mmcr0 |= MMCR0_PMCjCE; 715 mmcr->mmcr0 |= MMCR0_FC56; 723 mmcr->mmcr0 |= MMCR0_PMCCEXT; 725 mmcr->mmcr1 = mmcr1; 726 mmcr->mmcra = mmcra; 727 mmcr->mmcr2 = mmcr2; 728 mmcr 558 isa207_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags) argument 733 isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument [all...] |
H A D | power5-pmu.c | 384 unsigned int hwc[], struct mmcr_regs *mmcr, 535 mmcr->mmcr0 = 0; 537 mmcr->mmcr0 = MMCR0_PMC1CE; 539 mmcr->mmcr0 |= MMCR0_PMCjCE; 540 mmcr->mmcr1 = mmcr1; 541 mmcr->mmcra = mmcra; 545 static void power5_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 548 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); 383 power5_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | power6-pmu.c | 176 unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], 249 mmcr->mmcr0 = 0; 251 mmcr->mmcr0 = MMCR0_PMC1CE; 253 mmcr->mmcr0 |= MMCR0_PMCjCE; 254 mmcr->mmcr1 = mmcr1; 255 mmcr->mmcra = mmcra; 475 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 479 mmcr->mmcr1 &= ~(0xffUL << MMCR1_PMCSEL_SH(pmc)); 175 p6_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | core-book3s.c | 42 struct mmcr_regs mmcr; member in struct:cpu_hw_events 130 return cpuhw->mmcr.mmcr0; 649 unsigned long mmcr0 = cpuhw->mmcr.mmcr0; 683 mtspr(SPRN_MMCR2, cpuhw->mmcr.mmcr2 | current->thread.mmcr2); 1369 val = mmcra = cpuhw->mmcr.mmcra; 1468 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); 1469 mtspr(SPRN_MMCR1, cpuhw->mmcr.mmcr1); 1471 mtspr(SPRN_MMCR3, cpuhw->mmcr.mmcr3); 1478 memset(&cpuhw->mmcr, 0, sizeof(cpuhw->mmcr)); [all...] |
H A D | power5+-pmu.c | 453 unsigned int hwc[], struct mmcr_regs *mmcr, 593 mmcr->mmcr0 = 0; 595 mmcr->mmcr0 = MMCR0_PMC1CE; 597 mmcr->mmcr0 |= MMCR0_PMCjCE; 598 mmcr->mmcr1 = mmcr1; 599 mmcr->mmcra = mmcra; 603 static void power5p_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) argument 606 mmcr->mmcr1 &= ~(0x7fUL << MMCR1_PMCSEL_SH(pmc)); 452 power5p_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags __maybe_unused) argument
|
H A D | generic-compat-pmu.c | 293 unsigned int hwc[], struct mmcr_regs *mmcr, 298 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); 300 mmcr->mmcr0 |= MMCR0_C56RUN; 292 generic_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags) argument
|
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, 574 ret = isa207_compute_mmcr(event, n_ev, hwc, mmcr, pevents, flags); 576 mmcr->mmcr0 |= MMCR0_C56RUN; 568 power10_compute_mmcr(u64 event[], int n_ev, unsigned int hwc[], struct mmcr_regs *mmcr, struct perf_event *pevents[], u32 flags) argument
|
/linux-master/drivers/mtd/maps/ |
H A D | sc520cdp.c | 172 unsigned long __iomem *mmcr; local 177 mmcr = ioremap(SC520_MMCR_BASE, SC520_MMCR_EXTENT); 178 if(!mmcr) { /* ioremap failed: skip the PAR reprogramming */ 192 mmcr_val = readl(&mmcr[SC520_PAR(j)]); 196 writel(par_table[i].new_par, &mmcr[SC520_PAR(j)]); 209 iounmap(mmcr);
|
/linux-master/arch/powerpc/include/asm/ |
H A D | perf_event_server.h | 38 unsigned int hwc[], struct mmcr_regs *mmcr, 51 void (*disable_pmc)(unsigned int pmc, struct mmcr_regs *mmcr);
|
H A D | kvm_host.h | 659 u64 mmcr[4]; /* MMCR0, MMCR1, MMCR2, MMCR3 */ member in struct:kvmppc_slb::kvm_vcpu_arch
|
/linux-master/arch/powerpc/kernel/ |
H A D | asm-offsets.c | 454 OFFSET(VCPU_MMCR, kvm_vcpu, arch.mmcr);
|