Lines Matching refs:cntr
159 u32 shift, bank, cntr; in get_next_avail_iommu_bnk_cntr() local
166 for (cntr = 0; cntr < max_cntrs; cntr++) { in get_next_avail_iommu_bnk_cntr()
167 shift = bank + (bank*3) + cntr; in get_next_avail_iommu_bnk_cntr()
173 event->hw.iommu_cntr = cntr; in get_next_avail_iommu_bnk_cntr()
186 u8 bank, u8 cntr) in clear_avail_iommu_bnk_cntr() argument
195 if ((bank > max_banks) || (cntr > max_cntrs)) in clear_avail_iommu_bnk_cntr()
198 shift = bank + cntr + (bank*3); in clear_avail_iommu_bnk_cntr()
243 u8 cntr = hwc->iommu_cntr; in perf_iommu_enable_event() local
247 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_COUNTER_SRC_REG, ®); in perf_iommu_enable_event()
253 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DEVID_MATCH_REG, ®); in perf_iommu_enable_event()
259 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_PASID_MATCH_REG, ®); in perf_iommu_enable_event()
265 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DOMID_MATCH_REG, ®); in perf_iommu_enable_event()