Searched refs:max_pasids (Results 1 – 10 of 10) 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()
1978 int max_pasids = dev_data->max_pasids; in init_gcr3_table() local1993 max_pasids > 0 ? max_pasids : 1); in init_gcr3_table()2193 dev_data->max_pasids = min_t(u32, iommu->iommu.max_pasids, in amd_iommu_probe_device()
843 u32 max_pasids; /* Max supported PASIDs */ member
2048 iommu->iommu.max_pasids = (1 << (pasmax + 1)) - 1; in iommu_init_pci()2050 BUG_ON(iommu->iommu.max_pasids & ~PASID_MASK); in iommu_init_pci()
373 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local379 max_pasids = ret; in dev_iommu_get_max_pasids()383 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()386 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()436 dev->iommu->max_pasids = dev_iommu_get_max_pasids(dev); in iommu_init_device()3396 if (pasid >= device->dev->iommu->max_pasids) { in iommu_attach_device_pasid()3445 if (!dev->iommu->max_pasids) in iommu_alloc_global_pasid()3453 dev->iommu->max_pasids - 1, GFP_KERNEL); in iommu_alloc_global_pasid()
30 if (iommu_mm->pasid >= dev->iommu->max_pasids) in iommu_alloc_mm_data()
688 u32 max_pasids; member738 u32 max_pasids; member
1130 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
4258 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()