Lines Matching refs:phw
92 struct pmc_hw *phw; in tsc_config_pmc() local
100 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_config_pmc()
102 KASSERT(pm == NULL || phw->phw_pmc == NULL, in tsc_config_pmc()
104 pm, phw->phw_pmc)); in tsc_config_pmc()
106 phw->phw_pmc = pm; in tsc_config_pmc()
115 struct pmc_hw *phw; in tsc_describe() local
121 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_describe()
127 if (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) { in tsc_describe()
129 *ppmc = phw->phw_pmc; in tsc_describe()
243 struct pmc_hw *phw __diagused; in tsc_release_pmc()
250 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_release_pmc()
252 KASSERT(phw->phw_pmc == NULL, in tsc_release_pmc()
253 ("[tsc,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc)); in tsc_release_pmc()