Lines Matching refs:pm

95 soft_allocate_pmc(int cpu, int ri, struct pmc *pm,  in soft_allocate_pmc()  argument
111 if ((pm->pm_caps & SOFT_CAPS) == 0) in soft_allocate_pmc()
114 if ((pm->pm_caps & ~SOFT_CAPS) != 0) in soft_allocate_pmc()
117 ev = pm->pm_event; in soft_allocate_pmc()
134 soft_config_pmc(int cpu, int ri, struct pmc *pm) in soft_config_pmc() argument
138 PMCDBG3(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); 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()
257 soft_read_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t *v) in soft_read_pmc()
273 soft_write_pmc(int cpu, int ri, struct pmc *pm __unused, pmc_value_t v) in soft_write_pmc()
320 soft_start_pmc(int cpu, int ri, struct pmc *pm) in soft_start_pmc() argument
329 ps = pmc_soft_ev_acquire(pm->pm_event); in soft_start_pmc()
339 soft_stop_pmc(int cpu, int ri, struct pmc *pm) in soft_stop_pmc() argument
348 ps = pmc_soft_ev_acquire(pm->pm_event); in soft_stop_pmc()
361 struct pmc *pm; in pmc_soft_intr() local
373 pm = pc->soft_hw[ri].phw_pmc; in pmc_soft_intr()
374 if (pm == NULL || in pmc_soft_intr()
375 pm->pm_state != PMC_STATE_RUNNING || in pmc_soft_intr()
376 pm->pm_event != ks->pm_ev) { in pmc_soft_intr()
381 if (PMC_IS_SAMPLING_MODE(PMC_TO_MODE(pm))) { in pmc_soft_intr()
383 pc->soft_values[ri] += pm->pm_sc.pm_reloadcount; in pmc_soft_intr()
387 error = pmc_process_interrupt(PMC_SR, pm, ks->pm_tf); in pmc_soft_intr()
389 soft_stop_pmc(ks->pm_cpu, ri, pm); in pmc_soft_intr()