Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/soc/tegra/
Dpmc.c147 struct tegra_pmc *pmc; member
349 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable
360 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_readl()
382 static void tegra_pmc_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_writel()
403 static u32 tegra_pmc_scratch_readl(struct tegra_pmc *pmc, unsigned long offset) in tegra_pmc_scratch_readl()
411 static void tegra_pmc_scratch_writel(struct tegra_pmc *pmc, u32 value, in tegra_pmc_scratch_writel()
433 static inline bool tegra_powergate_is_valid(struct tegra_pmc *pmc, int id) in tegra_powergate_is_valid()
438 static inline bool tegra_powergate_is_available(struct tegra_pmc *pmc, int id) in tegra_powergate_is_available()
443 static int tegra_powergate_lookup(struct tegra_pmc *pmc, const char *name) in tegra_powergate_lookup()
467 static int tegra_powergate_set(struct tegra_pmc *pmc, unsigned int id, in tegra_powergate_set()
[all …]
/Linux-v5.4/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.4/arch/x86/kvm/
Dpmu.h7 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument
39 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask()
46 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter()
58 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_counter()
67 static inline bool pmc_is_gp(struct kvm_pmc *pmc) in pmc_is_gp()
72 static inline bool pmc_is_fixed(struct kvm_pmc *pmc) in pmc_is_fixed()
77 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled()
Dpmu.c62 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow() local
76 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_perf_overflow_intr() local
99 static void pmc_reprogram_counter(struct kvm_pmc *pmc, u32 type, in pmc_reprogram_counter()
143 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter()
205 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter()
237 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, pmc_idx); in reprogram_counter() local
262 struct kvm_pmc *pmc = kvm_x86_ops->pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() local
317 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() local
Dpmu_amd.c155 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled()
214 struct kvm_pmc *pmc; in amd_pmu_get_msr() local
235 struct kvm_pmc *pmc; in amd_pmu_set_msr() local
297 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset() local
/Linux-v5.4/virt/kvm/arm/
Dpmu.c32 static struct kvm_vcpu *kvm_pmc_to_vcpu(struct kvm_pmc *pmc) in kvm_pmc_to_vcpu()
47 static bool kvm_pmu_pmc_is_chained(struct kvm_pmc *pmc) in kvm_pmu_pmc_is_chained()
70 static struct kvm_pmc *kvm_pmu_get_canonical_pmc(struct kvm_pmc *pmc) in kvm_pmu_get_canonical_pmc()
105 struct kvm_pmc *pmc) in kvm_pmu_get_pair_counter_value()
143 struct kvm_pmc *pmc = &pmu->pmc[select_idx]; in kvm_pmu_get_counter_value() local
178 static void kvm_pmu_release_perf_event(struct kvm_pmc *pmc) in kvm_pmu_release_perf_event()
194 static void kvm_pmu_stop_counter(struct kvm_vcpu *vcpu, struct kvm_pmc *pmc) in kvm_pmu_stop_counter()
286 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() local
327 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask() local
445 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_pmu_perf_overflow() local
[all …]
/Linux-v5.4/arch/powerpc/perf/
Disa207-common.h153 #define CNST_PMC_SHIFT(pmc) ((pmc - 1) * 2) argument
154 #define CNST_PMC_VAL(pmc) (1 << CNST_PMC_SHIFT(pmc)) argument
155 #define CNST_PMC_MASK(pmc) (2 << CNST_PMC_SHIFT(pmc)) argument
163 #define MMCR1_UNIT_SHIFT(pmc) (60 - (4 * ((pmc) - 1))) argument
164 #define MMCR1_COMBINE_SHIFT(pmc) (35 - ((pmc) - 1)) argument
165 #define MMCR1_PMCSEL_SHIFT(pmc) (24 - (((pmc) - 1)) * 8) argument
171 #define p9_MMCR1_COMBINE_SHIFT(pmc) (38 - ((pmc - 1) * 2)) argument
198 #define MMCR2_FCS(pmc) (1ull << (63 - (((pmc) - 1) * 9))) argument
199 #define MMCR2_FCP(pmc) (1ull << (62 - (((pmc) - 1) * 9))) argument
200 #define MMCR2_FCH(pmc) (1ull << (57 - (((pmc) - 1) * 9))) argument
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
334 static void mpc7450_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in mpc7450_disable_pmc()
Dpower6-pmu.c137 int pmc, psel, ptype; in power6_marked_instr_event() local
179 unsigned int pmc, ev, b, u, s, psel; in p6_compute_mmcr() local
269 int pmc, byte, sh, subunit; in p6_get_constraint() local
302 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in p6_limited_pmc_event() local
361 unsigned int psel, pmc; in p6_get_alternatives() local
460 static void p6_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in p6_disable_pmc()
Dpower7-pmu.c84 int pmc, sh, unit; in power7_get_constraint() local
144 int pmc, psel; in find_alternative_decode() local
213 int pmc, psel; in power7_marked_instr_event() local
249 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local
311 static void power7_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in power7_disable_pmc()
Dpower5+-pmu.c135 int pmc, byte, unit, sh; in power5p_get_constraint() local
189 int pmc = (event >> PM_PMC_SH) & PM_PMC_MSK; in power5p_limited_pmc_event() local
243 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
403 int pmc, psel; in power5p_marked_instr_event() local
455 unsigned int pmc, unit, byte, psel; in power5p_compute_mmcr() local
599 static void power5p_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in power5p_disable_pmc()
Dpower5-pmu.c139 int pmc, byte, unit, sh; in power5_get_constraint() local
251 int pmc, altpmc, pp, j; in find_alternative_bdecode() local
339 int pmc, psel; in power5_marked_instr_event() local
386 unsigned int pmc, unit, byte, psel; in power5_compute_mmcr() local
541 static void power5_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in power5_disable_pmc()
Disa207-common.c117 static unsigned long combine_shift(unsigned long pmc) in combine_shift()
244 unsigned int unit, pmc, cache, ebb; in isa207_get_constraint() local
370 unsigned int pmc, pmc_inuse; in isa207_compute_mmcr() local
487 void isa207_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in isa207_disable_pmc()
Dppc970-pmu.c145 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local
193 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local
259 unsigned int pmc, unit, byte, psel; in p970_compute_mmcr() local
402 static void p970_disable_pmc(unsigned int pmc, unsigned long mmcr[]) in p970_disable_pmc()
/Linux-v5.4/drivers/net/wireless/ath/wil6210/
Dpmc.c32 static int wil_is_pmc_allocated(struct pmc_ctx *pmc) in wil_is_pmc_allocated()
56 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local
241 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_free() local
333 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_read() local
389 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_llseek() local
439 struct pmc_ctx *pmc = &wil->pmc; in wil_pmcring_read() local
/Linux-v5.4/net/ipv4/
Digmp.c177 #define for_each_pmc_rcu(in_dev, pmc) \ argument
182 #define for_each_pmc_rtnl(in_dev, pmc) \ argument
272 static int is_in(struct ip_mc_list *pmc, struct ip_sf_list *psf, int type, in is_in()
317 igmp_scount(struct ip_mc_list *pmc, int type, int gdeleted, int sdeleted) in igmp_scount()
429 static int grec_size(struct ip_mc_list *pmc, int type, int gdel, int sdel) in grec_size()
434 static struct sk_buff *add_grhead(struct sk_buff *skb, struct ip_mc_list *pmc, in add_grhead()
459 static struct sk_buff *add_grec(struct sk_buff *skb, struct ip_mc_list *pmc, in add_grec()
586 static int igmpv3_send_report(struct in_device *in_dev, struct ip_mc_list *pmc) in igmpv3_send_report()
644 static void kfree_pmc(struct ip_mc_list *pmc) in kfree_pmc()
653 struct ip_mc_list *pmc, *pmc_prev, *pmc_next; in igmpv3_send_cr() local
[all …]
/Linux-v5.4/arch/x86/kvm/vmx/
Dpmu_intel.c42 struct kvm_pmc *pmc; in reprogram_fixed_counters() local
94 static bool intel_pmc_is_enabled(struct kvm_pmc *pmc) in intel_pmc_is_enabled()
168 struct kvm_pmc *pmc; in intel_pmu_get_msr() local
204 struct kvm_pmc *pmc; in intel_pmu_set_msr() local
343 struct kvm_pmc *pmc = NULL; in intel_pmu_reset() local
/Linux-v5.4/net/ipv6/
Dmcast.c116 #define for_each_pmc_rcu(np, pmc) \ argument
332 struct ipv6_mc_socklist *pmc; in ip6_mc_source() local
463 struct ipv6_mc_socklist *pmc; in ip6_mc_msfilter() local
554 struct ipv6_mc_socklist *pmc; in ip6_mc_msfget() local
729 struct ifmcaddr6 *pmc; in mld_add_delrec() local
767 struct ifmcaddr6 *pmc, *pmc_prev; in mld_del_delrec() local
806 struct ifmcaddr6 *pmc, *nextpmc; in mld_clear_delrec() local
1106 static bool mld_xmarksources(struct ifmcaddr6 *pmc, int nsrcs, in mld_xmarksources()
1134 static bool mld_marksources(struct ifmcaddr6 *pmc, int nsrcs, in mld_marksources()
1506 static bool is_in(struct ifmcaddr6 *pmc, struct ip6_sf_list *psf, int type, in is_in()
[all …]
/Linux-v5.4/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()
442 void write_pmc(int pmc, u64 value) in write_pmc()
454 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.4/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.4/arch/arm/boot/dts/
Dat91sam9x25.dtsi30 pmc: pmc@fffffc00 { label
Dat91sam9x35.dtsi29 pmc: pmc@fffffc00 { label
Dat91sam9g25.dtsi29 pmc: pmc@fffffc00 { label
Dat91sam9g35.dtsi28 pmc: pmc@fffffc00 { label

12345