Lines Matching refs:phw
109 struct pmc_hw *phw; in powerpc_describe() local
114 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_describe()
119 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in powerpc_describe()
121 *ppmc = phw->phw_pmc; in powerpc_describe()
144 struct pmc_hw *phw; in powerpc_pcpu_init() local
160 for (i = 0, phw = pac->pc_ppcpmcs; i < ppc_max_pmcs; i++, phw++) { in powerpc_pcpu_init()
161 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in powerpc_pcpu_init()
163 phw->phw_pmc = NULL; in powerpc_pcpu_init()
164 pc->pc_hwpmcs[i + first_ri] = phw; in powerpc_pcpu_init()
234 struct pmc_hw *phw __diagused; in powerpc_release_pmc()
241 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_release_pmc()
242 KASSERT(phw->phw_pmc == NULL, in powerpc_release_pmc()
243 ("[powerpc,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in powerpc_release_pmc()
269 struct pmc_hw *phw; in powerpc_config_pmc() local
278 phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; in powerpc_config_pmc()
280 KASSERT(pm == NULL || phw->phw_pmc == NULL, in powerpc_config_pmc()
282 __LINE__, pm, phw->phw_pmc)); in powerpc_config_pmc()
284 phw->phw_pmc = pm; in powerpc_config_pmc()