Home
last modified time | relevance | path

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

12345

/Linux-v5.10/arch/x86/kvm/
Dpmu.c62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow() local
75 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr() local
97 static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, in pmc_reprogram_counter()
142 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter()
154 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter()
171 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter()
239 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter()
277 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() local
299 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() local
362 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() local
[all …]
Dpmu.h9 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument
44 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
51 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
63 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event()
73 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
81 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
86 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
91 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
134 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
/Linux-v5.10/drivers/platform/x86/
Dpmc_atom.c203 static inline u32 pmc_reg_read(struct pmc_dev *pmc, int reg_offset) in pmc_reg_read()
208 static inline void pmc_reg_write(struct pmc_dev *pmc, int reg_offset, u32 val) in pmc_reg_write()
215 struct pmc_dev *pmc = &pmc_device; in pmc_atom_read() local
227 struct pmc_dev *pmc = &pmc_device; in pmc_atom_write() local
254 static void pmc_hw_reg_setup(struct pmc_dev *pmc) in pmc_hw_reg_setup()
285 struct pmc_dev *pmc = s->private; in pmc_dev_state_show() local
308 struct pmc_dev *pmc = s->private; in pmc_pss_state_show() local
325 struct pmc_dev *pmc = s->private; in pmc_sleep_tmr_show() local
344 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register()
360 static void pmc_dbgfs_register(struct pmc_dev *pmc) in pmc_dbgfs_register()
[all …]
/Linux-v5.10/drivers/mfd/
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
/Linux-v5.10/drivers/soc/tegra/
Dpmc.c236 struct tegra_pmc *pmc; member
408 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable
419 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_readl()
441 static void tegra_pmc_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_writel()
462 static u32 tegra_pmc_scratch_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_scratch_readl()
470 static void tegra_pmc_scratch_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_scratch_writel()
492 static inline bool tegra_powergate_is_valid(struct tegra_pmc *pmc, int id) in tegra_powergate_is_valid()
497 static inline bool tegra_powergate_is_available(struct tegra_pmc *pmc, int id) in tegra_powergate_is_available()
502 static int tegra_powergate_lookup(struct tegra_pmc *pmc, const char *name) in tegra_powergate_lookup()
526 static int tegra_powergate_set(struct tegra_pmc *pmc, unsigned int id, in tegra_powergate_set()
[all …]
/Linux-v5.10/arch/powerpc/perf/
Disa207-common.h183 #define CNST_PMC_SHIFT(pmc) ((pmc - 1) * 2) argument
184 #define CNST_PMC_VAL(pmc) (1 << CNST_PMC_SHIFT(pmc)) argument
185 #define CNST_PMC_MASK(pmc) (2 << CNST_PMC_SHIFT(pmc)) argument
193 #define MMCR1_UNIT_SHIFT(pmc) (60 - (4 * ((pmc) - 1))) argument
194 #define MMCR1_COMBINE_SHIFT(pmc) (35 - ((pmc) - 1)) argument
195 #define MMCR1_PMCSEL_SHIFT(pmc) (24 - (((pmc) - 1)) * 8) argument
201 #define p9_MMCR1_COMBINE_SHIFT(pmc) (38 - ((pmc - 1) * 2)) argument
228 #define MMCR2_FCS(pmc) (1ull << (63 - (((pmc) - 1) * 9))) argument
229 #define MMCR2_FCP(pmc) (1ull << (62 - (((pmc) - 1) * 9))) argument
230 #define MMCR2_FCH(pmc) (1ull << (57 - (((pmc) - 1) * 9))) argument
[all …]
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
268 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local
341 static void mpc7450_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in mpc7450_disable_pmc()
Dpower6-pmu.c139 int pmc, psel, ptype; in power6_marked_instr_event() local
181 unsigned int pmc, ev, b, u, s, psel; in p6_compute_mmcr() local
271 int pmc, byte, sh, subunit; in p6_get_constraint() local
304 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in p6_limited_pmc_event() local
363 unsigned int psel, pmc; in p6_get_alternatives() local
462 static void p6_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p6_disable_pmc()
Dpower7-pmu.c86 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
252 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local
314 static void power7_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power7_disable_pmc()
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
458 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local
602 static void power5p_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5p_disable_pmc()
Dpower5-pmu.c141 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
389 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local
544 static void power5_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in power5_disable_pmc()
Disa207-common.c127 static unsigned long combine_shift(unsigned long pmc) in combine_shift()
258 unsigned int unit, pmc, cache, ebb; in isa207_get_constraint() local
403 unsigned int pmc, pmc_inuse; in isa207_compute_mmcr() local
550 void isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in isa207_disable_pmc()
Dppc970-pmu.c147 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
195 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
262 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local
405 static void p970_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in p970_disable_pmc()
/Linux-v5.10/drivers/net/wireless/ath/wil6210/
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
/Linux-v5.10/arch/arm64/kvm/
Dpmu-emul.c49 static struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
64 static bool kvm_pmu_pmc_is_chained(struct kvm_pmc *pmc) in kvm_pmu_pmc_is_chained()
87 static struct kvm_pmc *kvm_pmu_get_canonical_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_canonical_pmc()
95 static struct kvm_pmc *kvm_pmu_get_alternate_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_alternate_pmc()
129 struct kvm_pmc *pmc) in kvm_pmu_get_pair_counter_value()
167 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() local
202 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
218 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
312 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() local
347 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask() local
[all …]
/Linux-v5.10/net/ipv4/
Digmp.c175 #define for_each_pmc_rcu(in_dev, pmc) \ argument
180 #define for_each_pmc_rtnl(in_dev, pmc) \ argument
270 static int is_in(struct ip_mc_list *pmc, struct ip_sf_list *psf, int type, in is_in()
315 igmp_scount(struct ip_mc_list *pmc, int type, int gdeleted, int sdeleted) in igmp_scount()
427 static int grec_size(struct ip_mc_list *pmc, int type, int gdel, int sdel) in grec_size()
432 static struct sk_buff *add_grhead(struct sk_buff *skb, struct ip_mc_list *pmc, in add_grhead()
457 static struct sk_buff *add_grec(struct sk_buff *skb, struct ip_mc_list *pmc, in add_grec()
584 static int igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) in igmpv3_send_report()
642 static void kfree_pmc(struct ip_mc_list *pmc) in kfree_pmc()
651 struct ip_mc_list *pmc, *pmc_prev, *pmc_next; in igmpv3_send_cr() local
[all …]
/Linux-v5.10/arch/x86/kvm/vmx/
Dpmu_intel.c45 struct kvm_pmc *pmc; in reprogram_fixed_counters() local
102 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled()
196 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() local
208 struct kvm_pmc *pmc; in intel_pmu_get_msr() local
248 struct kvm_pmc *pmc; in intel_pmu_set_msr() local
409 struct kvm_pmc *pmc = NULL; in intel_pmu_reset() local
/Linux-v5.10/include/linux/mfd/
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()
/Linux-v5.10/arch/x86/kvm/svm/
Dpmu.c155 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled()
210 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() local
221 struct kvm_pmc *pmc; in amd_pmu_get_msr() local
243 struct kvm_pmc *pmc; in amd_pmu_set_msr() local
307 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset() local
/Linux-v5.10/net/ipv6/
Dmcast.c116 #define for_each_pmc_rcu(np, pmc) \ argument
332 struct ipv6_mc_socklist *pmc; in ip6_mc_source() local
464 struct ipv6_mc_socklist *pmc; in ip6_mc_msfilter() local
555 struct ipv6_mc_socklist *pmc; in ip6_mc_msfget() local
726 struct ifmcaddr6 *pmc; in mld_add_delrec() local
764 struct ifmcaddr6 *pmc, *pmc_prev; in mld_del_delrec() local
803 struct ifmcaddr6 *pmc, *nextpmc; in mld_clear_delrec() local
1103 static bool mld_xmarksources(struct ifmcaddr6 *pmc, int nsrcs, in mld_xmarksources()
1131 static bool mld_marksources(struct ifmcaddr6 *pmc, int nsrcs, in mld_marksources()
1503 static bool is_in(struct ifmcaddr6 *pmc, struct ip6_sf_list *psf, int type, in is_in()
[all …]
/Linux-v5.10/tools/testing/selftests/powerpc/pmu/ebb/
Debb.c71 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()
Debb.h14 #define PMC_INDEX(pmc) ((pmc)-1) argument
41 static inline void ebb_enable_pmc_counting(int pmc) in ebb_enable_pmc_counting()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/mc/
Dgp100.c109 int index, struct nvkm_mc **pmc) in gp100_mc_new_()
125 gp100_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc) in gp100_mc_new()
/Linux-v5.10/arch/arm/boot/dts/
Dat91sam9g25.dtsi29 pmc: pmc@fffffc00 { label
Dat91sam9g35.dtsi28 pmc: pmc@fffffc00 { label

12345