Lines Matching refs:pm
192 CLASSDEP_FN4(dmc620_read_pmc, int, cpu, int, ri, struct pmc *, pm, in CLASSDEP_FN4() argument
211 *v = ((uint64_t)pm->pm_pcpu_state[0].pps_overflowcnt << 32) | in CLASSDEP_FN4()
224 CLASSDEP_FN4(dmc620_write_pmc, int, cpu, int, ri, struct pmc *, pm, in CLASSDEP_FN4() argument
248 CLASSDEP_FN3(dmc620_config_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument
252 PMCDBG4(MDP, CFG, 1, "%s cpu=%d ri=%d pm=%p", __func__, cpu, ri, pm); in CLASSDEP_FN3()
261 KASSERT(pm == NULL || phw->phw_pmc == NULL, in CLASSDEP_FN3()
263 __LINE__, pm, phw->phw_pmc)); in CLASSDEP_FN3()
265 phw->phw_pmc = pm; in CLASSDEP_FN3()
285 CLASSDEP_FN4(dmc620_allocate_pmc, int, cpu, int, ri, struct pmc *,pm, in CLASSDEP_FN4() argument
309 caps = pm->pm_caps; in CLASSDEP_FN4()
325 pm->pm_md.pm_dmc620.pm_control = control; in CLASSDEP_FN4()
326 pm->pm_md.pm_dmc620.pm_match = a->pm_md.pm_dmc620.pm_dmc620_match; in CLASSDEP_FN4()
327 pm->pm_md.pm_dmc620.pm_mask = a->pm_md.pm_dmc620.pm_dmc620_mask; in CLASSDEP_FN4()
364 CLASSDEP_FN3(dmc620_start_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument
379 DMC620_COUNTER_MASK_LO, pm->pm_md.pm_dmc620.pm_mask & 0xffffffff); in CLASSDEP_FN3()
381 DMC620_COUNTER_MASK_HI, pm->pm_md.pm_dmc620.pm_mask >> 32); in CLASSDEP_FN3()
383 DMC620_COUNTER_MATCH_LO, pm->pm_md.pm_dmc620.pm_match & 0xffffffff); in CLASSDEP_FN3()
385 DMC620_COUNTER_MATCH_HI, pm->pm_md.pm_dmc620.pm_match >> 32); in CLASSDEP_FN3()
387 control = pm->pm_md.pm_dmc620.pm_control | DMC620_COUNTER_CONTROL_ENABLE; in CLASSDEP_FN3()
400 CLASSDEP_FN3(dmc620_stop_pmc, int, cpu, int, ri, struct pmc *, pm) in CLASSDEP_FN3() argument
415 control = pm->pm_md.pm_dmc620.pm_control & ~DMC620_COUNTER_CONTROL_ENABLE; in CLASSDEP_FN3()
510 struct pmc *pm; in dmc620_intr() local
523 pm = phw->phw_pmc; in dmc620_intr()
524 if (pm == NULL) in dmc620_intr()
527 if (!PMC_IS_SAMPLING_MODE(PMC_TO_MODE(pm))) { in dmc620_intr()
529 pm->pm_pcpu_state[0].pps_overflowcnt += 1; in dmc620_intr()
533 if (pm->pm_state != PMC_STATE_RUNNING) in dmc620_intr()
536 error = pmc_process_interrupt(PMC_HR, pm, tf); in dmc620_intr()
538 dmc620_stop_pmc(class, cpu, ri, pm); in dmc620_intr()
541 dmc620_write_pmc(class, cpu, ri, pm, pm->pm_sc.pm_reloadcount); in dmc620_intr()