/linux-6.3-rc2/drivers/net/wireless/ath/wil6210/ |
A D | pmc.c | 44 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_alloc() local 117 &pmc->pring_pa, in wil_pmc_alloc() 126 pmc->pring_va, &pmc->pring_pa, in wil_pmc_alloc() 228 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_free() local 268 dma_free_coherent(dev, buf_size, pmc->pring_va, pmc->pring_pa); in wil_pmc_free() 279 i < pmc->num_descriptors && pmc->descriptors[i].va; i++) { in wil_pmc_free() 318 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_read() local 333 pmc_size = pmc->descriptor_size * pmc->num_descriptors; in wil_pmc_read() 374 struct pmc_ctx *pmc = &wil->pmc; in wil_pmc_llseek() local 386 pmc_size = pmc->descriptor_size * pmc->num_descriptors; in wil_pmc_llseek() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
A D | misc.h | 110 return ((mmcr1 >> (38 - ((pmc - 1) * 2))) & 0x3); in get_mmcr1_comb() 125 return ((mmcr2 & (1ull << (63 - (((pmc) - 1) * 9)))) >> (63 - (((pmc) - 1) * 9))); in get_mmcr2_fcs() 130 return ((mmcr2 & (1ull << (62 - (((pmc) - 1) * 9)))) >> (62 - (((pmc) - 1) * 9))); in get_mmcr2_fcp() 135 return ((mmcr2 & (1ull << (61 - (((pmc) - 1) * 9)))) >> (61 - (((pmc) - 1) * 9))); in get_mmcr2_fcpc() 140 return ((mmcr2 & (1ull << (60 - (((pmc) - 1) * 9)))) >> (60 - (((pmc) - 1) * 9))); in get_mmcr2_fcm1() 145 return ((mmcr2 & (1ull << (59 - (((pmc) - 1) * 9)))) >> (59 - (((pmc) - 1) * 9))); in get_mmcr2_fcm0() 150 return ((mmcr2 & (1ull << (58 - (((pmc) - 1) * 9)))) >> (58 - (((pmc) - 1) * 9))); in get_mmcr2_fcwait() 155 return ((mmcr2 & (1ull << (57 - (((pmc) - 1) * 9)))) >> (57 - (((pmc) - 1) * 9))); in get_mmcr2_fch() 160 return ((mmcr2 & (1ull << (56 - (((pmc) - 1) * 9)))) >> (56 - (((pmc) - 1) * 9))); in get_mmcr2_fcti() 165 return ((mmcr2 & (1ull << (55 - (((pmc) - 1) * 9)))) >> (55 - (((pmc) - 1) * 9))); in get_mmcr2_fcta() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/ |
A D | pmu.c | 114 if (pmc->perf_event && pmc->perf_event->attr.precise_ip) { in __kvm_perf_overflow() 248 if (!pmc->perf_event || pmc->is_paused) in pmc_pause_counter() 253 pmc->counter = counter & pmc_bitmask(pmc); in pmc_pause_counter() 265 get_sample_period(pmc, pmc->counter))) in pmc_resume_counter() 418 if (pmc->counter < pmc->prev_counter) in reprogram_counter() 540 if (!pmc) in kvm_pmu_rdpmc() 571 if (pmc) in kvm_pmu_mark_pmc_in_use() 631 if (pmc && pmc->perf_event && !pmc_speculative_in_use(pmc)) in kvm_pmu_cleanup() 647 pmc->prev_counter = pmc->counter; in kvm_pmu_incr_counter() 648 pmc->counter = (pmc->counter + 1) & pmc_bitmask(pmc); in kvm_pmu_incr_counter() [all …]
|
A D | pmu.h | 9 #define pmc_to_pmu(pmc) (&(pmc)->vcpu->arch.pmu) argument 55 counter = pmc->counter; in pmc_read_counter() 56 if (pmc->perf_event && !pmc->is_paused) in pmc_read_counter() 65 if (pmc->perf_event) { in pmc_release_perf_event() 67 pmc->perf_event = NULL; in pmc_release_perf_event() 75 if (pmc->perf_event) { in pmc_stop_counter() 76 pmc->counter = pmc_read_counter(pmc); in pmc_stop_counter() 140 if (!pmc->perf_event || pmc->is_paused || in pmc_update_sample_period() 145 get_sample_period(pmc, pmc->counter)); in pmc_update_sample_period() 152 if (pmc_is_fixed(pmc)) in pmc_speculative_in_use() [all …]
|
/linux-6.3-rc2/drivers/soc/tegra/ |
A D | pmc.c | 556 return (pmc->soc && pmc->soc->powergates[id]); in tegra_powergate_is_valid() 568 if (!pmc || !pmc->soc || !name) in tegra_powergate_lookup() 1023 pg->pmc = pmc; in tegra_powergate_sequence_power_up() 1308 pg->pmc = pmc; in tegra_powergate_add() 1965 pmc->soc->init(pmc); in tegra_pmc_init() 2293 &pmc->irq, pmc); in tegra_pmc_irq_alloc() 2323 &pmc->irq, pmc); in tegra_pmc_irq_alloc() 2526 pmc->irq.name = dev_name(pmc->dev); in tegra_pmc_irq_init() 2531 pmc->irq.irq_set_type = pmc->soc->irq_set_type; in tegra_pmc_irq_init() 2900 if (WARN_ON(!pmc->base || !pmc->soc)) in tegra_pmc_probe() [all …]
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | vcpu_pmu.c | 41 if (!pmc->counter_val) in kvm_pmu_get_sample_period() 203 struct kvm_pmc *pmc; in pmu_ctr_read() local 207 pmc = &kvpmu->pmc[cidx]; in pmu_ctr_read() 357 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_start() 380 perf_event_period(pmc->perf_event, kvm_pmu_get_sample_period(pmc)); in kvm_riscv_vcpu_pmu_ctr_start() 414 pmc = &kvpmu->pmc[pmc_index]; in kvm_riscv_vcpu_pmu_ctr_stop() 437 pmc->counter_val += perf_event_read_value(pmc->perf_event, in kvm_riscv_vcpu_pmu_ctr_stop() 512 pmc = &kvpmu->pmc[ctr_idx]; in kvm_riscv_vcpu_pmu_ctr_cfg_match() 585 pmc = &kvpmu->pmc[i]; in kvm_riscv_vcpu_pmu_init() 586 pmc->idx = i; in kvm_riscv_vcpu_pmu_init() [all …]
|
/linux-6.3-rc2/arch/powerpc/perf/ |
A D | ppc970-pmu.c | 152 if (pmc) { in p970_marked_instr_event() 156 bit = (pmc <= 4)? pmc - 1: 8 - pmc; in p970_marked_instr_event() 200 if (pmc) { in p970_get_constraint() 219 if (!pmc) in p970_get_constraint() 284 if (pmc) { in p970_compute_mmcr() 296 if (!pmc) in p970_compute_mmcr() 360 for (pmc = 0; pmc < 8; ++pmc) { in p970_compute_mmcr() 375 --pmc; in p970_compute_mmcr() 387 for (pmc = 0; pmc < 2; ++pmc) in p970_compute_mmcr() 388 mmcr0 |= pmcsel[pmc] << (MMCR0_PMC1SEL_SH - 7 * pmc); in p970_compute_mmcr() [all …]
|
A D | power7-pmu.c | 90 if (pmc) { in power7_get_constraint() 91 if (pmc > 6) in power7_get_constraint() 99 if (pmc < 5) { in power7_get_constraint() 151 if ((pmc == 2 || pmc == 4) && (psel & ~7) == 0x40) in find_alternative_decode() 153 if ((pmc == 1 || pmc == 3) && (psel & ~7) == 0x48) in find_alternative_decode() 221 if (pmc >= 5) in power7_marked_instr_event() 226 return pmc == 2 || pmc == 4; in power7_marked_instr_event() 260 if (pmc) { in power7_compute_mmcr() 276 if (!pmc) { in power7_compute_mmcr() 278 for (pmc = 0; pmc < 4; ++pmc) { in power7_compute_mmcr() [all …]
|
A D | power6-pmu.c | 145 if (pmc >= 5) in power6_marked_instr_event() 151 if (pmc == 0 || !(ptype & (1 << (pmc - 1)))) in power6_marked_instr_event() 190 if (pmc) { in p6_compute_mmcr() 199 if (pmc) { in p6_compute_mmcr() 200 --pmc; in p6_compute_mmcr() 203 for (pmc = 0; pmc < 4; ++pmc) in p6_compute_mmcr() 210 hwc[i] = pmc; in p6_compute_mmcr() 246 if (pmc < 4) in p6_compute_mmcr() 276 if (pmc) { in p6_get_constraint() 307 return pmc == 5 || pmc == 6; in p6_limited_pmc_event() [all …]
|
A D | power5-pmu.c | 147 if (pmc) { in power5_get_constraint() 148 if (pmc > 6) in power5_get_constraint() 186 if (!pmc) in power5_get_constraint() 256 if (pmc == 0 || pmc > 4) in find_alternative_bdecode() 360 else if (psel == 0x1b && (pmc == 1 || pmc == 3)) in power5_marked_instr_event() 408 if (pmc) { in power5_compute_mmcr() 431 if (!pmc) in power5_compute_mmcr() 497 if (!pmc) { in power5_compute_mmcr() 499 for (pmc = 0; pmc < 4; ++pmc) { in power5_compute_mmcr() 514 --pmc; in power5_compute_mmcr() [all …]
|
A D | power5+-pmu.c | 142 if (pmc) { in power5p_get_constraint() 143 if (pmc > 6) in power5p_get_constraint() 179 if (pmc < 5) { in power5p_get_constraint() 193 return pmc == 5 || pmc == 6; in power5p_limited_pmc_event() 248 if (pmc == 0 || pmc > 4) in find_alternative_bdecode() 424 else if (psel == 0x1b && (pmc == 1 || pmc == 3)) in power5p_marked_instr_event() 475 if (pmc) { in power5p_compute_mmcr() 557 if (!pmc) { in power5p_compute_mmcr() 559 for (pmc = 0; pmc < 4; ++pmc) { in power5p_compute_mmcr() 568 --pmc; in power5p_compute_mmcr() [all …]
|
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 …]
|
A D | mpc7450-pmu.c | 39 int pmc; in mpc7450_classify_event() local 42 if (pmc) { in mpc7450_classify_event() 43 if (pmc > N_COUNTER) in mpc7450_classify_event() 79 int pmc, sel; in mpc7450_threshold_use() local 83 switch (pmc) { in mpc7450_threshold_use() 153 int pmc, class; in mpc7450_get_constraint() local 269 u32 ev, pmc, thresh; in mpc7450_compute_mmcr() local 311 if (pmc <= 2) in mpc7450_compute_mmcr() 344 if (pmc <= 1) in mpc7450_disable_pmc() 345 mmcr->mmcr0 &= ~(pmcsel_mask[pmc] << pmcsel_shift[pmc]); in mpc7450_disable_pmc() [all …]
|
/linux-6.3-rc2/drivers/mfd/ |
A D | intel_pmc_bxt.c | 88 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 90 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_read64() 115 spin_lock(&pmc->gcr_lock); in intel_pmc_gcr_update() 122 spin_unlock(&pmc->gcr_lock); in intel_pmc_gcr_update() 143 spin_lock(&pmc->gcr_lock); in intel_pmc_s0ix_counter_read() 388 pmc->telem_base = res; in intel_pmc_get_resources() 409 if (pmc->telem_base) { in intel_pmc_create_devices() 429 pmc = devm_kzalloc(&pdev->dev, sizeof(*pmc), GFP_KERNEL); in intel_pmc_probe() 430 if (!pmc) in intel_pmc_probe() 433 pmc->dev = &pdev->dev; in intel_pmc_probe() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/svm/ |
A D | pmu.c | 114 struct kvm_pmc *pmc; in amd_msr_idx_to_pmc() local 117 pmc = pmc ? pmc : get_gp_pmc_amd(pmu, msr, PMU_TYPE_EVNTSEL); in amd_msr_idx_to_pmc() 119 return pmc; in amd_msr_idx_to_pmc() 125 struct kvm_pmc *pmc; in amd_pmu_get_msr() local 130 if (pmc) { in amd_pmu_get_msr() 136 if (pmc) { in amd_pmu_get_msr() 147 struct kvm_pmc *pmc; in amd_pmu_set_msr() local 153 if (pmc) { in amd_pmu_set_msr() 154 pmc->counter += data - pmc_read_counter(pmc); in amd_pmu_set_msr() 160 if (pmc) { in amd_pmu_set_msr() [all …]
|
/linux-6.3-rc2/net/ipv4/ |
A D | igmp.c | 178 pmc = rcu_dereference(pmc->next_rcu)) 183 pmc = rtnl_dereference(pmc->next_rcu)) 485 psf_list = sdeleted ? &pmc->tomb : &pmc->sources; in add_grec() 661 for (pmc = in_dev->mc_tomb; pmc; pmc = pmc_next) { in igmpv3_send_cr() 680 if (pmc->crcount == 0 && !pmc->tomb && !pmc->sources) { in igmpv3_send_cr() 732 __be32 group = pmc ? pmc->multiaddr : 0; in igmp_send_report() 1184 pmc = kzalloc(sizeof(*pmc), gfp); in igmpv3_add_delrec() 1185 if (!pmc) in igmpv3_add_delrec() 1223 for (pmc = in_dev->mc_tomb; pmc; pmc = pmc->next) { in igmpv3_del_delrec() 1267 for (; pmc; pmc = nextpmc) { in igmpv3_clear_delrec() [all …]
|
/linux-6.3-rc2/drivers/platform/mellanox/ |
A D | mlxbf-pmc.c | 462 if (pmc->svc_sreg_support) in mlxbf_pmc_read() 514 if (pmc->svc_sreg_support) in mlxbf_pmc_write() 551 switch (pmc->event_set) { in mlxbf_pmc_event_list() 1324 pmc->block[blk_num].block_attr_grp.attrs = pmc->block[blk_num].block_attr; in mlxbf_pmc_create_groups() 1327 pmc->groups[blk_num] = &pmc->block[blk_num].block_attr_grp; in mlxbf_pmc_create_groups() 1367 if (pmc->svc_sreg_support) in mlxbf_pmc_map_counters() 1404 if (!pmc) in mlxbf_pmc_probe() 1442 pmc->block_name, in mlxbf_pmc_probe() 1443 pmc->total_blocks); in mlxbf_pmc_probe() 1451 pmc->pdev = pdev; in mlxbf_pmc_probe() [all …]
|
/linux-6.3-rc2/drivers/platform/x86/ |
A D | pmc_atom.c | 218 if (!pmc->init) in pmc_atom_read() 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 338 pmc->dbgfs_dir = dir; in pmc_dbgfs_register() 469 pmc->regmap = ioremap(pmc->base_addr, PMC_MMIO_REG_LEN); in pmc_setup_dev() 470 if (!pmc->regmap) { in pmc_setup_dev() 475 pmc->map = map; in pmc_setup_dev() 478 pmc_hw_reg_setup(pmc); in pmc_setup_dev() 480 pmc_dbgfs_register(pmc); in pmc_setup_dev() [all …]
|
/linux-6.3-rc2/arch/arm64/kvm/ |
A D | pmu-emul.c | 30 return container_of(pmc, struct kvm_vcpu, arch.pmu.pmc[pmc->idx]); in kvm_pmc_to_vcpu() 78 return (!(pmc->idx & 1) && (pmc->idx + 1) < ARMV8_PMU_CYCLE_IDX && in kvm_pmu_counter_can_chain() 104 if (pmc->perf_event) in kvm_pmu_get_pmc_value() 192 if (!pmc->perf_event) in kvm_pmu_stop_counter() 215 pmu->pmc[i].idx = i; in kvm_pmu_vcpu_init() 274 struct kvm_pmc *pmc; in kvm_pmu_enable_counter_mask() local 306 struct kvm_pmc *pmc; in kvm_pmu_disable_counter_mask() local 313 if (pmc->perf_event) in kvm_pmu_disable_counter_mask() 464 if (kvm_pmc_is_64bit(pmc) && kvm_pmc_has_64bit_overflow(pmc)) in compute_period() 482 int idx = pmc->idx; in kvm_pmu_perf_overflow() [all …]
|
/linux-6.3-rc2/net/ipv6/ |
A D | mcast.c | 120 pmc = sock_dereference(pmc->next, sk)) 125 pmc = rcu_dereference(pmc->next)) 742 pmc = kzalloc(sizeof(*pmc), GFP_KERNEL); in mld_add_delrec() 743 if (!pmc) in mld_add_delrec() 782 if (pmc) { in mld_del_delrec() 789 if (pmc) { in mld_del_delrec() 793 mc_dereference(pmc->mca_tomb, pmc->idev), in mld_del_delrec() 820 for (; pmc; pmc = nextpmc) { in mld_clear_delrec() 2064 pmc; in mld_send_cr() 2332 if (!pmc) in ip6_mc_del_src() [all …]
|
/linux-6.3-rc2/arch/x86/kvm/vmx/ |
A D | pmu_intel.c | 45 struct kvm_pmc *pmc; in reprogram_fixed_counters() local 83 if (pmc) in reprogram_counters() 234 pmc = pmc ? pmc : get_gp_pmc(pmu, msr, MSR_P6_EVNTSEL0); in intel_msr_idx_to_pmc() 235 pmc = pmc ? pmc : get_gp_pmc(pmu, msr, MSR_IA32_PERFCTR0); in intel_msr_idx_to_pmc() 237 return pmc; in intel_msr_idx_to_pmc() 469 pmc->counter += data - pmc_read_counter(pmc); in intel_pmu_set_msr() 473 pmc->counter += data - pmc_read_counter(pmc); in intel_pmu_set_msr() 654 pmc->counter = pmc->prev_counter = pmc->eventsel = 0; in intel_pmu_reset() 661 pmc->counter = pmc->prev_counter = 0; in intel_pmu_reset() 788 if (!pmc || !pmc_speculative_in_use(pmc) || in intel_pmu_cross_mapped_check() [all …]
|
/linux-6.3-rc2/arch/arm/mach-at91/ |
A D | pm_suspend.S | 22 pmc .req r0 label 476 ldr pmc, .pmc_base 485 ldr tmp1, [pmc, tmp3] 488 str tmp1, [pmc, tmp3] 568 ldr pmc, .pmc_base 823 ldr pmc, .pmc_base 879 ldr pmc, .pmc_base 932 ldr pmc, .pmc_base 975 ldr pmc, .pmc_base 994 ldr pmc, .pmc_base [all …]
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | sama5d2.dtsi | 134 clocks = <&pmc PMC_TYPE_PERIPHERAL 42>, <&pmc PMC_TYPE_CORE PMC_UTMI>; 143 clocks = <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_PERIPHERAL 41>, <&pmc PMC_TYPE_SYSTEM 6>; 152 clocks = <&pmc PMC_TYPE_CORE PMC_UTMI>, <&pmc PMC_TYPE_PERIPHERAL 41>; 195 clocks = <&pmc PMC_TYPE_PERIPHERAL 31>, <&pmc PMC_TYPE_GCK 31>, <&pmc PMC_TYPE_CORE PMC_MAIN>; 206 clocks = <&pmc PMC_TYPE_PERIPHERAL 32>, <&pmc PMC_TYPE_GCK 32>, <&pmc PMC_TYPE_CORE PMC_MAIN>; 254 clocks = <&pmc PMC_TYPE_PERIPHERAL 46>, <&pmc PMC_TYPE_SYSTEM 18>, <&pmc PMC_TYPE_GCK 46>; 264 clocks = <&pmc PMC_TYPE_SYSTEM 2>, <&pmc PMC_TYPE_PERIPHERAL 13>; 287 pmc: pmc@f0014000 { label 437 clocks = <&pmc PMC_TYPE_PERIPHERAL 48>, <&pmc PMC_TYPE_GCK 48>; 733 clocks = <&pmc PMC_TYPE_PERIPHERAL 54>, <&pmc PMC_TYPE_GCK 54>; [all …]
|
A D | sama7g5.dtsi | 244 pmc: pmc@e0018000 { label 343 clocks = <&pmc PMC_TYPE_PERIPHERAL 78>, <&pmc PMC_TYPE_GCK 78>; 358 clocks = <&pmc PMC_TYPE_PERIPHERAL 79>, <&pmc PMC_TYPE_GCK 79>; 372 clocks = <&pmc PMC_TYPE_PERIPHERAL 61>, <&pmc PMC_TYPE_GCK 61>; 388 clocks = <&pmc PMC_TYPE_PERIPHERAL 62>, <&pmc PMC_TYPE_GCK 62>; 404 clocks = <&pmc PMC_TYPE_PERIPHERAL 63>, <&pmc PMC_TYPE_GCK 63>; 420 clocks = <&pmc PMC_TYPE_PERIPHERAL 64>, <&pmc PMC_TYPE_GCK 64>; 436 clocks = <&pmc PMC_TYPE_PERIPHERAL 65>, <&pmc PMC_TYPE_GCK 65>; 452 clocks = <&pmc PMC_TYPE_PERIPHERAL 66>, <&pmc PMC_TYPE_GCK 66>; 484 clocks = <&pmc PMC_TYPE_PERIPHERAL 80>, <&pmc PMC_TYPE_GCK 80>; [all …]
|
/linux-6.3-rc2/drivers/usb/typec/mux/ |
A D | intel_pmc_mux.c | 123 struct pmc_usb *pmc; member 539 port->pmc = pmc; in pmc_usb_register_port() 623 pmc->iom_base = devm_ioremap_resource(pmc->dev, rentry->res); in pmc_usb_probe_iom() 627 if (!pmc->iom_base) { in pmc_usb_probe_iom() 645 struct pmc_usb *pmc; in pmc_usb_probe() local 649 pmc = devm_kzalloc(&pdev->dev, sizeof(*pmc), GFP_KERNEL); in pmc_usb_probe() 650 if (!pmc) in pmc_usb_probe() 654 pmc->num_ports++; in pmc_usb_probe() 662 pmc->port = devm_kcalloc(&pdev->dev, pmc->num_ports, in pmc_usb_probe() 664 if (!pmc->port) in pmc_usb_probe() [all …]
|