Lines Matching refs:mmcra

182 	unsigned long mmcra = regs->dsisr;  in perf_ip_adjust()  local
184 if ((ppmu->flags & PPMU_HAS_SSLOT) && (mmcra & MMCRA_SAMPLE_ENABLE)) { in perf_ip_adjust()
185 unsigned long slot = (mmcra & MMCRA_SLOT) >> MMCRA_SLOT_SHIFT; in perf_ip_adjust()
203 unsigned long mmcra = regs->dsisr; in perf_get_data_addr() local
220 sdar_valid = mmcra & sdsync; in perf_get_data_addr()
223 if (!(mmcra & MMCRA_SAMPLE_ENABLE) || sdar_valid) in perf_get_data_addr()
268 unsigned long mmcra = regs->dsisr; in perf_get_misc_flags() local
269 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_get_misc_flags()
325 unsigned long mmcra = mfspr(SPRN_MMCRA); in perf_read_regs() local
326 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in perf_read_regs()
329 regs->dsisr = mmcra; in perf_read_regs()
385 unsigned long mmcra = regs->dsisr; in siar_valid() local
386 int marked = mmcra & MMCRA_SAMPLE_ENABLE; in siar_valid()
400 return mmcra & POWER7P_MMCRA_SIAR_VALID; in siar_valid()
1266 unsigned long flags, mmcr0, val, mmcra; in power_pmu_disable() local
1302 val = mmcra = cpuhw->mmcr.mmcra; in power_pmu_disable()
1307 if (cpuhw->mmcr.mmcra & MMCRA_SAMPLE_ENABLE) in power_pmu_disable()
1318 if (val != mmcra) { in power_pmu_disable()
1319 mtspr(SPRN_MMCRA, mmcra); in power_pmu_disable()
1393 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1433 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra & ~MMCRA_SAMPLE_ENABLE); in power_pmu_enable()
1508 if (cpuhw->mmcr.mmcra & MMCRA_SAMPLE_ENABLE) { in power_pmu_enable()
1510 mtspr(SPRN_MMCRA, cpuhw->mmcr.mmcra); in power_pmu_enable()