Home
last modified time | relevance | path

Searched defs:pmc (Results 1 – 25 of 183) sorted by relevance

12345678

/openbmc/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.h61 static inline int get_mmcr0_fc56(u64 mmcr0, int pmc) in get_mmcr0_fc56()
71 static inline int get_mmcr0_pmao(u64 mmcr0, int pmc) in get_mmcr0_pmao()
91 static inline int get_mmcr0_pmae(u64 mmcr0, int pmc) in get_mmcr0_pmae()
101 static inline int get_mmcr1_unit(u64 mmcr1, int pmc) in get_mmcr1_unit()
106 static inline int get_mmcr1_comb(u64 mmcr1, int pmc) in get_mmcr1_comb()
116 static inline int get_mmcr1_rsq(u64 mmcr1, int pmc) in get_mmcr1_rsq()
121 static inline int get_mmcr2_fcs(u64 mmcr2, int pmc) in get_mmcr2_fcs()
126 static inline int get_mmcr2_fcp(u64 mmcr2, int pmc) in get_mmcr2_fcp()
151 static inline int get_mmcr2_fch(u64 mmcr2, int pmc) in get_mmcr2_fch()
173 static inline int get_mmcr3_src(u64 mmcr3, int pmc) in get_mmcr3_src()
[all …]
/openbmc/u-boot/arch/arm/mach-at91/
H A Dclock.c16 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_enable() local
39 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_disable() local
57 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_system_clk_enable() local
64 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_system_clk_disable() local
71 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_upll_clk_enable() local
92 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_upll_clk_disable() local
110 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_usb_clk_init() local
117 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pllicpr_init() local
/openbmc/linux/drivers/platform/x86/intel/pmc/
H A Dcore.c85 struct pmc *pmc = pmcdev->pmcs[PMC_IDX_MAIN]; in set_etr3() local
197 struct pmc *pmc = data; in pmc_core_dev_state_get() local
316 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_ppfear_show() local
465 struct pmc *pmc; in pmc_core_send_ltr_ignore() local
629 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_ltr_show() local
698 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_substate_sts_regs_show() local
719 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_substate_l_sts_regs_show() local
923 struct pmc *pmc = s->private; in pmc_core_pkgc_show() local
1023 int get_primary_reg_base(struct pmc *pmc) in get_primary_reg_base()
1195 struct pmc *pmc = pmcdev->pmcs[i]; in pmc_core_clean_structure() local
[all …]
/openbmc/linux/arch/x86/kvm/
H A Dpmu.c218 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
231 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
253 static void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
263 static void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
392 static bool pmc_event_is_allowed(struct kvm_pmc *pmc) in pmc_event_is_allowed()
399 static void reprogram_counter(struct kvm_pmc *pmc) in reprogram_counter()
523 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() local
663 struct kvm_pmc *pmc; in kvm_pmu_reset() local
750 struct kvm_pmc *pmc = NULL; in kvm_pmu_cleanup() local
776 static void kvm_pmu_incr_counter(struct kvm_pmc *pmc) in kvm_pmu_incr_counter()
[all …]
H A Dpmu.h9 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument
58 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
65 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
77 static inline void pmc_write_counter(struct kvm_pmc *pmc, u64 val) in pmc_write_counter()
83 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
88 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
131 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
140 static inline void pmc_update_sample_period(struct kvm_pmc *pmc) in pmc_update_sample_period()
150 static inline bool pmc_speculative_in_use(struct kvm_pmc *pmc) in pmc_speculative_in_use()
205 static inline void kvm_pmu_request_counter_reprogram(struct kvm_pmc *pmc) in kvm_pmu_request_counter_reprogram()
[all …]
/openbmc/u-boot/arch/arm/mach-at91/armv7/
H A Dclock.c58 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_clock_init() local
117 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local
126 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init() local
160 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init_down() local
196 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_enable_periph_generated_clk() local
259 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_get_periph_generated_clk() local
/openbmc/linux/drivers/soc/tegra/
H A Dpmc.c269 struct tegra_pmc *pmc; member
472 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable
1936 static int tegra_pmc_init(struct tegra_pmc *pmc) in tegra_pmc_init()
2264 struct tegra_pmc *pmc = domain->host_data; in tegra_pmc_irq_alloc() local
2515 static int tegra_pmc_irq_init(struct tegra_pmc *pmc) in tegra_pmc_irq_init()
2652 tegra_pmc_clk_out_register(struct tegra_pmc *pmc, in tegra_pmc_clk_out_register()
2844 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_readl() local
2852 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_writel() local
3213 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_suspend() local
3222 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_resume() local
[all …]
/openbmc/u-boot/arch/arm/mach-at91/arm926ejs/
H A Dclock.c116 at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; in at91_clock_init() local
204 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local
212 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pllb_init() local
221 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init() local
255 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_enable() local
273 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_disable() local
/openbmc/linux/arch/arm64/kvm/
H A Dpmu-emul.c29 static struct kvm_vcpu *kvm_pmc_to_vcpu(const struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
67 static bool kvm_pmc_is_64bit(struct kvm_pmc *pmc) in kvm_pmc_is_64bit()
73 static bool kvm_pmc_has_64bit_overflow(struct kvm_pmc *pmc) in kvm_pmc_has_64bit_overflow()
81 static bool kvm_pmu_counter_can_chain(struct kvm_pmc *pmc) in kvm_pmu_counter_can_chain()
97 static u64 kvm_pmu_get_pmc_value(struct kvm_pmc *pmc) in kvm_pmu_get_pmc_value()
177 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
192 static void kvm_pmu_stop_counter(struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
279 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() local
311 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask() local
436 struct kvm_pmc *pmc = kvm_vcpu_idx_to_pmc(vcpu, i); in kvm_pmu_counter_increment() local
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/tegra124/
H A Dcpu.c23 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in enable_cpu_power_rail() local
151 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in tegra124_init_clocks() local
233 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_partition_powered() local
243 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in power_partition() local
283 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in start_cpu() local
/openbmc/linux/drivers/mfd/
H A Dintel_pmc_bxt.c83 int intel_pmc_gcr_read64(struct intel_pmc_dev *pmc, u32 offset, u64 *data) in intel_pmc_gcr_read64()
108 int intel_pmc_gcr_update(struct intel_pmc_dev *pmc, u32 offset, u32 mask, u32 val) in intel_pmc_gcr_update()
139 int intel_pmc_s0ix_counter_read(struct intel_pmc_dev *pmc, u64 *data) in intel_pmc_s0ix_counter_read()
169 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in simplecmd_store() local
205 struct intel_pmc_dev *pmc = dev_get_drvdata(dev); in northpeak_store() local
304 struct intel_pmc_dev *pmc, in intel_pmc_get_resources()
393 static int intel_pmc_create_devices(struct intel_pmc_dev *pmc) in intel_pmc_create_devices()
426 struct intel_pmc_dev *pmc; in intel_pmc_probe() local
/openbmc/linux/drivers/platform/x86/
H A Dpmc_atom.c204 static inline u32 pmc_reg_read(struct pmc_dev *pmc, int reg_offset) in pmc_reg_read()
209 static inline void pmc_reg_write(struct pmc_dev *pmc, int reg_offset, u32 val) in pmc_reg_write()
216 struct pmc_dev *pmc = &pmc_device; in pmc_atom_read() local
242 static void pmc_hw_reg_setup(struct pmc_dev *pmc) in pmc_hw_reg_setup()
273 struct pmc_dev *pmc = s->private; in pmc_dev_state_show() local
296 struct pmc_dev *pmc = s->private; in pmc_pss_state_show() local
313 struct pmc_dev *pmc = s->private; in pmc_sleep_tmr_show() local
332 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register()
348 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register()
453 struct pmc_dev *pmc = &pmc_device; in pmc_setup_dev() local
/openbmc/linux/drivers/net/wireless/ath/wil6210/
H A Dpmc.c21 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
/openbmc/linux/arch/powerpc/perf/
H A Disa207-common.h200 #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 Dmpc7450-pmu.c39 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 Dpower6-pmu.c139 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
364 unsigned int psel, pmc; in p6_get_alternatives() local
463 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p6_disable_pmc()
H A Dpower5+-pmu.c137 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()
/openbmc/linux/net/ipv4/
H A Digmp.c1178 struct ip_mc_list *pmc; in igmpv3_add_delrec() local
1710 struct ip_mc_list *pmc; in ip_mc_unmap() local
1720 struct ip_mc_list *pmc; in ip_mc_remap() local
1736 struct ip_mc_list *pmc; in ip_mc_down() local
1787 struct ip_mc_list *pmc; in ip_mc_up() local
1914 struct ip_mc_list *pmc; in ip_mc_del_src() local
2086 struct ip_mc_list *pmc; in ip_mc_add_src() local
2312 struct ip_mc_socklist *pmc; in ip_mc_source() local
2450 struct ip_mc_socklist *pmc; in ip_mc_msfilter() local
2541 struct ip_mc_socklist *pmc; in ip_mc_msfget() local
[all …]
/openbmc/u-boot/arch/arm/mach-tegra/tegra114/
H A Dcpu.c20 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in enable_cpu_power_rail() local
188 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_partition_powered() local
198 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in is_clamp_enabled() local
208 struct pmc_ctlr *pmc = (struct pmc_ctlr *)NV_PA_PMC_BASE; in power_partition() local
/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c36 static u64 kvm_pmu_get_sample_period(struct kvm_pmc *pmc) in kvm_pmu_get_sample_period()
77 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
203 struct kvm_pmc *pmc; in pmu_ctr_read() local
232 static int kvm_pmu_create_perf_event(struct kvm_pmc *pmc, struct perf_event_attr *attr, in kvm_pmu_create_perf_event()
344 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_start() local
401 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_ctr_stop() local
466 struct kvm_pmc *pmc = NULL; in kvm_riscv_vcpu_pmu_ctr_cfg_match() local
549 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_init() local
614 struct kvm_pmc *pmc; in kvm_riscv_vcpu_pmu_deinit() local
/openbmc/linux/include/linux/mfd/
H A Dintel_pmc_bxt.h35 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()
/openbmc/linux/arch/x86/kvm/svm/
H A Dpmu.c76 static bool amd_hw_event_available(struct kvm_pmc *pmc) in amd_hw_event_available()
100 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() local
134 struct kvm_pmc *pmc; in amd_pmu_get_msr() local
156 struct kvm_pmc *pmc; in amd_pmu_set_msr() local
/openbmc/u-boot/arch/arm/mach-at91/arm920t/
H A Dclock.c108 at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; in at91_clock_init() local
162 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_enable() local
180 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_disable() local
/openbmc/linux/net/ipv6/
H A Dmcast.c122 #define for_each_pmc_rcu(np, pmc) \ argument
365 struct ipv6_mc_socklist *pmc; in ip6_mc_source() local
492 struct ipv6_mc_socklist *pmc; in ip6_mc_msfilter() local
587 struct ipv6_mc_socklist *pmc; in ip6_mc_msfget() local
734 struct ifmcaddr6 *pmc; in mld_add_delrec() local
774 struct ifmcaddr6 *pmc, *pmc_prev; in mld_del_delrec() local
815 struct ifmcaddr6 *pmc, *nextpmc; in mld_clear_delrec() local
2221 struct ifmcaddr6 *pmc; in mld_send_initial_cr() local
2318 struct ifmcaddr6 *pmc; in ip6_mc_del_src() local
2488 struct ifmcaddr6 *pmc; in ip6_mc_add_src() local
[all …]
/openbmc/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.c73 struct kvm_pmc *pmc; in reprogram_fixed_counters() local
104 static bool intel_hw_event_available(struct kvm_pmc *pmc) in intel_hw_event_available()
234 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() local
351 struct kvm_pmc *pmc; in intel_pmu_get_msr() local
394 struct kvm_pmc *pmc; in intel_pmu_set_msr() local
477 struct kvm_pmc *pmc = &pmu->fixed_counters[index]; in setup_fixed_pmc_eventsel() local
738 struct kvm_pmc *pmc = NULL; in intel_pmu_cross_mapped_check() local

12345678