Home
last modified time | relevance | path

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

/linux-4.1.27/arch/arm/kernel/
Dperf_event_v7.c790 armv7_pmnc_write_evtsel(idx, hwc->config_base); in armv7pmu_enable_event()
927 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
956 unsigned long config_base = 0; in armv7pmu_set_event_filter() local
961 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter()
963 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter()
965 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter()
971 event->config_base = config_base; in armv7pmu_set_event_filter()
1263 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument
1268 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup()
1269 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup()
[all …]
Dperf_event_xscale.c211 evt = (hwc->config_base << XSCALE1_COUNT0_EVT_SHFT) | in xscale1pmu_enable_event()
216 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()
555 evtsel |= hwc->config_base << XSCALE2_COUNT0_EVT_SHFT; in xscale2pmu_enable_event()
560 evtsel |= hwc->config_base << XSCALE2_COUNT1_EVT_SHFT; in xscale2pmu_enable_event()
565 evtsel |= hwc->config_base << XSCALE2_COUNT2_EVT_SHFT; in xscale2pmu_enable_event()
570 evtsel |= hwc->config_base << XSCALE2_COUNT3_EVT_SHFT; in xscale2pmu_enable_event()
Dperf_event_v6.c273 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT0_SHIFT) | in armv6pmu_enable_event()
277 evt = (hwc->config_base << ARMV6_PMCR_EVT_COUNT1_SHIFT) | in armv6pmu_enable_event()
386 if (ARMV6_PERFCTR_CPU_CYCLES == hwc->config_base) { in armv6pmu_get_event_idx()
Dperf_event.c411 hwc->config_base = 0; in __hw_perf_event_init()
429 hwc->config_base |= (unsigned long)mapping; in __hw_perf_event_init()
/linux-4.1.27/arch/arm/mach-bcm/
Dkona_smp.c49 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-4.1.27/arch/s390/kernel/
Dperf_cpum_cf.c105 switch (hwc->config_base) { in validate_event()
131 switch (hwc->config_base) { in validate_ctr_version()
161 ctrs_state = cpumf_state_ctl[hwc->config_base]; in validate_ctr_auth()
376 hwc->config_base = get_counter_set(ev); in __hw_perf_event_init()
493 ctr_set_enable(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
494 ctr_set_start(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
504 atomic_inc(&cpuhw->ctr_set[hwc->config_base]); in cpumf_pmu_start()
517 if (!atomic_dec_return(&cpuhw->ctr_set[hwc->config_base])) in cpumf_pmu_stop()
518 ctr_set_stop(&cpuhw->state, hwc->config_base); in cpumf_pmu_stop()
541 ctr_set_enable(&cpuhw->state, event->hw.config_base); in cpumf_pmu_add()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event_amd_ibs.c284 hwc->config_base = perf_ibs->msr; in perf_ibs_init()
332 rdmsrl(event->hw.config_base, *config); in perf_ibs_event_update()
340 wrmsrl(hwc->config_base, hwc->config | config | perf_ibs->enable_mask); in perf_ibs_enable_event()
354 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
356 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
398 rdmsrl(hwc->config_base, config); in perf_ibs_stop()
539 msr = hwc->config_base; in perf_ibs_handle_irq()
Dperf_event_intel_uncore_snb.c73 wrmsrl(hwc->config_base, hwc->config | SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
75 wrmsrl(hwc->config_base, SNB_UNC_CTL_EN); in snb_uncore_msr_enable_event()
80 wrmsrl(event->hw.config_base, 0); in snb_uncore_msr_disable_event()
582 wrmsrl(hwc->config_base, hwc->config | SNB_UNC_CTL_EN); in nhm_uncore_msr_enable_event()
584 wrmsrl(hwc->config_base, NHM_UNC_FIXED_CTR_CTL_EN); in nhm_uncore_msr_enable_event()
Dperf_event_p6.c163 (void)wrmsrl_safe(hwc->config_base, val); in p6_pmu_disable_event()
180 (void)wrmsrl_safe(hwc->config_base, val); in p6_pmu_enable_event()
Dperf_event_intel_uncore_nhmex.c236 wrmsrl(event->hw.config_base, 0); in nhmex_uncore_msr_disable_event()
244 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
246 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_uncore_msr_enable_event()
248 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_uncore_msr_enable_event()
380 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_bbox_msr_enable_event()
467 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); in nhmex_sbox_msr_enable_event()
855 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); in nhmex_mbox_msr_enable_event()
1140 wrmsrl(hwc->config_base, NHMEX_PMON_CTL_EN_BIT0 | in nhmex_rbox_msr_enable_event()
Dperf_event_knc.c184 (void)wrmsrl_safe(hwc->config_base + hwc->idx, val); in knc_pmu_disable_event()
195 (void)wrmsrl_safe(hwc->config_base + hwc->idx, val); in knc_pmu_enable_event()
Dperf_event_amd_uncore.c101 wrmsrl(hwc->config_base, (hwc->config | ARCH_PERFMON_EVENTSEL_ENABLE)); in amd_uncore_start()
109 wrmsrl(hwc->config_base, hwc->config); in amd_uncore_stop()
148 hwc->config_base = uncore->msr_base + (2 * hwc->idx); in amd_uncore_add()
Dperf_event_intel_uncore_snbep.c292 pci_write_config_dword(pdev, hwc->config_base, hwc->config | SNBEP_PMON_CTL_EN); in snbep_uncore_pci_enable_event()
300 pci_write_config_dword(pdev, hwc->config_base, hwc->config); in snbep_uncore_pci_disable_event()
356 wrmsrl(hwc->config_base, hwc->config | SNBEP_PMON_CTL_EN); in snbep_uncore_msr_enable_event()
364 wrmsrl(hwc->config_base, hwc->config); in snbep_uncore_msr_disable_event()
935 pci_write_config_dword(pdev, hwc->config_base, hwc->config | SNBEP_PMON_CTL_EN); in snbep_qpi_enable_event()
1411 wrmsrl(hwc->config_base, hwc->config | SNBEP_PMON_CTL_EN); in ivbep_cbox_enable_event()
1898 wrmsrl(hwc->config_base, hwc->config | SNBEP_PMON_CTL_EN); in hswep_cbox_enable_event()
Dperf_event_p4.c860 rdmsrl(hwc->config_base, v); in p4_pmu_clear_cccr_ovf()
862 wrmsrl(hwc->config_base, v & ~P4_CCCR_OVF); in p4_pmu_clear_cccr_ovf()
912 (void)wrmsrl_safe(hwc->config_base, in p4_pmu_disable_event()
981 (void)wrmsrl_safe(hwc->config_base, in p4_pmu_enable_event()
Dperf_event.h725 wrmsrl(hwc->config_base, (hwc->config | enable_mask) & ~disable_mask); in __x86_pmu_enable_event()
740 wrmsrl(hwc->config_base, hwc->config); in x86_pmu_disable_event()
Dperf_event_intel.c1397 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed()
1399 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_disable_fixed()
1429 if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL)) { in intel_pmu_disable_event()
1465 rdmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
1468 wrmsrl(hwc->config_base, ctrl_val); in intel_pmu_enable_fixed()
1498 if (unlikely(hwc->config_base == MSR_ARCH_PERFMON_FIXED_CTR_CTRL)) { in intel_pmu_enable_event()
Dperf_event_intel_uncore.c165 hwc->config_base = uncore_fixed_ctl(box); in uncore_assign_hw_event()
169 hwc->config_base = uncore_event_ctl(box, hwc->idx); in uncore_assign_hw_event()
Dperf_event.c972 hwc->config_base = 0; in x86_assign_hw_event()
975 hwc->config_base = MSR_ARCH_PERFMON_FIXED_CTR_CTRL; in x86_assign_hw_event()
979 hwc->config_base = x86_pmu_config_addr(hwc->idx); in x86_assign_hw_event()
/linux-4.1.27/arch/arm64/kernel/
Dperf_event.c549 hwc->config_base = 0; in __hw_perf_event_init()
566 hwc->config_base |= (unsigned long)mapping; in __hw_perf_event_init()
1060 armv8pmu_write_evtype(idx, hwc->config_base); in armv8pmu_enable_event()
1186 unsigned long evtype = event->config_base & ARMV8_EVTYPE_EVENT; in armv8pmu_get_event_idx()
1215 unsigned long config_base = 0; in armv8pmu_set_event_filter() local
1220 config_base |= ARMV8_EXCLUDE_EL0; in armv8pmu_set_event_filter()
1222 config_base |= ARMV8_EXCLUDE_EL1; in armv8pmu_set_event_filter()
1224 config_base |= ARMV8_INCLUDE_EL2; in armv8pmu_set_event_filter()
1230 event->config_base = config_base; in armv8pmu_set_event_filter()
/linux-4.1.27/arch/mips/kernel/
Dperf_event_mipsxx.c348 (evt->config_base & M_PERFCTL_CONFIG_MASK) | in mipsxx_pmu_enable_event()
1242 hwc->config_base |= M_TC_EN_ALL; in check_and_calc_range()
1248 hwc->config_base |= M_PERFCTL_VPEID(event->cpu); in check_and_calc_range()
1249 hwc->config_base |= M_TC_EN_VPE; in check_and_calc_range()
1252 hwc->config_base |= M_TC_EN_ALL; in check_and_calc_range()
1294 hwc->config_base = M_PERFCTL_INTERRUPT_ENABLE; in __hw_perf_event_init()
1305 hwc->config_base |= M_PERFCTL_USER; in __hw_perf_event_init()
1307 hwc->config_base |= M_PERFCTL_KERNEL; in __hw_perf_event_init()
1309 hwc->config_base |= M_PERFCTL_EXL; in __hw_perf_event_init()
1312 hwc->config_base |= M_PERFCTL_SUPERVISOR; in __hw_perf_event_init()
[all …]
/linux-4.1.27/arch/powerpc/perf/
Dcore-fsl-emb.c344 write_pmlca(i, event->hw.config_base); in fsl_emb_pmu_add()
553 event->hw.config_base = PMLCA_CE | PMLCA_FCM1 | in fsl_emb_pmu_event_init()
557 event->hw.config_base |= PMLCA_FCU; in fsl_emb_pmu_event_init()
559 event->hw.config_base |= PMLCA_FCS; in fsl_emb_pmu_event_init()
Dcore-book3s.c1779 event->hw.config_base = ev; in power_pmu_event_init()
/linux-4.1.27/drivers/bus/
Darm-ccn.c604 clear_bit(hw->config_base, source->xp.dt_cmp_mask); in arm_ccn_pmu_event_destroy()
606 clear_bit(hw->config_base, source->pmu_events_mask); in arm_ccn_pmu_event_destroy()
753 hw->config_base = bit; in arm_ccn_pmu_event_init()
877 unsigned long wp = hw->config_base; in arm_ccn_pmu_xp_watchpoint_config()
927 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__XP_PMU_EVENT(hw->config_base); in arm_ccn_pmu_xp_event_config()
935 CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_xp_event_config()
936 val |= id << CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_xp_event_config()
951 hw->config_base); in arm_ccn_pmu_node_event_config()
971 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_node_event_config()
973 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_node_event_config()
Darm-cci.c280 unsigned long cci_event = hw_event->config_base; in pmu_get_event_idx()
552 pmu_set_event(idx, hwc->config_base); in cci_pmu_start()
700 hwc->config_base = 0; in __hw_perf_event_init()
707 hwc->config_base |= (unsigned long)mapping; in __hw_perf_event_init()
/linux-4.1.27/arch/alpha/kernel/
Dperf_event.c199 event[0]->hw.config_base = config; in ev67_check_constraints()
202 event[1]->hw.config_base = config; in ev67_check_constraints()
423 cpuc->config = cpuc->event[0]->hw.config_base; in maybe_change_configuration()
668 hwc->config_base = 0; in __hw_perf_event_init()
/linux-4.1.27/arch/s390/include/asm/
Dperf_event.h69 #define SAMPL_FLAGS(hwc) ((hwc)->config_base)
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_ca_en50221.c106 u32 config_base; member
479 ca->slot_info[slot].config_base = 0; in dvb_ca_en50221_parse_attributes()
481 ca->slot_info[slot].config_base |= (tuple[2 + i] << (8 * i)); in dvb_ca_en50221_parse_attributes()
541 manfid, devid, ca->slot_info[slot].config_base, ca->slot_info[slot].config_option); in dvb_ca_en50221_parse_attributes()
562 ca->slot_info[slot].config_base, in dvb_ca_en50221_set_configoption()
566 configoption = ca->pub->read_attribute_mem(ca->pub, slot, ca->slot_info[slot].config_base); in dvb_ca_en50221_set_configoption()
/linux-4.1.27/drivers/net/ethernet/fujitsu/
Dfmvj18x_cs.c359 link->config_base = 0x800; in fmvj18x_config()
366 link->config_base = 0x800; in fmvj18x_config()
372 link->config_base = 0x800; in fmvj18x_config()
380 if (link->config_base == 0x0fe0) in fmvj18x_config()
/linux-4.1.27/include/pcmcia/
Dds.h114 unsigned int config_base; member
/linux-4.1.27/arch/sparc/kernel/
Dperf_event.c967 cpuc->pcr[0] |= cpuc->event[0]->hw.config_base; in calculate_single_pcr()
997 cpuc->pcr[idx] |= cp->hw.config_base; in calculate_multiple_pcrs()
1450 hwc->config_base = sparc_pmu->irq_bit; in sparc_pmu_event_init()
1452 hwc->config_base |= sparc_pmu->user_bit; in sparc_pmu_event_init()
1454 hwc->config_base |= sparc_pmu->priv_bit; in sparc_pmu_event_init()
1456 hwc->config_base |= sparc_pmu->hv_bit; in sparc_pmu_event_init()
/linux-4.1.27/drivers/pcmcia/
Dpcmcia_resource.c181 addr = (p_dev->config_base + where) >> 1; in pcmcia_access_config()
543 p_dev->vpp, flags, p_dev->config_base, p_dev->config_regs, in pcmcia_enable_device()
547 base = p_dev->config_base; in pcmcia_enable_device()
Dds.c282 p_dev->config_base = cis_config.base; in pcmcia_device_probe()
284 dev_dbg(dev, "base %x, regs %x", p_dev->config_base, in pcmcia_device_probe()
289 p_dev->config_base = 0; in pcmcia_device_probe()
/linux-4.1.27/drivers/net/can/sja1000/
Dems_pcmcia.c287 csval = pcmcia_map_mem_page(dev, dev->resource[2], dev->config_base); in ems_pcmcia_probe()
/linux-4.1.27/drivers/tty/serial/8250/
D8250_pci.c1701 u8 config_base; in pci_fintek_setup() local
1704 config_base = 0x40 + 0x08 * idx; in pci_fintek_setup()
1707 pci_read_config_word(pdev, config_base + 4, &iobase); in pci_fintek_setup()
1722 u8 config_base; in pci_fintek_init() local
1743 config_base = 0x40 + 0x08 * i; in pci_fintek_init()
1749 pci_write_config_byte(dev, config_base + 0x00, 0x01); in pci_fintek_init()
1752 pci_write_config_byte(dev, config_base + 0x01, 0x33); in pci_fintek_init()
1755 pci_write_config_byte(dev, config_base + 0x04, in pci_fintek_init()
1759 pci_write_config_byte(dev, config_base + 0x05, in pci_fintek_init()
1762 pci_write_config_byte(dev, config_base + 0x06, dev->irq); in pci_fintek_init()
/linux-4.1.27/arch/mips/include/asm/sn/
Dklconfig.h128 unsigned long config_base; member
/linux-4.1.27/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c393 tmp = readb(smc->base + link->config_base + CISREG_COR); in mhz_3288_power()
395 writeb(tmp, smc->base + link->config_base + CISREG_COR); in mhz_3288_power()
447 offset = (smc->manfid == MANFID_MOTOROLA) ? link->config_base : 0; in mhz_mfc_config()
/linux-4.1.27/Documentation/pcmcia/
Ddriver-changes.txt18 config_index, config_base, vpp.
/linux-4.1.27/include/linux/
Dperf_event.h104 unsigned long config_base; member
/linux-4.1.27/drivers/net/ethernet/8390/
Dpcnet_cs.c403 if (link->config_base != 0x03c0) in get_ax88190()
533 if ((link->config_base == 0x03c0) && in pcnet_try_config()
Daxnet_cs.c215 if (link->config_base != 0x03c0) in get_prom()