Lines Matching refs:phw
137 struct pmc_hw *phw; in soft_config_pmc() local
146 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_config_pmc()
148 KASSERT(pm == NULL || phw->phw_pmc == NULL, in soft_config_pmc()
150 pm, phw->phw_pmc)); in soft_config_pmc()
152 phw->phw_pmc = pm; in soft_config_pmc()
161 struct pmc_hw *phw; in soft_describe() local
168 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_describe()
174 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in soft_describe()
176 *ppmc = phw->phw_pmc; in soft_describe()
229 struct pmc_hw *phw; in soft_pcpu_init() local
244 phw = soft_pc->soft_hw; in soft_pcpu_init()
247 for (n = 0; n < SOFT_NPMCS; n++, phw++) { in soft_pcpu_init()
248 phw->phw_state = PMC_PHW_FLAG_IS_ENABLED | in soft_pcpu_init()
250 phw->phw_pmc = NULL; in soft_pcpu_init()
251 pc->pc_hwpmcs[n + first_ri] = phw; in soft_pcpu_init()
291 struct pmc_hw *phw __diagused; in soft_release_pmc()
302 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_release_pmc()
304 KASSERT(phw->phw_pmc == NULL, in soft_release_pmc()
305 ("[soft,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in soft_release_pmc()