| /linux-6.15/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | misc.h | 65 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) in get_mmcr0_fc56() 75 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) in get_mmcr0_pmao() 95 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) in get_mmcr0_pmae() 105 static inline int get_mmcr1_unit(u64 mmcr1, int pmc) in get_mmcr1_unit() 110 static inline int get_mmcr1_comb(u64 mmcr1, int pmc) in get_mmcr1_comb() 120 static inline int get_mmcr1_rsq(u64 mmcr1, int pmc) in get_mmcr1_rsq() 125 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs() 130 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp() 155 static inline int get_mmcr2_fch(u64 mmcr2, int pmc) in get_mmcr2_fch() 177 static inline int get_mmcr3_src(u64 mmcr3, int pmc) in get_mmcr3_src() [all …]
|
| /linux-6.15/drivers/platform/x86/intel/pmc/ |
| H A D | core.c | 188 struct pmc *pmc = data; in pmc_core_dev_state_get() local 202 struct pmc *pmc = data; in pmc_core_pson_residency_get() local 321 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_ppfear_show() local 465 struct pmc *pmc; in pmc_core_send_ltr_ignore() local 635 struct pmc *pmc; in pmc_core_ltr_show() local 692 struct pmc *pmc; in pmc_core_s0ix_blocker_show() local 723 struct pmc *pmc; in pmc_core_ltr_ignore_all() local 750 struct pmc *pmc; in pmc_core_ltr_restore_all() local 794 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_substate_sts_regs_show() local 815 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_substate_l_sts_regs_show() local [all …]
|
| /linux-6.15/arch/x86/kvm/ |
| H A D | pmu.c | 230 static bool pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter() 256 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter() 288 static void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter() 306 void pmc_write_counter(struct kvm_pmc *pmc, u64 val) in pmc_write_counter() 444 static bool pmc_event_is_allowed(struct kvm_pmc *pmc) in pmc_event_is_allowed() 450 static int reprogram_counter(struct kvm_pmc *pmc) in reprogram_counter() 499 struct kvm_pmc *pmc; in kvm_pmu_handle_event() local 585 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() local 725 struct kvm_pmc *pmc; in kvm_pmu_reset() local 806 struct kvm_pmc *pmc = NULL; in kvm_pmu_cleanup() local [all …]
|
| H A D | pmu.h | 11 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument 92 #define kvm_for_each_pmc(pmu, pmc, i, bitmap) \ argument 98 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask() 105 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter() 120 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp() 125 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed() 168 static inline bool pmc_speculative_in_use(struct kvm_pmc *pmc) in pmc_speculative_in_use() 230 static inline void kvm_pmu_request_counter_reprogram(struct kvm_pmc *pmc) in kvm_pmu_request_counter_reprogram() 253 static inline bool pmc_is_globally_enabled(struct kvm_pmc *pmc) in pmc_is_globally_enabled()
|
| /linux-6.15/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 87 static bool kvm_pmc_is_64bit(struct kvm_pmc *pmc) in kvm_pmc_is_64bit() 107 static bool kvm_pmu_counter_can_chain(struct kvm_pmc *pmc) in kvm_pmu_counter_can_chain() 123 static u64 kvm_pmc_read_evtreg(const struct kvm_pmc *pmc) in kvm_pmc_read_evtreg() 128 static u64 kvm_pmu_get_pmc_value(struct kvm_pmc *pmc) in kvm_pmu_get_pmc_value() 230 static void kvm_pmu_stop_counter(struct kvm_pmc *pmc) in kvm_pmu_stop_counter() 354 struct kvm_pmc *pmc = kvm_vcpu_idx_to_pmc(vcpu, i); in kvm_pmu_reprogram_counter_mask() local 493 struct kvm_pmc *pmc = kvm_vcpu_idx_to_pmc(vcpu, i); in kvm_pmu_counter_increment() local 638 static bool kvm_pmc_counts_at_el0(struct kvm_pmc *pmc) in kvm_pmc_counts_at_el0() 647 static bool kvm_pmc_counts_at_el1(struct kvm_pmc *pmc) in kvm_pmc_counts_at_el1() 656 static bool kvm_pmc_counts_at_el2(struct kvm_pmc *pmc) in kvm_pmc_counts_at_el2() [all …]
|
| /linux-6.15/drivers/soc/tegra/ |
| H A D | pmc.c | 270 struct tegra_pmc *pmc; member 474 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable 1902 static int tegra_pmc_init(struct tegra_pmc *pmc) in tegra_pmc_init() 2230 struct tegra_pmc *pmc = domain->host_data; in tegra_pmc_irq_alloc() local 2481 static int tegra_pmc_irq_init(struct tegra_pmc *pmc) in tegra_pmc_irq_init() 2618 tegra_pmc_clk_out_register(struct tegra_pmc *pmc, in tegra_pmc_clk_out_register() 2810 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_readl() local 2818 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_writel() local 3180 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_suspend() local 3189 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_resume() local [all …]
|
| /linux-6.15/drivers/mfd/ |
| H A D | intel_pmc_bxt.c | 82 int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data) in intel_pmc_gcr_read64() 107 int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val) in intel_pmc_gcr_update() 138 int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data) in intel_pmc_s0ix_counter_read() 168 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in simplecmd_store() local 204 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in northpeak_store() local 303 struct intel_pmc_dev *pmc, in intel_pmc_get_resources() 392 static int intel_pmc_create_devices(struct intel_pmc_dev *pmc) in intel_pmc_create_devices() 425 struct intel_pmc_dev *pmc; in intel_pmc_probe() local
|
| /linux-6.15/arch/powerpc/perf/ |
| H A D | isa207-common.h | 200 #define CNST_PMC_SHIFT(pmc) ((pmc - 1) * 2) argument 201 #define CNST_PMC_VAL(pmc) (1 << CNST_PMC_SHIFT(pmc)) argument 202 #define CNST_PMC_MASK(pmc) (2 << CNST_PMC_SHIFT(pmc)) argument 210 #define MMCR1_UNIT_SHIFT(pmc) (60 - (4 * ((pmc) - 1))) argument 211 #define MMCR1_COMBINE_SHIFT(pmc) (35 - ((pmc) - 1)) argument 212 #define MMCR1_PMCSEL_SHIFT(pmc) (24 - (((pmc) - 1)) * 8) argument 218 #define p9_MMCR1_COMBINE_SHIFT(pmc) (38 - ((pmc - 1) * 2)) argument 250 #define MMCR2_FCS(pmc) (1ull << (63 - (((pmc) - 1) * 9))) argument 251 #define MMCR2_FCP(pmc) (1ull << (62 - (((pmc) - 1) * 9))) argument 253 #define MMCR2_FCH(pmc) (1ull << (57 - (((pmc) - 1) * 9))) argument [all …]
|
| H A D | mpc7450-pmu.c | 39 int pmc; in mpc7450_classify_event() local 79 int pmc, sel; in mpc7450_threshold_use() local 153 int pmc, class; in mpc7450_get_constraint() local 269 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local 342 static void mpc7450_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in mpc7450_disable_pmc()
|
| H A D | power6-pmu.c | 139 int pmc, psel, ptype; in power6_marked_instr_event() local 182 unsigned int pmc, ev, b, u, s, psel; in p6_compute_mmcr() local 272 int pmc, byte, sh, subunit; in p6_get_constraint() local 305 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in p6_limited_pmc_event() local 376 unsigned int psel, pmc; in p6_get_alternatives() local 475 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p6_disable_pmc()
|
| H A D | power5+-pmu.c | 137 int pmc, byte, unit, sh; in power5p_get_constraint() local 191 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power5p_limited_pmc_event() local 245 int pmc, altpmc, pp, j; in find_alternative_bdecode() local 405 int pmc, psel; in power5p_marked_instr_event() local 459 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local 603 static void power5p_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5p_disable_pmc()
|
| H A D | power7-pmu.c | 86 int pmc, sh, unit; in power7_get_constraint() local 146 int pmc, psel; in find_alternative_decode() local 215 int pmc, psel; in power7_marked_instr_event() local 253 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local 315 static void power7_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power7_disable_pmc()
|
| H A D | power5-pmu.c | 141 int pmc, byte, unit, sh; in power5_get_constraint() local 253 int pmc, altpmc, pp, j; in find_alternative_bdecode() local 341 int pmc, psel; in power5_marked_instr_event() local 390 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local 545 static void power5_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5_disable_pmc()
|
| H A D | ppc970-pmu.c | 147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local 195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local 263 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local 406 static void p970_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p970_disable_pmc()
|
| H A D | isa207-common.c | 172 static unsigned long combine_shift(unsigned long pmc) in combine_shift() 415 unsigned int unit, pmc, cache, ebb; in isa207_get_constraint() local 576 unsigned int pmc, pmc_inuse; in isa207_compute_mmcr() local 745 void isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in isa207_disable_pmc()
|
| /linux-6.15/drivers/platform/x86/ |
| H A D | pmc_atom.c | 206 static inline u32 pmc_reg_read(struct pmc_dev *pmc, int reg_offset) in pmc_reg_read() 211 static inline void pmc_reg_write(struct pmc_dev *pmc, int reg_offset, u32 val) in pmc_reg_write() 218 struct pmc_dev *pmc = &pmc_device; in pmc_atom_read() local 244 static void pmc_hw_reg_setup(struct pmc_dev *pmc) in pmc_hw_reg_setup() 275 struct pmc_dev *pmc = s->private; in pmc_dev_state_show() local 298 struct pmc_dev *pmc = s->private; in pmc_pss_state_show() local 315 struct pmc_dev *pmc = s->private; in pmc_sleep_tmr_show() local 334 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register() 350 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register() 475 struct pmc_dev *pmc = &pmc_device; in pmc_s2idle_check() local [all …]
|
| /linux-6.15/drivers/net/wireless/ath/wil6210/ |
| H A D | pmc.c | 21 static int wil_is_pmc_allocated(struct pmc_ctx *pmc) in wil_is_pmc_allocated() 44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local 228 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_free() local 318 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_read() local 374 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_llseek() local 424 struct pmc_ctx *pmc = &wil->pmc; in wil_pmcring_read() local
|
| /linux-6.15/net/ipv4/ |
| H A D | igmp.c | 1181 struct ip_mc_list *pmc; in igmpv3_add_delrec() local 1798 struct ip_mc_list *pmc; in ip_mc_unmap() local 1808 struct ip_mc_list *pmc; in ip_mc_remap() local 1824 struct ip_mc_list *pmc; in ip_mc_down() local 1875 struct ip_mc_list *pmc; in ip_mc_up() local 2003 struct ip_mc_list *pmc; in ip_mc_del_src() local 2175 struct ip_mc_list *pmc; in ip_mc_add_src() local 2401 struct ip_mc_socklist *pmc; in ip_mc_source() local 2539 struct ip_mc_socklist *pmc; in ip_mc_msfilter() local 2630 struct ip_mc_socklist *pmc; in ip_mc_msfget() local [all …]
|
| /linux-6.15/mm/ |
| H A D | mremap.c | 173 static int move_ptes(struct pagetable_move_control *pmc, in move_ptes() 296 static bool move_normal_pmd(struct pagetable_move_control *pmc, in move_normal_pmd() 380 static bool move_normal_pud(struct pagetable_move_control *pmc, in move_normal_pud() 438 static bool move_huge_pud(struct pagetable_move_control *pmc, in move_huge_pud() 479 static bool move_huge_pud(struct pagetable_move_control *pmc, in move_huge_pud() 502 struct pagetable_move_control *pmc) in get_extent() 556 static bool move_pgt_entry(struct pagetable_move_control *pmc, in move_pgt_entry() 600 static bool can_align_down(struct pagetable_move_control *pmc, in can_align_down() 629 static bool can_realign_addr(struct pagetable_move_control *pmc, in can_realign_addr() 708 static void try_realign_addr(struct pagetable_move_control *pmc, in try_realign_addr() [all …]
|
| /linux-6.15/arch/riscv/kvm/ |
| H A D | vcpu_pmu.c | 37 static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc) in kvm_pmu_get_sample_period() 78 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event() 204 struct kvm_pmc *pmc; in pmu_fw_ctr_read_hi() local 234 struct kvm_pmc *pmc; in pmu_ctr_read() local 272 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_riscv_pmu_overflow() local 309 static long kvm_pmu_create_perf_event(struct kvm_pmc *pmc, struct perf_event_attr *attr, in kvm_pmu_create_perf_event() 486 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_start() local 563 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_stop() local 664 struct kvm_pmc *pmc = NULL; in kvm_riscv_vcpu_pmu_ctr_cfg_match() local 762 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_init() local [all …]
|
| /linux-6.15/net/ipv6/ |
| H A D | mcast.c | 125 #define for_each_pmc_rcu(np, pmc) \ argument 368 struct ipv6_mc_socklist *pmc; in ip6_mc_source() local 495 struct ipv6_mc_socklist *pmc; in ip6_mc_msfilter() local 590 struct ipv6_mc_socklist *pmc; in ip6_mc_msfget() local 738 struct ifmcaddr6 *pmc; in mld_add_delrec() local 778 struct ifmcaddr6 *pmc, *pmc_prev; in mld_del_delrec() local 819 struct ifmcaddr6 *pmc, *nextpmc; in mld_clear_delrec() local 2270 struct ifmcaddr6 *pmc; in mld_send_initial_cr() local 2367 struct ifmcaddr6 *pmc; in ip6_mc_del_src() local 2537 struct ifmcaddr6 *pmc; in ip6_mc_add_src() local [all …]
|
| /linux-6.15/include/linux/mfd/ |
| H A D | intel_pmc_bxt.h | 35 static inline int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, in intel_pmc_gcr_read64() 41 static inline int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, in intel_pmc_gcr_update() 47 static inline int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data) in intel_pmc_s0ix_counter_read()
|
| /linux-6.15/arch/x86/kvm/vmx/ |
| H A D | pmu_intel.c | 39 struct kvm_pmc *pmc; in reprogram_fixed_counters() local 184 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() local 301 struct kvm_pmc *pmc; in intel_pmu_get_msr() local 344 struct kvm_pmc *pmc; in intel_pmu_set_msr() local 710 struct kvm_pmc *pmc = NULL; in intel_pmu_cross_mapped_check() local
|
| /linux-6.15/arch/x86/kvm/svm/ |
| H A D | pmu.c | 96 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() local 130 struct kvm_pmc *pmc; in amd_pmu_get_msr() local 152 struct kvm_pmc *pmc; in amd_pmu_set_msr() local
|
| /linux-6.15/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | ebb.c | 71 bool ebb_check_count(int pmc, u64 sample_period, int fudge) in ebb_check_count() 252 int count_pmc(int pmc, uint32_t sample_period) in count_pmc() 440 void write_pmc(int pmc, u64 value) in write_pmc() 452 u64 read_pmc(int pmc) in read_pmc()
|