Lines Matching refs:lbr_nr
249 for (i = 0; i < x86_pmu.lbr_nr; i++) in intel_pmu_lbr_reset_32()
257 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_lbr_reset_64()
268 wrmsrl(MSR_ARCH_LBR_DEPTH, x86_pmu.lbr_nr); in intel_pmu_arch_lbr_reset()
275 if (!x86_pmu.lbr_nr) in intel_pmu_lbr_reset()
449 mask = x86_pmu.lbr_nr - 1; in intel_pmu_lbr_restore()
455 for (; i < x86_pmu.lbr_nr; i++) { in intel_pmu_lbr_restore()
476 if (!entries[x86_pmu.lbr_nr - 1].from) in intel_pmu_arch_lbr_restore()
479 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_arch_lbr_restore()
541 mask = x86_pmu.lbr_nr - 1; in intel_pmu_lbr_save()
543 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_lbr_save()
561 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_arch_lbr_save()
567 if (i < x86_pmu.lbr_nr) in intel_pmu_arch_lbr_save()
568 entries[x86_pmu.lbr_nr - 1].from = 0; in intel_pmu_arch_lbr_save()
663 if (!x86_pmu.lbr_nr) in intel_pmu_lbr_add()
744 if (!x86_pmu.lbr_nr) in intel_pmu_lbr_del()
788 unsigned long mask = x86_pmu.lbr_nr - 1; in intel_pmu_lbr_read_32()
792 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_lbr_read_32()
826 unsigned long mask = x86_pmu.lbr_nr - 1; in intel_pmu_lbr_read_64()
831 int num = x86_pmu.lbr_nr; in intel_pmu_lbr_read_64()
955 for (i = 0; i < x86_pmu.lbr_nr; i++) { in intel_pmu_store_lbr()
1152 if (!x86_pmu.lbr_nr) in intel_pmu_setup_lbr_filter()
1567 x86_pmu.lbr_nr = 4; in intel_pmu_lbr_init_core()
1581 x86_pmu.lbr_nr = 16; in intel_pmu_lbr_init_nhm()
1601 x86_pmu.lbr_nr = 16; in intel_pmu_lbr_init_snb()
1628 x86_pmu.lbr_nr = 16; in intel_pmu_lbr_init_hsw()
1647 x86_pmu.lbr_nr = 32; in intel_pmu_lbr_init_skl()
1680 x86_pmu.lbr_nr = 8; in intel_pmu_lbr_init_atom()
1694 x86_pmu.lbr_nr = 8; in intel_pmu_lbr_init_slm()
1712 x86_pmu.lbr_nr = 8; in intel_pmu_lbr_init_knl()
1733 x86_pmu.lbr_nr * sizeof(struct lbr_entry); in get_lbr_state_size()
1763 u64 lbr_nr; in intel_pmu_arch_lbr_init() local
1768 lbr_nr = fls(eax.split.lbr_depth_mask) * 8; in intel_pmu_arch_lbr_init()
1769 if (!lbr_nr) in intel_pmu_arch_lbr_init()
1773 if (wrmsrl_safe(MSR_ARCH_LBR_DEPTH, lbr_nr)) in intel_pmu_arch_lbr_init()
1785 x86_pmu.lbr_nr = lbr_nr; in intel_pmu_arch_lbr_init()
1800 lbr_nr * sizeof(struct lbr_entry); in intel_pmu_arch_lbr_init()
1864 lbr->nr = x86_pmu.lbr_nr; in x86_perf_get_lbr()