/linux-6.12.1/drivers/perf/ |
D | arm_v7_pmu.c | 876 armv7_pmnc_write_evtsel(idx, hwc->config_base); in armv7pmu_enable_event() 995 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx() 1030 unsigned long config_base = 0; in armv7pmu_set_event_filter() local 1037 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter() 1039 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter() 1041 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter() 1047 event->config_base = config_base; in armv7pmu_set_event_filter() 1376 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument 1381 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup() 1382 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup() [all …]
|
D | apple_m1_cpu_pmu.c | 393 evt = event->hw.config_base & M1_PMU_CFG_EVENT; in m1_pmu_enable_event() 394 user = event->hw.config_base & M1_PMU_CFG_COUNT_USER; in m1_pmu_enable_event() 395 kernel = event->hw.config_base & M1_PMU_CFG_COUNT_KERNEL; in m1_pmu_enable_event() 470 unsigned long evtype = event->hw.config_base & M1_PMU_CFG_EVENT; in m1_pmu_get_event_idx() 557 unsigned long config_base = 0; in m1_pmu_set_event_filter() local 564 config_base |= M1_PMU_CFG_COUNT_KERNEL; in m1_pmu_set_event_filter() 566 config_base |= M1_PMU_CFG_COUNT_USER; in m1_pmu_set_event_filter() 568 event->config_base = config_base; in m1_pmu_set_event_filter()
|
D | arm_xscale_pmu.c | 217 evt = (hwc->config_base << XSCALE1_COUNT0_EVT_SHFT) | in xscale1pmu_enable_event() 222 evt = (hwc->config_base << XSCALE1_COUNT1_EVT_SHFT) | in xscale1pmu_enable_event() 271 if (XSCALE_PERFCTR_CCNT == hwc->config_base) { in xscale1pmu_get_event_idx() 553 evtsel |= hwc->config_base << XSCALE2_COUNT0_EVT_SHFT; in xscale2pmu_enable_event() 558 evtsel |= hwc->config_base << XSCALE2_COUNT1_EVT_SHFT; in xscale2pmu_enable_event() 563 evtsel |= hwc->config_base << XSCALE2_COUNT2_EVT_SHFT; in xscale2pmu_enable_event() 568 evtsel |= hwc->config_base << XSCALE2_COUNT3_EVT_SHFT; in xscale2pmu_enable_event()
|
D | arm_pmuv3.c | 643 armv8pmu_write_evtype(idx - 1, hwc->config_base); in armv8pmu_write_event_type() 647 write_pmccfiltr(hwc->config_base); in armv8pmu_write_event_type() 649 write_pmicfiltr(hwc->config_base); in armv8pmu_write_event_type() 651 armv8pmu_write_evtype(idx, hwc->config_base); in armv8pmu_write_event_type() 934 unsigned long evtype = hwc->config_base & ARMV8_PMU_EVTYPE_EVENT; in armv8pmu_get_event_idx() 993 unsigned long config_base = 0; in armv8pmu_set_event_filter() local 1012 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter() 1014 config_base |= ARMV8_PMU_EXCLUDE_EL1; in armv8pmu_set_event_filter() 1016 config_base |= ARMV8_PMU_EXCLUDE_EL0; in armv8pmu_set_event_filter() 1019 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter() [all …]
|
D | thunderx2_pmu.c | 332 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_l3c() 347 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_dmc() 362 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_ccpi2() 378 reg_writel(val, hwc->config_base); in uncore_start_event_l3c() 385 reg_writel(0, event->hw.config_base); in uncore_stop_event_l3c() 405 val = reg_readl(hwc->config_base); in uncore_start_event_dmc() 408 reg_writel(val, hwc->config_base); in uncore_start_event_dmc() 425 val = reg_readl(hwc->config_base); in uncore_stop_event_dmc() 427 reg_writel(val, hwc->config_base); in uncore_stop_event_dmc() 445 GET_EVENTID(event, emask)), hwc->config_base); in uncore_start_event_ccpi2()
|
D | qcom_l2_pmu.c | 347 if (hwc->config_base == L2CYCLE_CTR_RAW_CODE) { in l2_cache_get_event_idx() 364 group = L2_EVT_GROUP(hwc->config_base); in l2_cache_get_event_idx() 381 if (hwc->config_base != L2CYCLE_CTR_RAW_CODE) in l2_cache_clear_event_idx() 382 clear_bit(L2_EVT_GROUP(hwc->config_base), cluster->used_groups); in l2_cache_clear_event_idx() 530 hwc->config_base = event->attr.config; in l2_cache_event_init() 555 if (hwc->config_base == L2CYCLE_CTR_RAW_CODE) { in l2_cache_event_start() 558 config = hwc->config_base; in l2_cache_event_start()
|
D | arm_v6_pmu.c | 216 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT0_SHIFT) | in armv6pmu_enable_event() 220 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT1_SHIFT) | in armv6pmu_enable_event() 319 if (ARMV6_PERFCTR_CPU_CYCLES == hwc->config_base) { in armv6pmu_get_event_idx()
|
D | arm-ccn.c | 673 hw->config_base = bit; in arm_ccn_pmu_event_alloc() 694 clear_bit(hw->config_base, source->xp.dt_cmp_mask); in arm_ccn_pmu_event_release() 696 clear_bit(hw->config_base, source->pmu_events_mask); in arm_ccn_pmu_event_release() 940 unsigned long wp = hw->config_base; in arm_ccn_pmu_xp_watchpoint_config() 990 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__XP_PMU_EVENT(hw->config_base); in arm_ccn_pmu_xp_event_config() 998 CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_xp_event_config() 999 val |= id << CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_xp_event_config() 1014 hw->config_base); in arm_ccn_pmu_node_event_config() 1034 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_node_event_config() 1036 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_node_event_config()
|
/linux-6.12.1/arch/arm/mach-bcm/ |
D | bcm63xx_smp.c | 37 unsigned long config_base; in scu_a9_enable() local 47 config_base = scu_a9_get_base(); in scu_a9_enable() 48 if (!config_base) { in scu_a9_enable() 53 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable() 56 config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
|
D | platsmp.c | 49 unsigned long config_base; in scu_a9_enable() local 58 config_base = scu_a9_get_base(); in scu_a9_enable() 59 if (!config_base) { in scu_a9_enable() 64 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable() 67 config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
|
/linux-6.12.1/drivers/pci/controller/dwc/ |
D | pcie-tegra194-acpi.c | 17 void __iomem *config_base; member 31 pcie_ecam->config_base = cfg->win; in tegra194_acpi_init() 99 return pcie_ecam->config_base + where; in tegra194_map_bus()
|
/linux-6.12.1/arch/x86/events/intel/ |
D | uncore_discovery.c | 462 wrmsrl(hwc->config_base, hwc->config); in intel_generic_uncore_msr_enable_event() 470 wrmsrl(hwc->config_base, 0); in intel_generic_uncore_msr_disable_event() 492 hwc->config_base = uncore_pci_event_ctl(box, hwc->idx); in intel_generic_uncore_assign_hw_event() 503 hwc->config_base = box_ctl + uncore_pci_event_ctl(box, hwc->idx); in intel_generic_uncore_assign_hw_event() 508 hwc->config_base = box_ctl + box->pmu->type->event_ctl + hwc->idx; in intel_generic_uncore_assign_hw_event() 550 pci_write_config_dword(pdev, hwc->config_base, hwc->config); in intel_generic_uncore_pci_enable_event() 559 pci_write_config_dword(pdev, hwc->config_base, 0); in intel_generic_uncore_pci_disable_event() 640 writel(hwc->config, box->io_addr + hwc->config_base); in intel_generic_uncore_mmio_enable_event() 651 writel(0, box->io_addr + hwc->config_base); in intel_generic_uncore_mmio_disable_event()
|
D | p6.c | 164 (void)wrmsrl_safe(hwc->config_base, val); in p6_pmu_disable_event() 181 (void)wrmsrl_safe(hwc->config_base, val); in p6_pmu_enable_event()
|
D | uncore_nhmex.c | 243 wrmsrl(event->hw.config_base, 0); in nhmex_uncore_msr_disable_event() 251 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event() 253 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_uncore_msr_enable_event() 255 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event() 388 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_bbox_msr_enable_event() 475 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_sbox_msr_enable_event() 863 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_mbox_msr_enable_event() 1148 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_rbox_msr_enable_event()
|
D | knc.c | 185 (void)wrmsrl_safe(hwc->config_base + hwc->idx, val); in knc_pmu_disable_event() 196 (void)wrmsrl_safe(hwc->config_base + hwc->idx, val); in knc_pmu_enable_event()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pmu.c | 219 hwc->config_base = AMDGPU_PMU_PERF_TYPE_NONE; in amdgpu_perf_event_init() 243 switch (hwc->config_base) { in amdgpu_perf_start() 281 switch (hwc->config_base) { in amdgpu_perf_read() 311 switch (hwc->config_base) { in amdgpu_perf_stop() 346 hwc->config_base = AMDGPU_PMU_EVENT_CONFIG_TYPE_DF; in amdgpu_perf_add() 349 hwc->config_base = (hwc->config >> in amdgpu_perf_add() 357 switch (hwc->config_base) { in amdgpu_perf_add() 395 switch (hwc->config_base) { in amdgpu_perf_del()
|
/linux-6.12.1/arch/x86/events/zhaoxin/ |
D | core.c | 296 rdmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_disable_fixed() 298 wrmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_disable_fixed() 305 if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL)) { in zhaoxin_pmu_disable_event() 332 rdmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_enable_fixed() 335 wrmsrl(hwc->config_base, ctrl_val); in zhaoxin_pmu_enable_fixed() 342 if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL)) { in zhaoxin_pmu_enable_event()
|
/linux-6.12.1/arch/loongarch/kernel/ |
D | perf_event.c | 275 (evt->config_base & M_PERFCTL_CONFIG_MASK) | CSR_PERFCTRL_IE; in loongarch_pmu_enable_event() 770 hwc->config_base = CSR_PERFCTRL_IE; in __hw_perf_event_init() 777 hwc->config_base |= CSR_PERFCTRL_PLV3; in __hw_perf_event_init() 778 hwc->config_base |= CSR_PERFCTRL_PLV2; in __hw_perf_event_init() 781 hwc->config_base |= CSR_PERFCTRL_PLV0; in __hw_perf_event_init() 784 hwc->config_base |= CSR_PERFCTRL_PLV1; in __hw_perf_event_init() 787 hwc->config_base &= M_PERFCTL_CONFIG_MASK; in __hw_perf_event_init()
|
/linux-6.12.1/arch/s390/kernel/ |
D | perf_cpum_cf.c | 815 hwc->config_base = cpumf_ctr_ctl[set]; in __hw_perf_event_init() 833 if (!(hwc->config_base & cpumf_ctr_info.auth_ctl)) in __hw_perf_event_init() 937 ctr_set_enable(&cpuhw->state, hwc->config_base); in cpumf_pmu_start() 938 ctr_set_start(&cpuhw->state, hwc->config_base); in cpumf_pmu_start() 948 hwc->config_base, true); in cpumf_pmu_start() 955 if ((hwc->config_base & cpumf_ctr_ctl[i])) in cpumf_pmu_start() 1007 if (!(hwc->config_base & cpumf_ctr_ctl[i])) in cpumf_pmu_stop() 1020 event->hw.config_base, in cpumf_pmu_stop() 1022 if (cfdiag_diffctr(cpuhw, event->hw.config_base)) in cpumf_pmu_stop() 1035 ctr_set_enable(&cpuhw->state, event->hw.config_base); in cpumf_pmu_add() [all …]
|
/linux-6.12.1/arch/x86/events/amd/ |
D | ibs.c | 328 hwc->config_base = perf_ibs->msr; in perf_ibs_init() 386 rdmsrl(event->hw.config_base, *config); in perf_ibs_event_update() 397 wrmsrl(hwc->config_base, tmp & ~perf_ibs->enable_mask); in perf_ibs_enable_event() 399 wrmsrl(hwc->config_base, tmp | perf_ibs->enable_mask); in perf_ibs_enable_event() 414 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event() 416 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event() 472 rdmsrl(hwc->config_base, config); in perf_ibs_stop() 1053 msr = hwc->config_base; in perf_ibs_handle_irq()
|
/linux-6.12.1/arch/powerpc/perf/ |
D | core-fsl-emb.c | 327 write_pmlca(i, event->hw.config_base); in fsl_emb_pmu_add() 536 event->hw.config_base = PMLCA_CE | PMLCA_FCM1 | in fsl_emb_pmu_event_init() 540 event->hw.config_base |= PMLCA_FCU; in fsl_emb_pmu_event_init() 542 event->hw.config_base |= PMLCA_FCS; in fsl_emb_pmu_event_init()
|
/linux-6.12.1/drivers/pci/controller/ |
D | pci-v3-semi.c | 239 void __iomem *config_base; member 378 return v3->config_base + address + offset; in v3_map_bus() 757 v3->config_base = devm_ioremap_resource(dev, regs); in v3_pci_probe() 758 if (IS_ERR(v3->config_base)) in v3_pci_probe() 759 return PTR_ERR(v3->config_base); in v3_pci_probe()
|
/linux-6.12.1/arch/alpha/kernel/ |
D | perf_event.c | 200 event[0]->hw.config_base = config; in ev67_check_constraints() 203 event[1]->hw.config_base = config; in ev67_check_constraints() 424 cpuc->config = cpuc->event[0]->hw.config_base; in maybe_change_configuration() 663 hwc->config_base = 0; in __hw_perf_event_init()
|
/linux-6.12.1/drivers/pci/controller/plda/ |
D | pcie-plda-host.c | 24 return pcie->config_base + PCIE_ECAM_OFFSET(bus->number, devfn, where); in plda_pcie_map_bus() 587 port->config_base = devm_ioremap_resource(dev, cfg_res); in plda_pcie_host_init() 588 if (IS_ERR(port->config_base)) in plda_pcie_host_init() 589 return dev_err_probe(dev, PTR_ERR(port->config_base), in plda_pcie_host_init()
|
/linux-6.12.1/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 358 (evt->config_base & M_PERFCTL_CONFIG_MASK) | in mipsxx_pmu_enable_event() 363 (evt->config_base & M_PERFCTL_CONFIG_MASK) | in mipsxx_pmu_enable_event() 1504 hwc->config_base = MIPS_PERFCTRL_IE; in __hw_perf_event_init() 1511 hwc->config_base |= MIPS_PERFCTRL_U; in __hw_perf_event_init() 1513 hwc->config_base |= MIPS_PERFCTRL_K; in __hw_perf_event_init() 1515 hwc->config_base |= MIPS_PERFCTRL_EXL; in __hw_perf_event_init() 1518 hwc->config_base |= MIPS_PERFCTRL_S; in __hw_perf_event_init() 1520 hwc->config_base &= M_PERFCTL_CONFIG_MASK; in __hw_perf_event_init()
|