Lines Matching defs:counter
32 // Individual bits in the fixed counter enable field.
44 // Verify each fixed counter regnum < IPM_MAX_FIXED_COUNTERS.
225 // Map a fixed counter event id to its h/w register number.
453 // The maximum value the counter can have before overflowing.
472 unsigned counter = ipm_fixed_counter_number(id);
474 if (counter == IPM_MAX_FIXED_COUNTERS ||
475 counter >= countof(ocfg->fixed_ids) ||
476 counter >= ss->max_num_fixed) {
480 if (ss->have_fixed[counter]) {
482 __func__, counter);
485 ss->have_fixed[counter] = true;
500 ocfg->fixed_ctrl |= IA32_FIXED_CTR_CTRL_PMI_MASK(counter);
506 ocfg->fixed_ctrl |= enable << IA32_FIXED_CTR_CTRL_EN_SHIFT(counter);
507 ocfg->global_ctrl |= IA32_PERF_GLOBAL_CTRL_FIXED_EN_MASK(counter);
584 // "counting mode" in case the counter overflows.