Lines Matching full:ri

135 armv7_allocate_pmc(int cpu, int ri, struct pmc *pm,  in armv7_allocate_pmc()  argument
143 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_allocate_pmc()
144 ("[armv7,%d] illegal row index %d", __LINE__, ri)); in armv7_allocate_pmc()
153 PMCDBG2(MDP, ALL, 2, "armv7-allocate ri=%d -> config=0x%x", ri, config); in armv7_allocate_pmc()
160 armv7_read_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t *v) in armv7_read_pmc() argument
168 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_read_pmc()
169 ("[armv7,%d] illegal row index %d", __LINE__, ri)); in armv7_read_pmc()
172 tmp = armv7_pmcn_read(ri, pm->pm_md.pm_armv7.pm_armv7_evsel); in armv7_read_pmc()
178 reg = (1u << ri); in armv7_read_pmc()
186 tmp = armv7_pmcn_read(ri, pm->pm_md.pm_armv7.pm_armv7_evsel); in armv7_read_pmc()
191 PMCDBG2(MDP, REA, 2, "armv7-read id=%d -> %jd", ri, tmp); in armv7_read_pmc()
209 armv7_write_pmc(int cpu, int ri, struct pmc *pm, pmc_value_t v) in armv7_write_pmc() argument
214 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_write_pmc()
215 ("[armv7,%d] illegal row-index %d", __LINE__, ri)); in armv7_write_pmc()
220 PMCDBG3(MDP, WRI, 1, "armv7-write cpu=%d ri=%d v=%jx", cpu, ri, v); in armv7_write_pmc()
226 armv7_pmcn_write(ri, v); in armv7_write_pmc()
232 armv7_config_pmc(int cpu, int ri, struct pmc *pm) in armv7_config_pmc() argument
236 PMCDBG3(MDP, CFG, 1, "cpu=%d ri=%d pm=%p", cpu, ri, pm); in armv7_config_pmc()
240 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_config_pmc()
241 ("[armv7,%d] illegal row-index %d", __LINE__, ri)); in armv7_config_pmc()
243 phw = &armv7_pcpu[cpu]->pc_armv7pmcs[ri]; in armv7_config_pmc()
255 armv7_start_pmc(int cpu, int ri, struct pmc *pm) in armv7_start_pmc() argument
265 cp15_pmselr_set(ri); in armv7_start_pmc()
268 ri = 31; in armv7_start_pmc()
273 armv7_interrupt_enable(ri); in armv7_start_pmc()
274 armv7_counter_enable(ri); in armv7_start_pmc()
280 armv7_stop_pmc(int cpu, int ri, struct pmc *pm) in armv7_stop_pmc() argument
286 ri = 31; in armv7_stop_pmc()
291 armv7_counter_disable(ri); in armv7_stop_pmc()
292 armv7_interrupt_disable(ri); in armv7_stop_pmc()
298 armv7_release_pmc(int cpu, int ri, struct pmc *pmc) in armv7_release_pmc() argument
304 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_release_pmc()
305 ("[armv7,%d] illegal row-index %d", __LINE__, ri)); in armv7_release_pmc()
307 phw = &armv7_pcpu[cpu]->pc_armv7pmcs[ri]; in armv7_release_pmc()
317 int retval, ri; in armv7_intr() local
328 for (ri = 0; ri < armv7_npmcs; ri++) { in armv7_intr()
329 pm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; in armv7_intr()
337 reg = (1u << ri); in armv7_intr()
358 armv7_stop_pmc(cpu, ri, pm); in armv7_intr()
361 armv7_write_pmc(cpu, ri, pm, pm->pm_sc.pm_reloadcount); in armv7_intr()
368 armv7_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc) in armv7_describe() argument
374 KASSERT(ri >= 0 && ri < armv7_npmcs, in armv7_describe()
375 ("[armv7,%d] row-index %d out of range", __LINE__, ri)); in armv7_describe()
377 phw = &armv7_pcpu[cpu]->pc_armv7pmcs[ri]; in armv7_describe()
379 snprintf(pi->pm_name, sizeof(pi->pm_name), "ARMV7-%d", ri); in armv7_describe()
394 armv7_get_config(int cpu, int ri, struct pmc **ppm) in armv7_get_config() argument
397 *ppm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; in armv7_get_config()