Home
last modified time | relevance | path

Searched refs:pmcr (Results 1 – 8 of 8) sorted by relevance

/linux-6.3-rc2/arch/arm/kernel/
A Dperf_event_v6.c213 armv6_pmcr_has_overflowed(unsigned long pmcr) in armv6_pmcr_has_overflowed() argument
215 return pmcr & ARMV6_PMCR_OVERFLOWED_MASK; in armv6_pmcr_has_overflowed()
219 armv6_pmcr_counter_has_overflowed(unsigned long pmcr, in armv6_pmcr_counter_has_overflowed() argument
225 ret = pmcr & ARMV6_PMCR_CCOUNT_OVERFLOW; in armv6_pmcr_counter_has_overflowed()
227 ret = pmcr & ARMV6_PMCR_COUNT0_OVERFLOW; in armv6_pmcr_counter_has_overflowed()
229 ret = pmcr & ARMV6_PMCR_COUNT1_OVERFLOW; in armv6_pmcr_counter_has_overflowed()
308 unsigned long pmcr = armv6_pmcr_read(); in armv6pmu_handle_irq() local
314 if (!armv6_pmcr_has_overflowed(pmcr)) in armv6pmu_handle_irq()
324 armv6_pmcr_write(pmcr); in armv6pmu_handle_irq()
338 if (!armv6_pmcr_counter_has_overflowed(pmcr, idx)) in armv6pmu_handle_irq()
/linux-6.3-rc2/arch/powerpc/platforms/cell/
A Dpervasive.c119 out_be64(&regs->pmcr, in_be64(&regs->pmcr) | in cbe_pervasive_init()
/linux-6.3-rc2/drivers/cpufreq/
A Dppc_cbe_cpufreq_pervasive.c65 value = in_be64(&pmd_regs->pmcr); in cbe_cpufreq_set_pmode()
71 out_be64(&pmd_regs->pmcr, value); in cbe_cpufreq_set_pmode()
/linux-6.3-rc2/drivers/perf/
A Darm_dsu_pmu.c481 u32 pmcr; in dsu_pmu_enable() local
490 pmcr = __dsu_pmu_read_pmcr(); in dsu_pmu_enable()
491 pmcr |= CLUSTERPMCR_E; in dsu_pmu_enable()
492 __dsu_pmu_write_pmcr(pmcr); in dsu_pmu_enable()
498 u32 pmcr; in dsu_pmu_disable() local
503 pmcr = __dsu_pmu_read_pmcr(); in dsu_pmu_disable()
504 pmcr &= ~CLUSTERPMCR_E; in dsu_pmu_disable()
505 __dsu_pmu_write_pmcr(pmcr); in dsu_pmu_disable()
/linux-6.3-rc2/drivers/perf/arm_cspmu/
A Darm_cspmu.c517 u32 pmcr = 0; in arm_cspmu_reset_counters() local
519 pmcr |= PMCR_P; in arm_cspmu_reset_counters()
520 pmcr |= PMCR_C; in arm_cspmu_reset_counters()
521 writel(pmcr, cspmu->base0 + PMCR); in arm_cspmu_reset_counters()
/linux-6.3-rc2/arch/powerpc/include/asm/
A Dcell-regs.h104 u64 pmcr; /* 0x0880 */ member
/linux-6.3-rc2/arch/arm64/kernel/
A Dperf_event.c1029 u32 pmcr; in armv8pmu_reset() local
1042 pmcr = ARMV8_PMU_PMCR_P | ARMV8_PMU_PMCR_C | ARMV8_PMU_PMCR_LC; in armv8pmu_reset()
1046 pmcr |= ARMV8_PMU_PMCR_LP; in armv8pmu_reset()
1048 armv8pmu_pmcr_write(pmcr); in armv8pmu_reset()
/linux-6.3-rc2/arch/arm64/kvm/
A Dsys_regs.c733 u64 pmcr; in reset_pmcr() local
740 pmcr = read_sysreg(pmcr_el0) & (ARMV8_PMU_PMCR_N_MASK << ARMV8_PMU_PMCR_N_SHIFT); in reset_pmcr()
742 pmcr |= ARMV8_PMU_PMCR_LC; in reset_pmcr()
744 __vcpu_sys_reg(vcpu, r->reg) = pmcr; in reset_pmcr()
847 u64 pmcr, val; in pmu_counter_idx_valid() local
849 pmcr = __vcpu_sys_reg(vcpu, PMCR_EL0); in pmu_counter_idx_valid()
850 val = (pmcr >> ARMV8_PMU_PMCR_N_SHIFT) & ARMV8_PMU_PMCR_N_MASK; in pmu_counter_idx_valid()

Completed in 33 milliseconds