/linux-5.19.10/drivers/clocksource/ |
D | timer-qcom.c | 34 static void __iomem *event_base; variable 42 u32 ctrl = readl_relaxed(event_base + TIMER_ENABLE); in msm_timer_interrupt() 44 writel_relaxed(ctrl, event_base + TIMER_ENABLE); in msm_timer_interrupt() 53 u32 ctrl = readl_relaxed(event_base + TIMER_ENABLE); in msm_timer_set_next_event() 56 writel_relaxed(ctrl, event_base + TIMER_ENABLE); in msm_timer_set_next_event() 58 writel_relaxed(ctrl, event_base + TIMER_CLEAR); in msm_timer_set_next_event() 59 writel_relaxed(cycles, event_base + TIMER_MATCH_VAL); in msm_timer_set_next_event() 65 writel_relaxed(ctrl | TIMER_ENABLE_EN, event_base + TIMER_ENABLE); in msm_timer_set_next_event() 73 ctrl = readl_relaxed(event_base + TIMER_ENABLE); in msm_timer_shutdown() 75 writel_relaxed(ctrl, event_base + TIMER_ENABLE); in msm_timer_shutdown() [all …]
|
/linux-5.19.10/arch/x86/events/ |
D | msr.c | 217 event->hw.event_base = msr[cfg].msr; in msr_event_init() 227 if (event->hw.event_base) in msr_read_counter() 228 rdmsrl(event->hw.event_base, now); in msr_read_counter() 249 if (unlikely(event->hw.event_base == MSR_SMI_COUNT)) { in msr_event_update() 252 } else if (unlikely(event->hw.event_base == MSR_IA32_THERM_STATUS)) { in msr_event_update()
|
D | rapl.c | 156 rdmsrl(event->hw.event_base, raw); in rapl_read_counter() 184 rdmsrl(event->hw.event_base, new_raw_count); in rapl_event_update() 368 event->hw.event_base = rapl_msrs[bit].msr; in rapl_pmu_event_init()
|
D | core.c | 116 if (unlikely(!hwc->event_base)) in x86_perf_event_update() 1226 hwc->event_base = 0; in x86_assign_hw_event() 1235 hwc->event_base = MSR_ARCH_PERFMON_FIXED_CTR0 + in x86_assign_hw_event() 1243 hwc->event_base = x86_pmu_event_addr(hwc->idx); in x86_assign_hw_event() 1370 if (unlikely(!hwc->event_base)) in x86_perf_event_set_period() 1413 wrmsrl(hwc->event_base, (u64)(-left) & x86_pmu.cntval_mask); in x86_perf_event_set_period() 1428 wrmsrl(hwc->event_base, in x86_perf_event_set_period()
|
/linux-5.19.10/drivers/perf/ |
D | thunderx2_pmu.c | 334 hwc->event_base = (unsigned long)tx2_pmu->base in init_cntr_base_l3c() 350 hwc->event_base = (unsigned long)tx2_pmu->base in init_cntr_base_dmc() 364 hwc->event_base = (unsigned long)tx2_pmu->base; in init_cntr_base_ccpi2() 380 reg_writel(0, hwc->event_base); in uncore_start_event_l3c() 410 reg_writel(0, hwc->event_base); in uncore_start_event_dmc() 451 hwc->event_base + CCPI2_PERF_CTL); in uncore_start_event_ccpi2() 460 reg_writel(0, hwc->event_base + CCPI2_PERF_CTL); in uncore_stop_event_ccpi2() 480 hwc->event_base + CCPI2_COUNTER_SEL); in tx2_uncore_event_update() 481 new = reg_readl(hwc->event_base + CCPI2_COUNTER_DATA_H); in tx2_uncore_event_update() 483 reg_readl(hwc->event_base + CCPI2_COUNTER_DATA_L); in tx2_uncore_event_update() [all …]
|
D | riscv_pmu_sbi.c | 279 cflags, hwc->event_base, hwc->config, hwc->config >> 32); in pmu_sbi_ctr_get_idx() 282 cflags, hwc->event_base, hwc->config, 0); in pmu_sbi_ctr_get_idx() 286 hwc->event_base, hwc->config); in pmu_sbi_ctr_get_idx()
|
D | riscv_pmu.c | 268 hwc->event_base = mapped_event; in riscv_pmu_event_init()
|
D | arm-ccn.c | 902 dt_cfg = hw->event_base; in arm_ccn_pmu_xp_dt_config() 956 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__WATCHPOINT(wp); 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() 1022 hw->event_base = CCN_XP_DT_CONFIG__DT_CFG__DEVICE_PMU_EVENT(port, in arm_ccn_pmu_node_event_config()
|
D | arm_pmu.c | 466 hwc->event_base = 0; in __hw_perf_event_init()
|
/linux-5.19.10/arch/alpha/kernel/ |
D | perf_event.c | 351 evtype[n] = group->hw.event_base; in collect_events() 359 evtype[n] = pe->hw.event_base; in collect_events() 459 cpuc->evtype[n0] = event->hw.event_base; in alpha_pmu_add() 642 hwc->event_base = ev; in __hw_perf_event_init() 656 evtypes[n] = hwc->event_base; in __hw_perf_event_init()
|
/linux-5.19.10/arch/s390/include/asm/ |
D | perf_event.h | 71 #define SAMPL_RATE(hwc) ((hwc)->event_base)
|
/linux-5.19.10/arch/mips/kernel/ |
D | perf_event_mipsxx.c | 325 cntr_mask = (hwc->event_base >> 10) & 0xffff; in mipsxx_pmu_alloc_counter() 327 cntr_mask = (hwc->event_base >> 8) & 0xffff; in mipsxx_pmu_alloc_counter() 352 unsigned int range = evt->event_base >> 24; in mipsxx_pmu_enable_event() 357 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0x3ff) | in mipsxx_pmu_enable_event() 362 cpuc->saved_ctrl[idx] = M_PERFCTL_EVENT(evt->event_base & 0xff) | in mipsxx_pmu_enable_event() 440 M_PERFCTL_EVENT(hwc->event_base & 0x3ff)); in mipspmu_event_set_period() 1506 hwc->event_base = mipspmu_perf_event_encode(pev); in __hw_perf_event_init()
|
/linux-5.19.10/drivers/perf/hisilicon/ |
D | hisi_pcie_pmu.c | 348 hwc->event_base = HISI_PCIE_EXT_CNT; in hisi_pcie_pmu_event_init() 350 hwc->event_base = HISI_PCIE_CNT; in hisi_pcie_pmu_event_init() 373 return hisi_pcie_pmu_readq(pcie_pmu, event->hw.event_base, idx); in hisi_pcie_pmu_read_counter() 503 hisi_pcie_pmu_writeq(pcie_pmu, hwc->event_base, idx, prev_cnt); in hisi_pcie_pmu_start()
|
/linux-5.19.10/arch/x86/events/intel/ |
D | cstate.c | 329 event->hw.event_base = core_msr[cfg].msr; in cstate_pmu_event_init() 338 event->hw.event_base = pkg_msr[cfg].msr; in cstate_pmu_event_init() 358 rdmsrl(event->hw.event_base, val); in cstate_pmu_read_counter()
|
D | uncore.c | 137 rdmsrl(event->hw.event_base, count); in uncore_msr_read_counter() 154 if (!uncore_mmio_is_valid_offset(box, event->hw.event_base)) in uncore_mmio_read_counter() 157 return readq(box->io_addr + event->hw.event_base); in uncore_mmio_read_counter() 246 hwc->event_base = uncore_fixed_ctr(box); in uncore_assign_hw_event() 252 hwc->event_base = uncore_perf_ctr(box, hwc->idx); in uncore_assign_hw_event() 779 event->hw.event_base = uncore_freerunning_counter(box, event); in uncore_pmu_event_init()
|
D | uncore_discovery.c | 438 pci_read_config_dword(pdev, hwc->event_base, (u32 *)&count); in intel_generic_uncore_pci_read_counter() 439 pci_read_config_dword(pdev, hwc->event_base + 4, (u32 *)&count + 1); in intel_generic_uncore_pci_read_counter()
|
D | uncore_snb.c | 800 event->hw.event_base = base; in snb_uncore_imc_event_init() 857 return (u64)readl(box->io_addr + hwc->event_base); in snb_uncore_imc_read_counter()
|
D | p4.c | 874 rdmsrl(hwc->event_base, v); in p4_pmu_clear_cccr_ovf()
|
/linux-5.19.10/arch/sparc/kernel/ |
D | perf_event.c | 1356 events[n] = group->hw.event_base; in collect_events() 1365 events[n] = event->hw.event_base; in collect_events() 1385 cpuc->events[n0] = event->hw.event_base; in sparc_pmu_add() 1455 hwc->event_base = perf_event_encode(pmap); in sparc_pmu_event_init() 1461 hwc->event_base = attr->config; in sparc_pmu_event_init() 1481 events[n] = hwc->event_base; in sparc_pmu_event_init()
|
/linux-5.19.10/drivers/fpga/ |
D | dfl-fme-perf.c | 788 struct fme_perf_event_ops *ops = get_event_ops(event->hw.event_base); in fme_perf_event_destroy() 826 hwc->event_base = evtype; in fme_perf_event_init() 844 struct fme_perf_event_ops *ops = get_event_ops(event->hw.event_base); in fme_perf_event_update() 858 struct fme_perf_event_ops *ops = get_event_ops(event->hw.event_base); in fme_perf_event_start()
|
/linux-5.19.10/arch/x86/events/amd/ |
D | uncore.c | 106 wrmsrl(hwc->event_base, (u64)local64_read(&hwc->prev_count)); in amd_uncore_start() 157 hwc->event_base = uncore->msr_base + 1 + (2 * hwc->idx); in amd_uncore_add()
|
/linux-5.19.10/drivers/dma/idxd/ |
D | perfmon.c | 131 hwc->event_base = ioread64(CNTRCFG_REG(idxd, idx)); in perfmon_assign_hw_event() 219 event->hw.event_base = ioread64(PERFMON_TABLE_OFFSET(idxd)); in perfmon_pmu_event_init()
|
/linux-5.19.10/arch/powerpc/perf/ |
D | imc-pmu.c | 549 event->hw.event_base = (u64)pcni->vbase + l_config; in nest_imc_event_init() 885 event->hw.event_base = (u64)pcmi->vbase + (config & IMC_EVENT_OFFSET_MASK); in core_imc_event_init() 1034 return (u64 *)event->hw.event_base; in get_event_base_addr()
|
D | core-book3s.c | 1605 flags[n] = group->hw.event_base; in collect_events() 1614 flags[n] = event->hw.event_base; in collect_events() 1647 cpuhw->flags[n0] = event->hw.event_base; in power_pmu_add() 2150 event->hw.event_base = cflags[n]; in power_pmu_event_init()
|
/linux-5.19.10/include/linux/ |
D | perf_event.h | 153 unsigned long event_base; member
|