Lines Matching refs:tsc_pcpu
67 static struct tsc_cpu **tsc_pcpu; variable
100 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_config_pmc()
121 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_describe()
146 *ppm = tsc_pcpu[cpu]->tc_hw.phw_pmc; in tsc_get_config()
171 KASSERT(tsc_pcpu[cpu] != NULL, ("[tsc,%d] null pcpu", __LINE__)); in tsc_pcpu_fini()
173 free(tsc_pcpu[cpu], M_PMC); in tsc_pcpu_fini()
174 tsc_pcpu[cpu] = NULL; in tsc_pcpu_fini()
194 KASSERT(tsc_pcpu, ("[tsc,%d] null pcpu", __LINE__)); in tsc_pcpu_init()
195 KASSERT(tsc_pcpu[cpu] == NULL, ("[tsc,%d] non-null per-cpu", in tsc_pcpu_init()
204 tsc_pcpu[cpu] = tsc_pc; in tsc_pcpu_init()
250 phw = &tsc_pcpu[cpu]->tc_hw; in tsc_release_pmc()
309 tsc_pcpu = malloc(sizeof(struct tsc_cpu *) * maxcpu, M_PMC, in pmc_tsc_initialize()
344 KASSERT(tsc_pcpu[i] == NULL, ("[tsc,%d] non-null pcpu cpu %d", in pmc_tsc_finalize()
347 free(tsc_pcpu, M_PMC); in pmc_tsc_finalize()
348 tsc_pcpu = NULL; in pmc_tsc_finalize()