Lines Matching refs:counter_config
487 if (counter_config[ctr].event <= 0 || counter_config[ctr].event > NUM_EVENTS) { in pmc_setup_one_p4_counter()
489 counter_config[ctr].event); in pmc_setup_one_p4_counter()
493 ev = &(p4_events[counter_config[ctr].event - 1]); in pmc_setup_one_p4_counter()
502 ESCR_SET_USR_0(escr, counter_config[ctr].user); in pmc_setup_one_p4_counter()
503 ESCR_SET_OS_0(escr, counter_config[ctr].kernel); in pmc_setup_one_p4_counter()
505 ESCR_SET_USR_1(escr, counter_config[ctr].user); in pmc_setup_one_p4_counter()
506 ESCR_SET_OS_1(escr, counter_config[ctr].kernel); in pmc_setup_one_p4_counter()
509 ESCR_SET_EVENT_MASK(escr, counter_config[ctr].unit_mask); in pmc_setup_one_p4_counter()
529 counter_config[ctr].event, stag, ctr); in pmc_setup_one_p4_counter()
602 if (counter_config[i].enabled) { in p4_setup_ctrs()
603 reset_value[i] = counter_config[i].count; in p4_setup_ctrs()
605 CTR_WRITE(counter_config[i].count, VIRT_CTR(stag, i)); in p4_setup_ctrs()