Lines Matching refs:counter
322 /* Create counter kstats */
462 * Program a performance counter.
464 * reggroup is which type of counter.
465 * counter is the counter number.
466 * event is the event to program for that counter.
475 int counter;
487 for (counter = 0; counter < grp_p->num_counters; counter++) {
489 if (grp_p->counters_p[counter].zero_regoff == NO_REGISTER)
492 event_mask = grp_p->regsel_p->fields_p[counter].event_mask <<
493 grp_p->regsel_p->fields_p[counter].event_offset;
496 "grp:%s, counter:%d, zero_regoff:0x%lx, "
499 grp_p->grp_name, counter,
500 grp_p->counters_p[counter].zero_regoff,
508 IOSPC_DBG1("Zeroing counter %d\n", counter);
511 IOSPC_REG_WRITE, grp_p->counters_p[counter].zero_regoff,
512 &grp_p->counters_p[counter].zero_value)) != SUCCESS)
544 int counter;
587 for (counter = 0; counter < grp_p->num_counters; counter++) {
590 grp_p->counters_p[counter].regoff,
591 &data_p[counter + 1].value.ui64) != SUCCESS)
594 IOSPC_DBG2("cntr%d, off:0x%lx, val:0x%lx\n", counter,
595 grp_p->counters_p[counter].regoff,
596 data_p[counter + 1].value.ui64);