Lines Matching refs:phw
1446 struct pmc_hw *phw __diagused; in pmc_process_csw_in()
1502 phw = pc->pc_hwpmcs[ri]; in pmc_process_csw_in()
1504 KASSERT(phw != NULL, in pmc_process_csw_in()
1507 KASSERT(phw->phw_pmc == pm, in pmc_process_csw_in()
1509 phw->phw_pmc, pm)); in pmc_process_csw_in()
2715 struct pmc_hw *phw __diagused; in pmc_release_pmc_descriptor()
2750 phw = pmc_pcpu[cpu]->pc_hwpmcs[ri]; in pmc_release_pmc_descriptor()
2752 KASSERT(phw->phw_pmc == pm, in pmc_release_pmc_descriptor()
2754 __LINE__, ri, phw->phw_pmc, pm)); in pmc_release_pmc_descriptor()
3293 struct pmc_hw *phw; in pmc_do_op_pmcallocate() local
3485 phw = pmc_pcpu[cpu]->pc_hwpmcs[n]; in pmc_do_op_pmcallocate()
3488 if ((phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) == 0 || in pmc_do_op_pmcallocate()
4127 struct pmc_hw *phw; in pmc_syscall_handler() local
4189 phw = pc->pc_hwpmcs[ri]; in pmc_syscall_handler()
4195 if (phw->phw_pmc == NULL) { in pmc_syscall_handler()
4197 (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED)) { in pmc_syscall_handler()
4198 phw->phw_state &= ~PMC_PHW_FLAG_IS_ENABLED; in pmc_syscall_handler()
4201 (phw->phw_state & PMC_PHW_FLAG_IS_ENABLED) == 0) { in pmc_syscall_handler()
4202 phw->phw_state |= PMC_PHW_FLAG_IS_ENABLED; in pmc_syscall_handler()