Lines Matching defs:idx
223 /* Read the group 0 counter identified by the given `idx`. */
224 static uint64_t amu_group0_cnt_read(unsigned int idx)
227 assert(idx < read_amcgcr_cg0nc());
229 return amu_group0_cnt_read_internal(idx);
232 /* Write the group 0 counter identified by the given `idx` with `val` */
233 static void amu_group0_cnt_write(unsigned int idx, uint64_t val)
236 assert(idx < read_amcgcr_cg0nc());
238 amu_group0_cnt_write_internal(idx, val);
243 /* Read the group 1 counter identified by the given `idx` */
244 static uint64_t amu_group1_cnt_read(unsigned int idx)
248 assert(idx < read_amcgcr_cg1nc());
250 return amu_group1_cnt_read_internal(idx);
253 /* Write the group 1 counter identified by the given `idx` with `val` */
254 static void amu_group1_cnt_write(unsigned int idx, uint64_t val)
258 assert(idx < read_amcgcr_cg1nc());
260 amu_group1_cnt_write_internal(idx, val);