• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/kernel/

Lines Matching refs:hw

165 		prev = local64_read(&event->hw.prev_count);
167 val = read_pmc(event->hw.idx);
168 } while (local64_cmpxchg(&event->hw.prev_count, prev, val) != prev);
173 local64_sub(delta, &event->hw.period_left);
276 if (event->hw.config & FSL_EMB_EVENT_RESTRICTED)
293 event->hw.idx = i;
298 if (event->hw.sample_period) {
299 s64 left = local64_read(&event->hw.period_left);
303 local64_set(&event->hw.prev_count, val);
307 write_pmlcb(i, event->hw.config >> 32);
308 write_pmlca(i, event->hw.config_base);
320 int i = event->hw.idx;
329 WARN_ON(event != cpuhw->event[event->hw.idx]);
336 event->hw.idx = -1;
363 if (event->hw.idx < 0 || !event->hw.sample_period)
368 left = event->hw.sample_period;
369 event->hw.last_period = left;
373 write_pmc(event->hw.idx, val);
374 local64_set(&event->hw.prev_count, val);
375 local64_set(&event->hw.period_left, left);
462 event->hw.config = ppmu->xlate_event(ev);
463 if (!(event->hw.config & FSL_EMB_EVENT_VALID))
479 if (event->hw.config & FSL_EMB_EVENT_RESTRICTED) {
482 if (events[i]->hw.config & FSL_EMB_EVENT_RESTRICTED)
490 event->hw.idx = -1;
492 event->hw.config_base = PMLCA_CE | PMLCA_FCM1 |
496 event->hw.config_base |= PMLCA_FCU;
498 event->hw.config_base |= PMLCA_FCS;
502 event->hw.last_period = event->hw.sample_period;
503 local64_set(&event->hw.period_left, event->hw.last_period);
539 u64 period = event->hw.sample_period;
544 prev = local64_read(&event->hw.prev_count);
553 left = local64_read(&event->hw.period_left) - delta;
572 data.period = event->hw.last_period;
587 write_pmc(event->hw.idx, val);
588 local64_set(&event->hw.prev_count, val);
589 local64_set(&event->hw.period_left, left);