Lines Matching refs:cccr
365 #define CCCR_CLEAR(cccr) ((cccr) &= CCCR_RESERVED_BITS) argument
366 #define CCCR_SET_REQUIRED_BITS(cccr) ((cccr) |= 0x00030000) argument
367 #define CCCR_SET_ESCR_SELECT(cccr, sel) ((cccr) |= (((sel) & 0x07) << 13)) argument
368 #define CCCR_SET_PMI_OVF_0(cccr) ((cccr) |= (1 << 26)) argument
369 #define CCCR_SET_PMI_OVF_1(cccr) ((cccr) |= (1 << 27)) argument
370 #define CCCR_SET_ENABLE(cccr) ((cccr) |= (1 << 12)) argument
371 #define CCCR_SET_DISABLE(cccr) ((cccr) &= ~(1 << 12)) argument
374 #define CCCR_OVF_P(cccr) ((cccr) & (1U << 31)) argument
375 #define CCCR_CLEAR_OVF(cccr) ((cccr) &= (~(1U << 31))) argument
486 unsigned int cccr = 0; in pmc_setup_one_p4_counter() local
526 CCCR_READ(cccr, high, VIRT_CTR(stag, ctr)); in pmc_setup_one_p4_counter()
527 CCCR_CLEAR(cccr); in pmc_setup_one_p4_counter()
528 CCCR_SET_REQUIRED_BITS(cccr); in pmc_setup_one_p4_counter()
529 CCCR_SET_ESCR_SELECT(cccr, ev->escr_select); in pmc_setup_one_p4_counter()
531 CCCR_SET_PMI_OVF_0(cccr); in pmc_setup_one_p4_counter()
533 CCCR_SET_PMI_OVF_1(cccr); in pmc_setup_one_p4_counter()
535 CCCR_WRITE(cccr, high, VIRT_CTR(stag, ctr)); in pmc_setup_one_p4_counter()