Searched refs:cpu_pmu (Results 1 – 4 of 4) sorted by relevance
271 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_enable_event() local273 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event()310 struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev; in armv6pmu_handle_irq() local311 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq()327 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq()349 cpu_pmu->disable(event); in armv6pmu_handle_irq()364 static void armv6pmu_start(struct arm_pmu *cpu_pmu) in armv6pmu_start() argument367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start()376 static void armv6pmu_stop(struct arm_pmu *cpu_pmu) in armv6pmu_stop() argument379 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop()[all …]
148 struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev; in xscale1pmu_handle_irq() local149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq()173 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq()190 cpu_pmu->disable(event); in xscale1pmu_handle_irq()207 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_enable_event() local209 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event()243 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_disable_event() local245 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event()295 static void xscale1pmu_start(struct arm_pmu *cpu_pmu) in xscale1pmu_start() argument298 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()[all …]
555 #define ARMV7_IDX_COUNTER_LAST(cpu_pmu) \ argument556 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)622 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument625 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid()642 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_read_counter() local647 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter()662 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_write_counter() local666 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_write_counter()727 static void armv7_pmnc_dump_regs(struct arm_pmu *cpu_pmu) in armv7_pmnc_dump_regs() argument753 cnt <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cnt++) { in armv7_pmnc_dump_regs()[all …]
187 #define ARMV8_IDX_COUNTER_LAST(cpu_pmu) \ argument188 (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)254 static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv8pmu_counter_valid() argument257 idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); in armv8pmu_counter_valid()276 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_read_counter() local281 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_read_counter()294 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_write_counter() local298 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_write_counter()366 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_enable_event() local367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_event()[all …]