/linux/arch/x86/kvm/ |
A D | pmu.c | 62 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() 143 static void pmc_pause_counter(struct kvm_pmc *pmc) in pmc_pause_counter() 156 static bool pmc_resume_counter(struct kvm_pmc *pmc) in pmc_resume_counter() 174 void reprogram_gp_counter(struct kvm_pmc *pmc, u64 eventsel) in reprogram_gp_counter() 242 void reprogram_fixed_counter(struct kvm_pmc *pmc, u8 ctrl, int idx) in reprogram_fixed_counter() 302 struct kvm_pmc *pmc = kvm_x86_ops.pmu_ops->pmc_idx_to_pmc(pmu, bit); in kvm_pmu_handle_event() local 365 struct kvm_pmc *pmc; in kvm_pmu_rdpmc() local 451 static inline bool pmc_speculative_in_use(struct kvm_pmc *pmc) in pmc_speculative_in_use() [all …]
|
A D | pmu.h | 9 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument 46 static inline u64 pmc_bitmask(struct kvm_pmc *pmc) in pmc_bitmask() 53 static inline u64 pmc_read_counter(struct kvm_pmc *pmc) in pmc_read_counter() 65 static inline void pmc_release_perf_event(struct kvm_pmc *pmc) in pmc_release_perf_event() 75 static inline void pmc_stop_counter(struct kvm_pmc *pmc) in pmc_stop_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() 93 static inline bool pmc_is_enabled(struct kvm_pmc *pmc) in pmc_is_enabled() 136 static inline u64 get_sample_period(struct kvm_pmc *pmc, u64 counter_value) in get_sample_period()
|
/linux/drivers/platform/x86/ |
A D | pmc_atom.c | 203 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/drivers/soc/tegra/ |
A D | pmc.c | 258 struct tegra_pmc *pmc; member 438 static struct tegra_pmc *pmc = &(struct tegra_pmc) { variable 1884 static void tegra_pmc_init(struct tegra_pmc *pmc) in tegra_pmc_init() 2192 struct tegra_pmc *pmc = domain->host_data; in tegra_pmc_irq_alloc() local 2418 static int tegra_pmc_irq_init(struct tegra_pmc *pmc) in tegra_pmc_irq_init() 2555 tegra_pmc_clk_out_register(struct tegra_pmc *pmc, in tegra_pmc_clk_out_register() 2747 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_readl() local 2755 struct tegra_pmc *pmc = context; in tegra_pmc_regmap_writel() local 2944 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_suspend() local 2953 struct tegra_pmc *pmc = dev_get_drvdata(dev); in tegra_pmc_resume() local [all …]
|
/linux/drivers/mfd/ |
A D | intel_pmc_bxt.c | 83 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/arch/arm64/kvm/ |
A D | pmu-emul.c | 49 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() 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() 312 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() local 347 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask() local 474 struct kvm_pmc *pmc = perf_event->overflow_handler_context; in kvm_pmu_perf_overflow() local 601 struct kvm_pmc *pmc; in kvm_pmu_create_perf_event() local [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
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/arch/powerpc/perf/ |
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 252 #define MMCR2_FCH(pmc) (1ull << (57 - (((pmc) - 1) * 9))) argument [all …]
|
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()
|
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 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()
|
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()
|
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()
|
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()
|
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()
|
A D | isa207-common.c | 172 static unsigned long combine_shift(unsigned long pmc) in combine_shift() 373 unsigned int unit, pmc, cache, ebb; in isa207_get_constraint() local 532 unsigned int pmc, pmc_inuse; in isa207_compute_mmcr() local 698 void isa207_disable_pmc(unsigned int pmc, struct mmcr_regs *mmcr) in isa207_disable_pmc()
|
/linux/net/ipv4/ |
A D | igmp.c | 1172 struct ip_mc_list *pmc; in igmpv3_add_delrec() local 1700 struct ip_mc_list *pmc; in ip_mc_unmap() local 1710 struct ip_mc_list *pmc; in ip_mc_remap() local 1726 struct ip_mc_list *pmc; in ip_mc_down() local 1777 struct ip_mc_list *pmc; in ip_mc_up() local 1904 struct ip_mc_list *pmc; in ip_mc_del_src() local 2076 struct ip_mc_list *pmc; in ip_mc_add_src() local 2302 struct ip_mc_socklist *pmc; in ip_mc_source() local 2439 struct ip_mc_socklist *pmc; in ip_mc_msfilter() local 2529 struct ip_mc_socklist *pmc; in ip_mc_msfget() local [all …]
|
/linux/include/linux/mfd/ |
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/arch/x86/kvm/svm/ |
A D | pmu.c | 163 static bool amd_pmc_is_enabled(struct kvm_pmc *pmc) in amd_pmc_is_enabled() 217 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() local 228 struct kvm_pmc *pmc; in amd_pmu_get_msr() local 250 struct kvm_pmc *pmc; in amd_pmu_set_msr() local 314 struct kvm_pmc *pmc = &pmu->gp_counters[i]; in amd_pmu_reset() local
|
/linux/net/ipv6/ |
A D | mcast.c | 122 #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 2230 struct ifmcaddr6 *pmc; in mld_send_initial_cr() local 2327 struct ifmcaddr6 *pmc; in ip6_mc_del_src() local 2497 struct ifmcaddr6 *pmc; in ip6_mc_add_src() local [all …]
|
/linux/arch/x86/kvm/vmx/ |
A D | pmu_intel.c | 45 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() 236 struct kvm_pmc *pmc; in intel_msr_idx_to_pmc() local 353 struct kvm_pmc *pmc; in intel_pmu_get_msr() local 394 struct kvm_pmc *pmc; in intel_pmu_set_msr() local 572 struct kvm_pmc *pmc = NULL; in intel_pmu_reset() local
|
/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
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()
|
A D | ebb.h | 14 #define PMC_INDEX(pmc) ((pmc)-1) argument 41 static inline void ebb_enable_pmc_counting(int pmc) in ebb_enable_pmc_counting()
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
A D | gp100.c | 109 enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gp100_mc_new_() 125 gp100_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in gp100_mc_new()
|
A D | tu102.c | 117 enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in tu102_mc_new_() 133 tu102_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) in tu102_mc_new()
|
/linux/drivers/usb/typec/mux/ |
A D | intel_pmc_mux.c | 123 struct pmc_usb *pmc; member 484 static int pmc_usb_register_port(struct pmc_usb *pmc, int index, in pmc_usb_register_port() 572 static int pmc_usb_probe_iom(struct pmc_usb *pmc) in pmc_usb_probe_iom() 620 struct pmc_usb *pmc; in pmc_usb_probe() local 686 struct pmc_usb *pmc = platform_get_drvdata(pdev); in pmc_usb_remove() local
|