Home
last modified time | relevance | path

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

123

/openbmc/u-boot/cmd/
H A Dpcmcia.c256 ushort config_base = 0; in check_ide_device() local
299 config_base = (*(p+6) << 8) + (*(p+4)); in check_ide_device()
300 debug ("\n## Config_base = %04x ###\n", config_base); in check_ide_device()
330 *((uchar *)(addr + config_base)) = 1; in check_ide_device()
332 printf("\n## Config_base = %04x ###\n", config_base); in check_ide_device()
333 …printf("Configuration Option Register: %02x @ %x\n", readb(addr + config_base), addr + config_base in check_ide_device()
334 printf("Card Configuration and Status Register: %02x\n", readb(addr + config_base + 2)); in check_ide_device()
335 printf("Pin Replacement Register Register: %02x\n", readb(addr + config_base + 4)); in check_ide_device()
336 printf("Socket and Copy Register: %02x\n", readb(addr + config_base + 6)); in check_ide_device()
/openbmc/linux/arch/arm/kernel/
H A Dperf_event_v7.c1073 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()
1510 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1511 krait_clearpmu(hwc->config_base); in krait_pmu_disable_event()
1541 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_enable_event()
1587 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
1844 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_event()
[all …]
H A 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()
H A 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()
/openbmc/linux/arch/arm/mach-bcm/
H A 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()
H A Dplatsmp.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()
/openbmc/linux/drivers/perf/
H A Dapple_m1_cpu_pmu.c361 evt = event->hw.config_base & M1_PMU_CFG_EVENT; in m1_pmu_enable_event()
362 user = event->hw.config_base & M1_PMU_CFG_COUNT_USER; in m1_pmu_enable_event()
363 kernel = event->hw.config_base & M1_PMU_CFG_COUNT_KERNEL; in m1_pmu_enable_event()
438 unsigned long evtype = event->hw.config_base & M1_PMU_CFG_EVENT; in m1_pmu_get_event_idx()
525 unsigned long config_base = 0; in m1_pmu_set_event_filter() local
530 config_base |= M1_PMU_CFG_COUNT_KERNEL; in m1_pmu_set_event_filter()
532 config_base |= M1_PMU_CFG_COUNT_USER; in m1_pmu_set_event_filter()
534 event->config_base = config_base; in m1_pmu_set_event_filter()
H A Darm_pmuv3.c581 armv8pmu_write_evtype(idx - 1, hwc->config_base); in armv8pmu_write_event_type()
585 write_pmccfiltr(hwc->config_base); in armv8pmu_write_event_type()
587 armv8pmu_write_evtype(idx, hwc->config_base); in armv8pmu_write_event_type()
920 unsigned long config_base = 0; in armv8pmu_set_event_filter() local
933 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter()
935 config_base |= ARMV8_PMU_EXCLUDE_EL1; in armv8pmu_set_event_filter()
937 config_base |= ARMV8_PMU_EXCLUDE_EL0; in armv8pmu_set_event_filter()
940 config_base |= ARMV8_PMU_INCLUDE_EL2; in armv8pmu_set_event_filter()
947 config_base |= ARMV8_PMU_EXCLUDE_EL1; in armv8pmu_set_event_filter()
950 config_base |= ARMV8_PMU_EXCLUDE_EL0; in armv8pmu_set_event_filter()
[all …]
H A Dthunderx2_pmu.c332 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()
H A Dqcom_l2_pmu.c347 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()
H A Darm-ccn.c682 hw->config_base = bit; in arm_ccn_pmu_event_alloc()
703 clear_bit(hw->config_base, source->xp.dt_cmp_mask); in arm_ccn_pmu_event_release()
705 clear_bit(hw->config_base, source->pmu_events_mask); in arm_ccn_pmu_event_release()
949 unsigned long wp = hw->config_base; in arm_ccn_pmu_xp_watchpoint_config()
999 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__XP_PMU_EVENT(hw->config_base); in arm_ccn_pmu_xp_event_config()
1007 CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_xp_event_config()
1008 val |= id << CCN_XP_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_xp_event_config()
1023 hw->config_base); in arm_ccn_pmu_node_event_config()
1043 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base)); in arm_ccn_pmu_node_event_config()
1045 CCN_HNF_PMU_EVENT_SEL__ID__SHIFT(hw->config_base); in arm_ccn_pmu_node_event_config()
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-tegra194-acpi.c17 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()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c219 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()
/openbmc/linux/arch/x86/events/zhaoxin/
H A Dcore.c296 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()
/openbmc/linux/arch/loongarch/kernel/
H A Dperf_event.c275 (evt->config_base & M_PERFCTL_CONFIG_MASK) | CSR_PERFCTRL_IE; in loongarch_pmu_enable_event()
780 hwc->config_base = CSR_PERFCTRL_IE; in __hw_perf_event_init()
787 hwc->config_base |= CSR_PERFCTRL_PLV3; in __hw_perf_event_init()
788 hwc->config_base |= CSR_PERFCTRL_PLV2; in __hw_perf_event_init()
791 hwc->config_base |= CSR_PERFCTRL_PLV0; in __hw_perf_event_init()
794 hwc->config_base |= CSR_PERFCTRL_PLV1; in __hw_perf_event_init()
797 hwc->config_base &= M_PERFCTL_CONFIG_MASK; in __hw_perf_event_init()
/openbmc/linux/arch/x86/events/intel/
H A Duncore_discovery.c388 wrmsrl(hwc->config_base, hwc->config); in intel_generic_uncore_msr_enable_event()
396 wrmsrl(hwc->config_base, 0); in intel_generic_uncore_msr_disable_event()
439 pci_write_config_dword(pdev, hwc->config_base, hwc->config); in intel_generic_uncore_pci_enable_event()
448 pci_write_config_dword(pdev, hwc->config_base, 0); in intel_generic_uncore_pci_disable_event()
533 writel(hwc->config, box->io_addr + hwc->config_base); in intel_generic_uncore_mmio_enable_event()
544 writel(0, box->io_addr + hwc->config_base); in intel_generic_uncore_mmio_disable_event()
H A 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()
H A 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()
H A 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()
/openbmc/linux/arch/s390/kernel/
H A Dperf_cpum_cf.c805 hwc->config_base = cpumf_ctr_ctl[set]; in __hw_perf_event_init()
823 if (!(hwc->config_base & cpumf_ctr_info.auth_ctl)) in __hw_perf_event_init()
927 ctr_set_enable(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
928 ctr_set_start(&cpuhw->state, hwc->config_base); in cpumf_pmu_start()
938 hwc->config_base, true); in cpumf_pmu_start()
945 if ((hwc->config_base & cpumf_ctr_ctl[i])) in cpumf_pmu_start()
997 if (!(hwc->config_base & cpumf_ctr_ctl[i])) in cpumf_pmu_stop()
1010 event->hw.config_base, in cpumf_pmu_stop()
1012 if (cfdiag_diffctr(cpuhw, event->hw.config_base)) in cpumf_pmu_stop()
1778 event->hw.config_base = get_authctrsets(); in cfdiag_event_init2()
[all …]
/openbmc/linux/arch/powerpc/perf/
H A Dcore-fsl-emb.c327 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()
/openbmc/linux/arch/x86/events/amd/
H A Dibs.c325 hwc->config_base = perf_ibs->msr; in perf_ibs_init()
383 rdmsrl(event->hw.config_base, *config); in perf_ibs_event_update()
394 wrmsrl(hwc->config_base, tmp & ~perf_ibs->enable_mask); in perf_ibs_enable_event()
396 wrmsrl(hwc->config_base, tmp | perf_ibs->enable_mask); in perf_ibs_enable_event()
411 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
413 wrmsrl(hwc->config_base, config); in perf_ibs_disable_event()
469 rdmsrl(hwc->config_base, config); in perf_ibs_stop()
1050 msr = hwc->config_base; in perf_ibs_handle_irq()
/openbmc/linux/drivers/pci/controller/
H A Dpci-v3-semi.c239 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()
/openbmc/linux/arch/alpha/kernel/
H A 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()
/openbmc/linux/arch/s390/include/asm/
H A Dperf_event.h71 #define SAMPL_FLAGS(hwc) ((hwc)->config_base)

123