Home
last modified time | relevance | path

Searched refs:config_base (Results 1 – 25 of 51) sorted by relevance

123

/Linux-v5.4/arch/arm/kernel/
Dperf_event_v7.c902 armv7_pmnc_write_evtsel(idx, hwc->config_base); in armv7pmu_enable_event()
1038 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
1073 unsigned long config_base = 0; in armv7pmu_set_event_filter() local
1078 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter()
1080 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter()
1082 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter()
1088 event->config_base = config_base; in armv7pmu_set_event_filter()
1415 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument
1420 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup()
1421 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup()
[all …]
Dperf_event_xscale.c219 evt = (hwc->config_base << XSCALE1_COUNT0_EVT_SHFT) | in xscale1pmu_enable_event()
224 evt = (hwc->config_base << XSCALE1_COUNT1_EVT_SHFT) | in xscale1pmu_enable_event()
279 if (XSCALE_PERFCTR_CCNT == hwc->config_base) { in xscale1pmu_get_event_idx()
568 evtsel |= hwc->config_base << XSCALE2_COUNT0_EVT_SHFT; in xscale2pmu_enable_event()
573 evtsel |= hwc->config_base << XSCALE2_COUNT1_EVT_SHFT; in xscale2pmu_enable_event()
578 evtsel |= hwc->config_base << XSCALE2_COUNT2_EVT_SHFT; in xscale2pmu_enable_event()
583 evtsel |= hwc->config_base << XSCALE2_COUNT3_EVT_SHFT; in xscale2pmu_enable_event()
Dperf_event_v6.c282 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT0_SHIFT) | in armv6pmu_enable_event()
286 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT1_SHIFT) | in armv6pmu_enable_event()
393 if (ARMV6_PERFCTR_CPU_CYCLES == hwc->config_base) { in armv6pmu_get_event_idx()
/Linux-v5.4/arch/arm/mach-bcm/
Dbcm63xx_smp.c37 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()
Dplatsmp.c47 unsigned long config_base; in scu_a9_enable() local
56 config_base = scu_a9_get_base(); in scu_a9_enable()
57 if (!config_base) { in scu_a9_enable()
62 scu_base = ioremap((phys_addr_t)config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
65 config_base, CORTEX_A9_SCU_SIZE); in scu_a9_enable()
/Linux-v5.4/arch/s390/kernel/
Dperf_cpum_cf.c46 switch (hwc->config_base) { in validate_ctr_version()
108 ctrs_state = cpumf_ctr_ctl[hwc->config_base]; in validate_ctr_auth()
267 hwc->config_base = set; in __hw_perf_event_init()
380 ctr_set_enable(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
381 ctr_set_start(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
391 atomic_inc(&cpuhw->ctr_set[hwc->config_base]); in cpumf_pmu_start()
404 if (!atomic_dec_return(&cpuhw->ctr_set[hwc->config_base])) in cpumf_pmu_stop()
405 ctr_set_stop(&cpuhw->state, hwc->config_base); in cpumf_pmu_stop()
428 ctr_set_enable(&cpuhw->state, event->hw.config_base); in cpumf_pmu_add()
453 if (!atomic_read(&cpuhw->ctr_set[event->hw.config_base])) in cpumf_pmu_del()
[all …]
Dperf_cpum_cf_diag.c208 event->hw.config_base = 0; in __hw_perf_event_init()
221 event->hw.config_base |= cpumf_ctr_ctl[i]; in __hw_perf_event_init()
225 if (!event->hw.config_base) { in __hw_perf_event_init()
236 __func__, err, event->hw.config_base); in __hw_perf_event_init()
536 ctr_set_multiple_enable(&cpuhw->state, hwc->config_base); in cf_diag_start()
539 event->hw.config_base); in cf_diag_start()
540 ctr_set_multiple_start(&cpuhw->state, hwc->config_base); in cf_diag_start()
555 ctr_set_multiple_stop(&cpuhw->state, hwc->config_base); in cf_diag_stop()
558 event->hw.config_base); in cf_diag_stop()
559 if (cf_diag_diffctr(csd, event->hw.config_base)) in cf_diag_stop()
[all …]
/Linux-v5.4/arch/arm64/kernel/
Dperf_event.c505 armv8pmu_write_evtype(idx - 1, hwc->config_base); in armv8pmu_write_event_type()
508 armv8pmu_write_evtype(idx, hwc->config_base); in armv8pmu_write_event_type()
794 unsigned long evtype = hwc->config_base & ARMV8_PMU_EVTYPE_EVENT; in armv8pmu_get_event_idx()
827 unsigned long config_base = 0; in armv8pmu_set_event_filter() local
840 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter()
842 config_base |= ARMV8_PMU_EXCLUDE_EL1; in armv8pmu_set_event_filter()
844 config_base |= ARMV8_PMU_EXCLUDE_EL0; in armv8pmu_set_event_filter()
847 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter()
854 config_base |= ARMV8_PMU_EXCLUDE_EL1; in armv8pmu_set_event_filter()
857 config_base |= ARMV8_PMU_EXCLUDE_EL0; in armv8pmu_set_event_filter()
[all …]
/Linux-v5.4/drivers/perf/
Dthunderx2_pmu.c250 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_l3c()
261 hwc->config_base = (unsigned long)tx2_pmu->base in init_cntr_base_dmc()
275 reg_writel(val, hwc->config_base); in uncore_start_event_l3c()
282 reg_writel(0, event->hw.config_base); in uncore_stop_event_l3c()
295 val = reg_readl(hwc->config_base); in uncore_start_event_dmc()
298 reg_writel(val, hwc->config_base); in uncore_start_event_dmc()
310 val = reg_readl(hwc->config_base); in uncore_stop_event_dmc()
312 reg_writel(val, hwc->config_base); in uncore_stop_event_dmc()
Dqcom_l2_pmu.c389 if (hwc->config_base == L2CYCLE_CTR_RAW_CODE) { in l2_cache_get_event_idx()
406 group = L2_EVT_GROUP(hwc->config_base); in l2_cache_get_event_idx()
423 if (hwc->config_base != L2CYCLE_CTR_RAW_CODE) in l2_cache_clear_event_idx()
424 clear_bit(L2_EVT_GROUP(hwc->config_base), cluster->used_groups); in l2_cache_clear_event_idx()
572 hwc->config_base = event->attr.config; in l2_cache_event_init()
597 if (hwc->config_base == L2CYCLE_CTR_RAW_CODE) { in l2_cache_event_start()
600 config = hwc->config_base; in l2_cache_event_start()
Darm-ccn.c687 hw->config_base = bit; in arm_ccn_pmu_event_alloc()
708 clear_bit(hw->config_base, source->xp.dt_cmp_mask); in arm_ccn_pmu_event_release()
710 clear_bit(hw->config_base, source->pmu_events_mask); in arm_ccn_pmu_event_release()
954 unsigned long wp = hw->config_base; in arm_ccn_pmu_xp_watchpoint_config()
1004 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__XP_PMU_EVENT(hw->config_base); in arm_ccn_pmu_xp_event_config()
1012 CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_xp_event_config()
1013 val |= id << CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_xp_event_config()
1028 hw->config_base); in arm_ccn_pmu_node_event_config()
1048 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_node_event_config()
1050 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_node_event_config()
/Linux-v5.4/arch/x86/events/amd/
Dibs.c310 hwc->config_base = perf_ibs->msr; in perf_ibs_init()
358 rdmsrl(event->hw.config_base, *config); in perf_ibs_event_update()
366 wrmsrl(hwc->config_base, hwc->config | config | perf_ibs->enable_mask); in perf_ibs_enable_event()
381 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
383 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
433 rdmsrl(hwc->config_base, config); in perf_ibs_stop()
600 msr = hwc->config_base; in perf_ibs_handle_irq()
Duncore.c109 wrmsrl(hwc->config_base, (hwc->config | ARCH_PERFMON_EVENTSEL_ENABLE)); in amd_uncore_start()
117 wrmsrl(hwc->config_base, hwc->config); in amd_uncore_stop()
156 hwc->config_base = uncore->msr_base + (2 * hwc->idx); in amd_uncore_add()
/Linux-v5.4/arch/nds32/kernel/
Dperf_event_cpu.c310 unsigned long config_base = 0; in nds32_pmu_set_event_filter() local
324 config_base |= no_user_tracing; in nds32_pmu_set_event_filter()
327 config_base |= no_kernel_tracing; in nds32_pmu_set_event_filter()
333 event->config_base |= config_base; in nds32_pmu_set_event_filter()
445 hwc->config_base = 0; in nds32_pmu_enable_event()
448 evnum = hwc->config_base; in nds32_pmu_enable_event()
567 unsigned long evtype = hwc->config_base & SOFTWARE_EVENT_MASK; in nds32_pmu_get_event_idx()
817 hwc->config_base = 0; in __hw_perf_event_init()
835 hwc->config_base |= (unsigned long)mapping; in __hw_perf_event_init()
/Linux-v5.4/arch/x86/events/intel/
Dp6.c164 (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()
Duncore_nhmex.c242 wrmsrl(event->hw.config_base, 0); in nhmex_uncore_msr_disable_event()
250 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
252 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_uncore_msr_enable_event()
254 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
387 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_bbox_msr_enable_event()
474 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_sbox_msr_enable_event()
862 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_mbox_msr_enable_event()
1147 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_rbox_msr_enable_event()
Dknc.c185 (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()
Duncore_snb.c125 wrmsrl(hwc->config_base, hwc->config | SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
127 wrmsrl(hwc->config_base, SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
132 wrmsrl(event->hw.config_base, 0); in snb_uncore_msr_disable_event()
932 wrmsrl(hwc->config_base, hwc->config | SNB_UNC_CTL_EN); in nhm_uncore_msr_enable_event()
934 wrmsrl(hwc->config_base, NHM_UNC_FIXED_CTR_CTL_EN); in nhm_uncore_msr_enable_event()
/Linux-v5.4/arch/powerpc/perf/
Dcore-fsl-emb.c340 write_pmlca(i, event->hw.config_base); in fsl_emb_pmu_add()
549 event->hw.config_base = PMLCA_CE | PMLCA_FCM1 | in fsl_emb_pmu_event_init()
553 event->hw.config_base |= PMLCA_FCU; in fsl_emb_pmu_event_init()
555 event->hw.config_base |= PMLCA_FCS; in fsl_emb_pmu_event_init()
/Linux-v5.4/arch/alpha/kernel/
Dperf_event.c200 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-v5.4/drivers/pci/controller/
Dpci-v3-semi.c241 void __iomem *config_base; member
383 return v3->config_base + address + offset; in v3_map_bus()
792 v3->config_base = devm_ioremap_resource(dev, regs); in v3_pci_probe()
793 if (IS_ERR(v3->config_base)) in v3_pci_probe()
794 return PTR_ERR(v3->config_base); in v3_pci_probe()
/Linux-v5.4/arch/s390/include/asm/
Dperf_event.h71 #define SAMPL_FLAGS(hwc) ((hwc)->config_base)
/Linux-v5.4/arch/mips/kernel/
Dperf_event_mipsxx.c324 (evt->config_base & M_PERFCTL_CONFIG_MASK) | in mipsxx_pmu_enable_event()
1312 hwc->config_base = MIPS_PERFCTRL_IE; in __hw_perf_event_init()
1319 hwc->config_base |= MIPS_PERFCTRL_U; in __hw_perf_event_init()
1321 hwc->config_base |= MIPS_PERFCTRL_K; in __hw_perf_event_init()
1323 hwc->config_base |= MIPS_PERFCTRL_EXL; in __hw_perf_event_init()
1326 hwc->config_base |= MIPS_PERFCTRL_S; in __hw_perf_event_init()
1328 hwc->config_base &= M_PERFCTL_CONFIG_MASK; in __hw_perf_event_init()
/Linux-v5.4/drivers/perf/hisilicon/
Dhisi_uncore_pmu.c22 #define HISI_GET_EVENTID(ev) (ev->hw.config_base & 0xff)
168 hwc->config_base = event->attr.config; in hisi_uncore_pmu_event_init()
/Linux-v5.4/drivers/media/dvb-core/
Ddvb_ca_en50221.c94 u32 config_base; member
517 sl->config_base = 0; in dvb_ca_en50221_parse_attributes()
519 sl->config_base |= (tuple[2 + i] << (8 * i)); in dvb_ca_en50221_parse_attributes()
583 manfid, devid, sl->config_base, sl->config_option); in dvb_ca_en50221_parse_attributes()
603 ca->pub->write_attribute_mem(ca->pub, slot, sl->config_base, in dvb_ca_en50221_set_configoption()
608 sl->config_base); in dvb_ca_en50221_set_configoption()

123