Lines Matching refs:phw
136 struct pmc_hw *phw; in soft_config_pmc() local
145 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_config_pmc()
147 KASSERT(pm == NULL || phw->phw_pmc == NULL, in soft_config_pmc()
149 pm, phw->phw_pmc)); in soft_config_pmc()
151 phw->phw_pmc = pm; in soft_config_pmc()
160 struct pmc_hw *phw; in soft_describe() local
167 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_describe()
173 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in soft_describe()
175 *ppmc = phw->phw_pmc; in soft_describe()
228 struct pmc_hw *phw; in soft_pcpu_init() local
243 phw = soft_pc->soft_hw; in soft_pcpu_init()
246 for (n = 0; n < SOFT_NPMCS; n++, phw++) { in soft_pcpu_init()
247 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in soft_pcpu_init()
249 phw->phw_pmc = NULL; in soft_pcpu_init()
250 pc->pc_hwpmcs[n + first_ri] = phw; in soft_pcpu_init()
290 struct pmc_hw *phw __diagused; in soft_release_pmc()
301 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_release_pmc()
303 KASSERT(phw->phw_pmc == NULL, in soft_release_pmc()
304 ("[soft,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in soft_release_pmc()