Lines Matching defs:cpu

251 xscale_allocate_pmc(int cpu, int ri, struct pmc *pm,
258 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
259 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
287 xscale_read_pmc(int cpu, int ri, pmc_value_t *v)
292 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
293 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
297 pm = xscale_pcpu[cpu]->pc_xscalepmcs[ri].phw_pmc;
309 xscale_write_pmc(int cpu, int ri, pmc_value_t v)
313 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
314 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
318 pm = xscale_pcpu[cpu]->pc_xscalepmcs[ri].phw_pmc;
323 PMCDBG(MDP,WRI,1,"xscale-write cpu=%d ri=%d v=%jx", cpu, ri, v);
331 xscale_config_pmc(int cpu, int ri, struct pmc *pm)
335 PMCDBG(MDP,CFG,1, "cpu=%d ri=%d pm=%p", cpu, ri, pm);
337 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
338 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
342 phw = &xscale_pcpu[cpu]->pc_xscalepmcs[ri];
354 xscale_start_pmc(int cpu, int ri)
360 phw = &xscale_pcpu[cpu]->pc_xscalepmcs[ri];
424 xscale_stop_pmc(int cpu, int ri)
430 phw = &xscale_pcpu[cpu]->pc_xscalepmcs[ri];
486 xscale_release_pmc(int cpu, int ri, struct pmc *pmc)
490 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
491 ("[xscale,%d] illegal CPU value %d", __LINE__, cpu));
495 phw = &xscale_pcpu[cpu]->pc_xscalepmcs[ri];
503 xscale_intr(int cpu, struct trapframe *tf)
510 xscale_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc)
516 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
517 ("[xscale,%d], illegal CPU %d", __LINE__, cpu));
521 phw = &xscale_pcpu[cpu]->pc_xscalepmcs[ri];
539 xscale_get_config(int cpu, int ri, struct pmc **ppm)
541 *ppm = xscale_pcpu[cpu]->pc_xscalepmcs[ri].phw_pmc;
562 xscale_pcpu_init(struct pmc_mdep *md, int cpu)
569 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(),
570 ("[xscale,%d] wrong cpu number %d", __LINE__, cpu));
571 PMCDBG(MDP,INI,1,"xscale-init cpu=%d", cpu);
573 xscale_pcpu[cpu] = pac = malloc(sizeof(struct xscale_cpu), M_PMC,
577 pc = pmc_pcpu[cpu];
579 KASSERT(pc != NULL, ("[xscale,%d] NULL per-cpu pointer", __LINE__));
583 PMC_PHW_CPU_TO_STATE(cpu) | PMC_PHW_INDEX_TO_STATE(i);
604 xscale_pcpu_fini(struct pmc_mdep *md, int cpu)