Lines Matching refs:phw
305 struct pmc_hw *phw; in arm64_config_pmc() local
314 phw = &arm64_pcpu[cpu]->pc_arm64pmcs[ri]; in arm64_config_pmc()
316 KASSERT(pm == NULL || phw->phw_pmc == NULL, in arm64_config_pmc()
318 __LINE__, pm, phw->phw_pmc)); in arm64_config_pmc()
320 phw->phw_pmc = pm; in arm64_config_pmc()
364 struct pmc_hw *phw __diagused; in arm64_release_pmc()
371 phw = &arm64_pcpu[cpu]->pc_arm64pmcs[ri]; in arm64_release_pmc()
372 KASSERT(phw->phw_pmc == NULL, in arm64_release_pmc()
373 ("[arm64,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in arm64_release_pmc()
432 struct pmc_hw *phw; in arm64_describe() local
439 phw = &arm64_pcpu[cpu]->pc_arm64pmcs[ri]; in arm64_describe()
444 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in arm64_describe()
446 *ppmc = phw->phw_pmc; in arm64_describe()
468 struct pmc_hw *phw; in arm64_pcpu_init() local
487 for (i = 0, phw = pac->pc_arm64pmcs; i < arm64_npmcs; i++, phw++) { in arm64_pcpu_init()
488 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in arm64_pcpu_init()
490 phw->phw_pmc = NULL; in arm64_pcpu_init()
491 pc->pc_hwpmcs[i + first_ri] = phw; in arm64_pcpu_init()