Home
last modified time | relevance | path

Searched refs:max_pasids (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/iommu/amd/
H A Dpasid.c16 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()
H A Dppr.c139 event.fault.prm.pasid >= dev_data->max_pasids) { in iommu_call_iopf_notifier()
H A Damd_iommu_types.h858 u32 max_pasids; /* Max supported PASIDs */ member
H A Dinit.c2053 iommu->iommu.max_pasids = (1 << (pasmax + 1)) - 1; in iommu_init_pci()
2055 BUG_ON(iommu->iommu.max_pasids & ~PASID_MASK); in iommu_init_pci()
/linux/drivers/iommu/
H A Diommu.c384 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local
390 max_pasids = ret; in dev_iommu_get_max_pasids()
394 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()
397 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()
475 dev->iommu->max_pasids = dev_iommu_get_max_pasids(dev); in iommu_init_device()
1663 dev->iommu->max_pasids ? IOMMU_HWPT_ALLOC_PASID : 0); in __iommu_group_alloc_default_domain()
3370 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()
3385 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()
3408 if (device->dev->iommu->max_pasids > in __iommu_remove_group_pasid()
[all...]
H A Diommu-sva.c30 if (iommu_mm->pasid >= dev->iommu->max_pasids) in iommu_alloc_mm_data()
/linux/drivers/iommu/intel/
H A Ddmar.c1130 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()