Searched refs:max_pasids (Results 1 – 9 of 9) sorted by relevance
16 if (dev_data->pasid_enabled && dev_data->max_pasids && in is_pasid_enabled()26 if (pasid > 0 && pasid < dev_data->max_pasids) in is_pasid_valid()
139 event.fault.prm.pasid >= dev_data->max_pasids) { in iommu_call_iopf_notifier()
779 u32 max_pasids; /* Max supported PASIDs */ member
411 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local417 max_pasids = ret; in dev_iommu_get_max_pasids()421 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()424 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()502 dev->iommu->max_pasids = dev_iommu_get_max_pasids(dev); in iommu_init_device()1704 dev->iommu->max_pasids ? IOMMU_HWPT_ALLOC_PASID : 0); in __iommu_group_alloc_default_domain()3414 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()3429 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()3452 if (device->dev->iommu->max_pasids > 0) in __iommu_remove_group_pasid()3501 if ((device->dev->iommu->max_pasids > 0) && in iommu_attach_device_pasid()[all …]
32 if (iommu_mm->pasid >= dev->iommu->max_pasids) in iommu_alloc_mm_data()
800 u32 max_pasids; member851 u32 max_pasids; member
1636 if (idev->dev->iommu->max_pasids) { in iommufd_get_hw_info()1637 cmd->out_max_pasid_log2 = ilog2(idev->dev->iommu->max_pasids); in iommufd_get_hw_info()
1130 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
4446 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()