Lines Matching defs:counter
58 /* NOTE first counter group should always be CP, since we unconditionally
59 * use CP counter to measure the gpu freq.
66 const struct fd_perfcntr_counter *counter;
70 } counter[MAX_CNTR_PER_GROUP];
79 /* current value, ie. by how many did the counter increase in last
219 group->counter[ctr].select_val = n;
292 group->last[ctr] = *group->counter[ctr].val_lo;
299 uint32_t val = *group->counter[ctr].val_lo;
402 * things running faster than base clock, or counter
439 * probably a cycle counter ;-)
448 * units the counter is counting for, ie. if a320 has 2x
479 /* NOTE skip CP the first CP counter */
521 /* NOTE skip the first CP counter (CP_ALWAYS_COUNT) */
565 uint32_t selected = group->counter[cnt].select_val;
733 /* we did not config the first CP counter */
760 /* NOTE skip CP the first CP counter */
765 select_counter(group, j, group->counter[j].select_val);
780 /* the first CP counter is hidden: */
788 group->counter[j].counter = &group->group->counters[j];
790 group->counter[j].val_hi =
791 dev.io + (group->counter[j].counter->counter_reg_hi * 4);
792 group->counter[j].val_lo =
793 dev.io + (group->counter[j].counter->counter_reg_lo * 4);
795 group->counter[j].select_val = j;
819 /* NOTE skip CP the first CP counter */
828 sprintf(name, "counter%d", j);
830 config_setting_set_int(s, group->counter[j].select_val);
862 /* NOTE skip CP the first CP counter */
876 sprintf(name, "counter%d", j);