Lines Matching refs:phw
488 struct pmc_hw *phw; in amd_config_pmc() local
497 phw = &amd_pcpu[cpu]->pc_amdpmcs[ri]; in amd_config_pmc()
499 KASSERT(pm == NULL || phw->phw_pmc == NULL, in amd_config_pmc()
501 __LINE__, pm, phw->phw_pmc)); in amd_config_pmc()
503 phw->phw_pmc = pm; in amd_config_pmc()
666 struct pmc_hw *phw __diagused; in amd_release_pmc()
675 phw = &amd_pcpu[cpu]->pc_amdpmcs[ri]; in amd_release_pmc()
677 KASSERT(phw->phw_pmc == NULL, in amd_release_pmc()
678 ("[amd,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in amd_release_pmc()
881 struct pmc_hw *phw; in amd_describe() local
888 phw = &amd_pcpu[cpu]->pc_amdpmcs[ri]; in amd_describe()
894 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in amd_describe()
896 *ppmc = phw->phw_pmc; in amd_describe()
934 struct pmc_hw *phw; in amd_pcpu_init() local
959 for (n = 0, phw = pac->pc_amdpmcs; n < AMD_NPMCS; n++, phw++) { in amd_pcpu_init()
960 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in amd_pcpu_init()
962 phw->phw_pmc = NULL; in amd_pcpu_init()
963 pc->pc_hwpmcs[n + first_ri] = phw; in amd_pcpu_init()