counter_size
int counter_size; /* in bits */
counter_size = 32 + (pct_bcr.s << 4);
arc_pmu->max_period = (1ULL << counter_size) / 2 - 1ULL;
arc_pmu->n_counters, counter_size, cc_bcr.c,
u32 counter_size = FIELD_GET(DRM_XE_OA_FORMAT_MASK_COUNTER_SIZE, fmt);
if (counter_size == f->counter_size && bc_report == f->bc_report &&
REG_FIELD_PREP(OA_OACONTROL_COUNTER_SIZE_MASK, format->counter_size);
u16 counter_size;
return GENMASK_ULL(counter_size(cspmu) - 1, 0);
return (counter_size(cspmu) > 32);
size_t counter_size;
counter_size = ALIGN(sizeof(*counters), __alignof__(*counters));
counters = __alloc_percpu_gfp(nr_counters * counter_size,
fbc[i].counters = (void __percpu *)counters + i * counter_size;