Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/iommu/
A Diommu-sva.c94 ioasid_t max_pasids; in iommu_sva_bind_device() local
97 max_pasids = dev->iommu->max_pasids; in iommu_sva_bind_device()
98 if (!max_pasids) in iommu_sva_bind_device()
102 ret = iommu_sva_alloc_pasid(mm, 1, max_pasids - 1); in iommu_sva_bind_device()
A Diommu.c289 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local
295 max_pasids = ret; in dev_iommu_get_max_pasids()
299 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()
302 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()
340 dev->iommu->max_pasids = dev_iommu_get_max_pasids(dev); in __iommu_probe_device()
/linux-6.3-rc2/drivers/iommu/amd/
A Diommu_v2.c60 int max_pasids; member
323 for (i = 0; i < dev_state->max_pasids; ++i) { in free_pasid_states()
619 if (pasid >= dev_state->max_pasids) in amd_iommu_bind_pasid()
701 if (pasid >= dev_state->max_pasids) in amd_iommu_unbind_pasid()
772 dev_state->max_pasids = pasids; in amd_iommu_init_device()
A Diommu.c2746 int max_pasids; in amd_iommu_device_info() local
2768 max_pasids = 1 << (9 * (amd_iommu_max_glx_val + 1)); in amd_iommu_device_info()
2769 max_pasids = min(max_pasids, (1 << 20)); in amd_iommu_device_info()
2772 info->max_pasids = min(pci_max_pasids(pdev), max_pasids); in amd_iommu_device_info()
/linux-6.3-rc2/include/linux/
A Damd-iommu.h134 int max_pasids; member
A Diommu.h365 u32 max_pasids; member
417 u32 max_pasids; member
/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A Dkfd_iommu.c93 iommu_info.max_pasids); in kfd_iommu_device_init()
/linux-6.3-rc2/drivers/iommu/intel/
A Ddmar.c1130 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
/linux-6.3-rc2/drivers/iommu/arm/arm-smmu-v3/
A Darm-smmu-v3.c3549 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()

Completed in 37 milliseconds