Lines Matching refs:soft_pcpu
92 static struct soft_cpu **soft_pcpu; variable
145 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_config_pmc()
167 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_describe()
194 *ppm = soft_pcpu[cpu]->soft_hw[ri].phw_pmc; in soft_get_config()
206 KASSERT(soft_pcpu[cpu] != NULL, ("[soft,%d] null pcpu", __LINE__)); in soft_pcpu_fini()
208 free(soft_pcpu[cpu], M_PMC); in soft_pcpu_fini()
209 soft_pcpu[cpu] = NULL; in soft_pcpu_fini()
233 KASSERT(soft_pcpu, ("[soft,%d] null pcpu", __LINE__)); in soft_pcpu_init()
234 KASSERT(soft_pcpu[cpu] == NULL, ("[soft,%d] non-null per-cpu", in soft_pcpu_init()
242 soft_pcpu[cpu] = soft_pc; in soft_pcpu_init()
267 *v = soft_pcpu[cpu]->soft_values[ri]; in soft_read_pmc()
282 soft_pcpu[cpu]->soft_values[ri] = v; in soft_write_pmc()
301 phw = &soft_pcpu[cpu]->soft_hw[ri]; in soft_release_pmc()
369 pc = soft_pcpu[ks->pm_cpu]; in pmc_soft_intr()
426 soft_pcpu = malloc(sizeof(struct soft_cpu *) * pmc_cpu_max(), M_PMC, in pmc_soft_initialize()
461 KASSERT(soft_pcpu[i] == NULL, ("[soft,%d] non-null pcpu cpu %d", in pmc_soft_finalize()
465 free(soft_pcpu, M_PMC); in pmc_soft_finalize()
466 soft_pcpu = NULL; in pmc_soft_finalize()