Lines Matching refs:phw
1447 struct pmc_hw *phw __diagused; in pmc_process_csw_in()
1503 phw = pc->pc_hwpmcs[ri]; in pmc_process_csw_in()
1505 KASSERT(phw != NULL, in pmc_process_csw_in()
1508 KASSERT(phw->phw_pmc == pm, in pmc_process_csw_in()
1510 phw->phw_pmc, pm)); in pmc_process_csw_in()
2716 struct pmc_hw *phw __diagused; in pmc_release_pmc_descriptor()
2751 phw = pmc_pcpu[cpu]->pc_hwpmcs[ri]; in pmc_release_pmc_descriptor()
2753 KASSERT(phw->phw_pmc == pm, in pmc_release_pmc_descriptor()
2755 __LINE__, ri, phw->phw_pmc, pm)); in pmc_release_pmc_descriptor()
3294 struct pmc_hw *phw; in pmc_do_op_pmcallocate() local
3486 phw = pmc_pcpu[cpu]->pc_hwpmcs[n]; in pmc_do_op_pmcallocate()
3489 if ((phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) == 0 || in pmc_do_op_pmcallocate()
4128 struct pmc_hw *phw; in pmc_syscall_handler() local
4190 phw = pc->pc_hwpmcs[ri]; in pmc_syscall_handler()
4196 if (phw->phw_pmc == NULL) { in pmc_syscall_handler()
4198 (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED)) { in pmc_syscall_handler()
4199 phw->phw_state &= ~PMC_PHW_FLAG_IS_ENABLED; in pmc_syscall_handler()
4202 (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) == 0) { in pmc_syscall_handler()
4203 phw->phw_state |= PMC_PHW_FLAG_IS_ENABLED; in pmc_syscall_handler()