Lines Matching refs:j
393 int j; in maybe_change_configuration() local
399 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
400 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
402 if (cpuc->current_idx[j] != PMC_NO_INDEX && in maybe_change_configuration()
403 cpuc->current_idx[j] != pe->hw.idx) { in maybe_change_configuration()
404 alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); in maybe_change_configuration()
405 cpuc->current_idx[j] = PMC_NO_INDEX; in maybe_change_configuration()
411 for (j = 0; j < cpuc->n_events; j++) { in maybe_change_configuration()
412 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration()
416 if (cpuc->current_idx[j] == PMC_NO_INDEX) { in maybe_change_configuration()
418 cpuc->current_idx[j] = idx; in maybe_change_configuration()
422 cpuc->idx_mask |= (1<<cpuc->current_idx[j]); in maybe_change_configuration()
490 int j; in alpha_pmu_del() local
495 for (j = 0; j < cpuc->n_events; j++) { in alpha_pmu_del()
496 if (event == cpuc->event[j]) { in alpha_pmu_del()
497 int idx = cpuc->current_idx[j]; in alpha_pmu_del()
502 while (++j < cpuc->n_events) { in alpha_pmu_del()
503 cpuc->event[j - 1] = cpuc->event[j]; in alpha_pmu_del()
504 cpuc->evtype[j - 1] = cpuc->evtype[j]; in alpha_pmu_del()
505 cpuc->current_idx[j - 1] = in alpha_pmu_del()
506 cpuc->current_idx[j]; in alpha_pmu_del()
811 int idx, j; in alpha_perf_event_irq_handler() local
834 for (j = 0; j < cpuc->n_events; j++) { in alpha_perf_event_irq_handler()
835 if (cpuc->current_idx[j] == idx) in alpha_perf_event_irq_handler()
839 if (unlikely(j == cpuc->n_events)) { in alpha_perf_event_irq_handler()
845 event = cpuc->event[j]; in alpha_perf_event_irq_handler()