Lines Matching refs:n_events
992 n0 = cpuc->n_events; in x86_schedule_events()
1168 n = cpuc->n_events; in collect_events()
1169 if (!cpuc->n_events) in collect_events()
1297 int n_running = cpuc->n_events - cpuc->n_added; in x86_pmu_enable()
1331 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_enable()
1446 n0 = cpuc->n_events; in x86_pmu_add()
1480 cpuc->n_events = n; in x86_pmu_add()
1629 for (i = 0; i < cpuc->n_events; i++) { in x86_pmu_del()
1634 if (WARN_ON_ONCE(i == cpuc->n_events)) /* called ->del() without ->add() ? */ in x86_pmu_del()
1638 if (i >= cpuc->n_events - cpuc->n_added) in x86_pmu_del()
1644 while (++i < cpuc->n_events) { in x86_pmu_del()
1649 --cpuc->n_events; in x86_pmu_del()
2280 __this_cpu_sub(cpu_hw_events.n_events, __this_cpu_read(cpu_hw_events.n_txn)); in x86_pmu_cancel_txn()
2306 n = cpuc->n_events; in x86_pmu_commit_txn()
2445 fake_cpuc->n_events = n; in validate_group()
2450 fake_cpuc->n_events = 0; in validate_group()
2500 for (i = 0; i < cpuc->n_events; i++) in perf_clear_dirty_counters()