Lines Matching refs:lbr_idx
344 unsigned lbr_idx, mask; in __intel_pmu_lbr_restore() local
368 lbr_idx = (tos - i) & mask; in __intel_pmu_lbr_restore()
369 wrlbr_from(lbr_idx, task_ctx->lbr_from[i]); in __intel_pmu_lbr_restore()
370 wrlbr_to (lbr_idx, task_ctx->lbr_to[i]); in __intel_pmu_lbr_restore()
373 wrmsrl(MSR_LBR_INFO_0 + lbr_idx, task_ctx->lbr_info[i]); in __intel_pmu_lbr_restore()
377 lbr_idx = (tos - i) & mask; in __intel_pmu_lbr_restore()
378 wrlbr_from(lbr_idx, 0); in __intel_pmu_lbr_restore()
379 wrlbr_to(lbr_idx, 0); in __intel_pmu_lbr_restore()
381 wrmsrl(MSR_LBR_INFO_0 + lbr_idx, 0); in __intel_pmu_lbr_restore()
391 unsigned lbr_idx, mask; in __intel_pmu_lbr_save() local
403 lbr_idx = (tos - i) & mask; in __intel_pmu_lbr_save()
404 from = rdlbr_from(lbr_idx); in __intel_pmu_lbr_save()
408 task_ctx->lbr_to[i] = rdlbr_to(lbr_idx); in __intel_pmu_lbr_save()
410 rdmsrl(MSR_LBR_INFO_0 + lbr_idx, task_ctx->lbr_info[i]); in __intel_pmu_lbr_save()
543 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_32() local
552 rdmsrl(x86_pmu.lbr_from + lbr_idx, msr_lastbranch.lbr); in intel_pmu_lbr_read_32()
589 unsigned long lbr_idx = (tos - i) & mask; in intel_pmu_lbr_read_64() local
595 from = rdlbr_from(lbr_idx); in intel_pmu_lbr_read_64()
596 to = rdlbr_to(lbr_idx); in intel_pmu_lbr_read_64()
608 rdmsrl(MSR_LBR_INFO_0 + lbr_idx, info); in intel_pmu_lbr_read_64()