Lines Matching refs:counter
122 /* Create counter kstats */
326 * Program a performance counter.
328 * reggroup is which type of counter.
329 * counter is the counter number.
330 * event is the event to program for that counter.
339 int counter;
355 for (counter = 0; counter < grp_p->num_counters; counter++) {
357 if (grp_p->counters_p[counter].zero_regoff == NO_REGISTER)
360 event_mask = grp_p->regsel_p->fields_p[counter].event_mask <<
361 grp_p->regsel_p->fields_p[counter].event_offset;
364 "grp:%s, counter:%d, zero_regoff:0x%lx, "
367 grp_p->grp_name, counter,
368 grp_p->counters_p[counter].zero_regoff,
376 N2PIUPC_DBG1("Zeroing counter %d\n", counter);
378 grp_p->counters_p[counter].zero_regoff,
379 grp_p->counters_p[counter].zero_value)) != SUCCESS)
408 int counter;
449 for (counter = 0; counter < grp_p->num_counters; counter++) {
451 grp_p->counters_p[counter].regoff,
452 &data_p[counter + 1].value.ui64) != SUCCESS)
455 N2PIUPC_DBG2("cntr%d, off:0x%lx, val:0x%ld", counter,
456 grp_p->counters_p[counter].regoff,
457 data_p[counter + 1].value.ui64);