Lines Matching refs:armpmu
100 static const struct arm_pmu *armpmu;
107 if (armpmu != NULL)
108 id = armpmu->id;
119 if (armpmu != NULL)
120 max_events = armpmu->num_events;
185 if (left > (s64)armpmu->max_period)
186 left = armpmu->max_period;
190 armpmu->write_counter(idx, (u64)(-left) & 0xffffffff);
208 new_raw_count = armpmu->read_counter(idx);
233 armpmu->disable(hwc, idx);
269 armpmu->enable(hwc, hwc->idx);
281 idx = armpmu->get_event_idx(cpuc, hwc);
292 armpmu->disable(hwc, idx);
300 armpmu->enable(hwc, idx);
325 return armpmu->get_event_idx(cpuc, &fake_event) >= 0;
373 err = request_irq(irq, armpmu->handle_irq,
375 "armpmu", NULL);
406 armpmu->stop();
432 mapping = armpmu->event_map(event->attr.config);
436 mapping = armpmu->raw_event(event->attr.config);
479 hwc->sample_period = armpmu->max_period;
499 if (!armpmu)
537 if (!armpmu)
540 for (idx = 0; idx <= armpmu->num_events; ++idx) {
546 armpmu->enable(&event->hw, idx);
549 armpmu->start();
555 if (armpmu)
556 armpmu->stop();
1017 for (idx = 0; idx <= armpmu->num_events; ++idx) {
1038 armpmu->disable(hwc, idx);
1612 * The last event counter is (ARMV7_COUNTER0 + armpmu->num_events - 1).
1614 #define ARMV7_COUNTER_LAST (ARMV7_COUNTER0 + armpmu->num_events - 1)
1993 for (idx = 0; idx <= armpmu->num_events; ++idx) {
2014 armpmu->disable(hwc, idx);
2086 for (idx = ARMV7_COUNTER0; idx <= armpmu->num_events; ++idx) {
2366 for (idx = 0; idx <= armpmu->num_events; ++idx) {
2383 armpmu->disable(hwc, idx);
2693 for (idx = 0; idx <= armpmu->num_events; ++idx) {
2710 armpmu->disable(hwc, idx);
2927 armpmu = &armv6pmu;
2933 armpmu = &armv6mpcore_pmu;
2944 armpmu = &armv7pmu;
2956 armpmu = &armv7pmu;
2969 armpmu = &xscale1pmu;
2975 armpmu = &xscale2pmu;
2983 if (armpmu) {
2985 arm_pmu_names[armpmu->id], armpmu->num_events);