Searched refs:pasids (Results 1 – 3 of 3) sorted by relevance
734 int amd_iommu_init_device(struct pci_dev *pdev, int pasids) in amd_iommu_init_device() argument747 if (pasids <= 0 || pasids > (PASID_MASK + 1)) in amd_iommu_init_device()761 tmp = pasids; in amd_iommu_init_device()766 dev_state->max_pasids = pasids; in amd_iommu_init_device()779 ret = amd_iommu_domain_enable_v2(dev_state->domain, pasids); in amd_iommu_init_device()
45 extern int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids);
3340 int amd_iommu_domain_enable_v2(struct iommu_domain *dom, int pasids) in amd_iommu_domain_enable_v2() argument3346 if (pasids <= 0 || pasids > (PASID_MASK + 1)) in amd_iommu_domain_enable_v2()3350 for (levels = 0; (pasids - 1) & ~0x1ff; pasids >>= 9) in amd_iommu_domain_enable_v2()