Lines Matching refs:pmc
43 int pmc; in mpc7450_classify_event() local
45 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_classify_event()
46 if (pmc) { in mpc7450_classify_event()
47 if (pmc > N_COUNTER) in mpc7450_classify_event()
83 int pmc, sel; in mpc7450_threshold_use() local
85 pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_threshold_use()
87 switch (pmc) { in mpc7450_threshold_use()
157 int pmc, class; in mpc7450_get_constraint() local
165 pmc = ((unsigned int)event >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_get_constraint()
166 mask = pmcbits[pmc - 1][0]; in mpc7450_get_constraint()
167 value = pmcbits[pmc - 1][1]; in mpc7450_get_constraint()
272 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local
293 pmc = (ev >> PM_PMC_SH) & PM_PMC_MSK; in mpc7450_compute_mmcr()
294 if (pmc_inuse & (1 << (pmc - 1))) in mpc7450_compute_mmcr()
301 pmc = ffs(pmc_avail); in mpc7450_compute_mmcr()
303 pmc_inuse |= 1 << (pmc - 1); in mpc7450_compute_mmcr()
312 ev &= pmcsel_mask[pmc - 1]; in mpc7450_compute_mmcr()
313 ev <<= pmcsel_shift[pmc - 1]; in mpc7450_compute_mmcr()
314 if (pmc <= 2) in mpc7450_compute_mmcr()
318 hwc[event_index[class][i]] = pmc - 1; in mpc7450_compute_mmcr()
338 static void mpc7450_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in mpc7450_disable_pmc() argument
340 if (pmc <= 1) in mpc7450_disable_pmc()
341 mmcr[0] &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()
343 mmcr[1] &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc()