Lines Matching refs:phw
108 struct pmc_hw *phw; in powerpc_describe() local
113 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_describe()
118 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in powerpc_describe()
120 *ppmc = phw->phw_pmc; in powerpc_describe()
143 struct pmc_hw *phw; in powerpc_pcpu_init() local
159 for (i = 0, phw = pac->pc_ppcpmcs; i < ppc_max_pmcs; i++, phw++) { in powerpc_pcpu_init()
160 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in powerpc_pcpu_init()
162 phw->phw_pmc = NULL; in powerpc_pcpu_init()
163 pc->pc_hwpmcs[i + first_ri] = phw; in powerpc_pcpu_init()
233 struct pmc_hw *phw __diagused; in powerpc_release_pmc()
240 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_release_pmc()
241 KASSERT(phw->phw_pmc == NULL, in powerpc_release_pmc()
242 ("[powerpc,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in powerpc_release_pmc()
268 struct pmc_hw *phw; in powerpc_config_pmc() local
277 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_config_pmc()
279 KASSERT(pm == NULL || phw->phw_pmc == NULL, in powerpc_config_pmc()
281 __LINE__, pm, phw->phw_pmc)); in powerpc_config_pmc()
283 phw->phw_pmc = pm; in powerpc_config_pmc()