Lines Matching refs:counters
144 static unsigned int counters_total_to_per_cpu(unsigned int counters) in counters_total_to_per_cpu() argument
146 return counters >> vpe_shift(); in counters_total_to_per_cpu()
815 int counters; in n_counters() local
819 counters = 2; in n_counters()
825 counters = 4; in n_counters()
829 counters = __n_counters(); in n_counters()
832 return counters; in n_counters()
837 int counters = (int)(long)arg; in loongson3_reset_counters() local
839 switch (counters) { in loongson3_reset_counters()
909 int counters = (int)(long)arg; in reset_counters() local
916 switch (counters) { in reset_counters()
1577 unsigned int counters = mipspmu.num_counters; in mipsxx_pmu_handle_shared_irq() local
1600 for (n = counters - 1; n >= 0; n--) { in mipsxx_pmu_handle_shared_irq()
1893 int counters, irq, pmu_type; in init_hw_perf_events() local
1897 counters = n_counters(); in init_hw_perf_events()
1898 if (counters == 0) { in init_hw_perf_events()
1905 counters = counters_total_to_per_cpu(counters); in init_hw_perf_events()
1984 counters = 2; in init_hw_perf_events()
1989 counters = 4; in init_hw_perf_events()
1994 counters = 4; in init_hw_perf_events()
2020 mipspmu.num_counters = counters; in init_hw_perf_events()
2046 on_each_cpu(reset_counters, (void *)(long)counters, 1); in init_hw_perf_events()
2049 "CPU, irq %d%s\n", mipspmu.name, counters, counter_bits, irq, in init_hw_perf_events()