Searched refs:max_pasids (Results 1 – 8 of 8) sorted by relevance
60 int max_pasids; member323 for (i = 0; i < dev_state->max_pasids; ++i) { in free_pasid_states()622 if (pasid >= dev_state->max_pasids) in amd_iommu_bind_pasid()704 if (pasid >= dev_state->max_pasids) in amd_iommu_unbind_pasid()775 dev_state->max_pasids = pasids; in amd_iommu_init_device()
2794 int max_pasids; in amd_iommu_device_info() local2816 max_pasids = 1 << (9 * (amd_iommu_max_glx_val + 1)); in amd_iommu_device_info()2817 max_pasids = min(max_pasids, (1 << 20)); in amd_iommu_device_info()2820 info->max_pasids = min(pci_max_pasids(pdev), max_pasids); in amd_iommu_device_info()
133 int max_pasids; member
378 u32 max_pasids; member432 u32 max_pasids; member
26 if (mm->pasid >= dev->iommu->max_pasids) in iommu_sva_alloc_pasid()
368 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local374 max_pasids = ret; in dev_iommu_get_max_pasids()378 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()381 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()422 dev->iommu->max_pasids = dev_iommu_get_max_pasids(dev); in iommu_init_device()3521 if (!dev->iommu->max_pasids) in iommu_alloc_global_pasid()3529 dev->iommu->max_pasids - 1, GFP_KERNEL); in iommu_alloc_global_pasid()
1128 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
3603 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()