Lines Matching refs:lbr_idx
365 unsigned lbr_idx, mask; in intel_pmu_lbr_restore() local
370 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
371 wrlbr_all(&task_ctx->lbr[i], lbr_idx, need_info); in intel_pmu_lbr_restore()
375 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
376 wrlbr_from(lbr_idx, 0); in intel_pmu_lbr_restore()
377 wrlbr_to(lbr_idx, 0); in intel_pmu_lbr_restore()
379 wrlbr_info(lbr_idx, 0); in intel_pmu_lbr_restore()
456 unsigned lbr_idx, mask; in intel_pmu_lbr_save() local
463 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_save()
464 if (!rdlbr_all(&task_ctx->lbr[i], lbr_idx, need_info)) in intel_pmu_lbr_save()
717 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_32() local
726 rdmsrl(x86_pmu.lbr_from + lbr_idx, msr_lastbranch.lbr); in intel_pmu_lbr_read_32()
760 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_64() local
764 from = rdlbr_from(lbr_idx, NULL); in intel_pmu_lbr_read_64()
765 to = rdlbr_to(lbr_idx, NULL); in intel_pmu_lbr_read_64()
778 info = rdlbr_info(lbr_idx, NULL); in intel_pmu_lbr_read_64()