Lines Matching full:ri
50 power8_set_pmc(int cpu, int ri, int config) in power8_set_pmc() argument
55 switch (ri) { in power8_set_pmc()
61 mmcr &= ~SPR_MMCR1_P8_PMCNSEL_MASK(ri); in power8_set_pmc()
62 mmcr |= SPR_MMCR1_P8_PMCNSEL(ri, config & ~POWERPC_PMC_ENABLE); in power8_set_pmc()
71 mmcr = mfspr(SPR_MMCR2) | SPR_MMCR2_FCNHSP(ri); in power8_set_pmc()
74 mmcr &= ~(SPR_MMCR2_FCNP0(ri) | in power8_set_pmc()
75 SPR_MMCR2_FCNP1(ri)); in power8_set_pmc()
77 mmcr &= ~(SPR_MMCR2_FCNH(ri) | in power8_set_pmc()
78 SPR_MMCR2_FCNS(ri)); in power8_set_pmc()
153 power8_allocate_pmc(int cpu, int ri, struct pmc *pm, in power8_allocate_pmc() argument
160 KASSERT(ri >= 0 && ri < ppc_max_pmcs, in power8_allocate_pmc()
161 ("[powerpc,%d] illegal row index %d", __LINE__, ri)); in power8_allocate_pmc()
178 * the specified event, otherwise it must match ri + 1. in power8_allocate_pmc()
187 if (counter != 0 && counter != ri + 1) in power8_allocate_pmc()
201 PMCDBG3(MDP,ALL,1,"powerpc-allocate cpu=%d ri=%d -> config=0x%x", in power8_allocate_pmc()
202 cpu, ri, config); in power8_allocate_pmc()