Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/iommu/amd/
Diommu_v2.c60 int max_pasids; member
323 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()
Diommu.c2794 int max_pasids; in amd_iommu_device_info() local
2816 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()
/linux-6.6.21/include/linux/
Damd-iommu.h133 int max_pasids; member
Diommu.h378 u32 max_pasids; member
432 u32 max_pasids; member
/linux-6.6.21/drivers/iommu/
Diommu-sva.c26 if (mm->pasid >= dev->iommu->max_pasids) in iommu_sva_alloc_pasid()
Diommu.c368 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local
374 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()
/linux-6.6.21/drivers/iommu/intel/
Ddmar.c1128 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
/linux-6.6.21/drivers/iommu/arm/arm-smmu-v3/
Darm-smmu-v3.c3603 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()