Home
last modified time | relevance | path

Searched refs:perfcap (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/dma/idxd/
H A Dperfmon.c542 union idxd_perfcap perfcap; in perfmon_pmu_init() local
580 perfcap.bits = ioread64(PERFCAP_REG(idxd)); in perfmon_pmu_init()
587 if (perfcap.num_perf_counter == 0) in perfmon_pmu_init()
591 if (perfcap.counter_width == 0) in perfmon_pmu_init()
595 if (!perfcap.overflow_interrupt || !perfcap.counter_freeze) in perfmon_pmu_init()
599 if (perfcap.num_event_category == 0) in perfmon_pmu_init()
605 if (perfcap.cap_per_counter) in perfmon_pmu_init()
613 idxd_pmu->supported_filters = perfcap.filter; in perfmon_pmu_init()
614 if (perfcap.filter) in perfmon_pmu_init()
615 idxd_pmu->n_filters = hweight8(perfcap.filter); in perfmon_pmu_init()
[all …]
/openbmc/linux/drivers/iommu/intel/
H A Dperfmon.c585 u64 perfcap; in alloc_iommu_pmu() local
595 perfcap = dmar_readq(iommu->reg + DMAR_PERFCAP_REG); in alloc_iommu_pmu()
597 if (!perfcap) in alloc_iommu_pmu()
601 if (!pcap_num_cntr(perfcap) || !pcap_num_event_group(perfcap)) in alloc_iommu_pmu()
605 if (!pcap_interrupt(perfcap)) in alloc_iommu_pmu()
616 iommu_pmu->num_cntr = pcap_num_cntr(perfcap); in alloc_iommu_pmu()
623 iommu_pmu->cntr_width = pcap_cntr_width(perfcap); in alloc_iommu_pmu()
624 iommu_pmu->filter = pcap_filters_mask(perfcap); in alloc_iommu_pmu()
625 iommu_pmu->cntr_stride = pcap_cntr_stride(perfcap); in alloc_iommu_pmu()
626 iommu_pmu->num_eg = pcap_num_event_group(perfcap); in alloc_iommu_pmu()