Lines Matching refs:lbr_idx
446 unsigned lbr_idx, mask; in intel_pmu_lbr_restore() local
451 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
452 wrlbr_all(&task_ctx->lbr[i], lbr_idx, need_info); in intel_pmu_lbr_restore()
456 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore()
457 wrlbr_from(lbr_idx, 0); in intel_pmu_lbr_restore()
458 wrlbr_to(lbr_idx, 0); in intel_pmu_lbr_restore()
460 wrlbr_info(lbr_idx, 0); in intel_pmu_lbr_restore()
537 unsigned lbr_idx, mask; in intel_pmu_lbr_save() local
544 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_save()
545 if (!rdlbr_all(&task_ctx->lbr[i], lbr_idx, need_info)) in intel_pmu_lbr_save()
793 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_32() local
802 rdmsrl(x86_pmu.lbr_from + lbr_idx, msr_lastbranch.lbr); in intel_pmu_lbr_read_32()
840 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_64() local
846 from = rdlbr_from(lbr_idx, NULL); in intel_pmu_lbr_read_64()
847 to = rdlbr_to(lbr_idx, NULL); in intel_pmu_lbr_read_64()
859 info = rdlbr_info(lbr_idx, NULL); in intel_pmu_lbr_read_64()