Lines Matching refs:j
392 int j; in maybe_change_configuration() local
398 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
399 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
401 if (cpuc->current_idx[j] != PMC_NO_INDEX && in maybe_change_configuration()
402 cpuc->current_idx[j] != pe->hw.idx) { in maybe_change_configuration()
403 alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); in maybe_change_configuration()
404 cpuc->current_idx[j] = PMC_NO_INDEX; in maybe_change_configuration()
410 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
411 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
415 if (cpuc->current_idx[j] == PMC_NO_INDEX) { in maybe_change_configuration()
417 cpuc->current_idx[j] = idx; in maybe_change_configuration()
421 cpuc->idx_mask |= (1<<cpuc->current_idx[j]); in maybe_change_configuration()
489 int j; in alpha_pmu_del() local
494 for (j = 0; j < cpuc->n_events; j++) { in alpha_pmu_del()
495 if (event == cpuc->event[j]) { in alpha_pmu_del()
496 int idx = cpuc->current_idx[j]; in alpha_pmu_del()
501 while (++j < cpuc->n_events) { in alpha_pmu_del()
502 cpuc->event[j - 1] = cpuc->event[j]; in alpha_pmu_del()
503 cpuc->evtype[j - 1] = cpuc->evtype[j]; in alpha_pmu_del()
504 cpuc->current_idx[j - 1] = in alpha_pmu_del()
505 cpuc->current_idx[j]; in alpha_pmu_del()
815 int idx, j; in alpha_perf_event_irq_handler() local
838 for (j = 0; j < cpuc->n_events; j++) { in alpha_perf_event_irq_handler()
839 if (cpuc->current_idx[j] == idx) in alpha_perf_event_irq_handler()
843 if (unlikely(j == cpuc->n_events)) { in alpha_perf_event_irq_handler()
849 event = cpuc->event[j]; in alpha_perf_event_irq_handler()