Home
last modified time | relevance | path

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

/linux-6.15/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 Diommu.c2132 int max_pasids = dev_data->max_pasids; in init_gcr3_table() local
2147 max_pasids > 0 ? max_pasids : 1); in init_gcr3_table()
2392 dev_data->max_pasids = min_t(u32, iommu->iommu.max_pasids, in amd_iommu_probe_device()
H A Damd_iommu_types.h857 u32 max_pasids; /* Max supported PASIDs */ member
H A Dinit.c2052 iommu->iommu.max_pasids = (1 << (pasmax + 1)) - 1; in iommu_init_pci()
2054 BUG_ON(iommu->iommu.max_pasids & ~PASID_MASK); in iommu_init_pci()
/linux-6.15/drivers/iommu/
H A Diommu.c382 u32 max_pasids = 0, bits = 0; in dev_iommu_get_max_pasids() local
388 max_pasids = ret; in dev_iommu_get_max_pasids()
392 max_pasids = 1UL << bits; in dev_iommu_get_max_pasids()
395 return min_t(u32, max_pasids, dev->iommu->iommu_dev->max_pasids); in dev_iommu_get_max_pasids()
3369 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()
3384 if (device->dev->iommu->max_pasids > 0) { in __iommu_set_group_pasid()
3407 if (device->dev->iommu->max_pasids > 0) in __iommu_remove_group_pasid()
3455 if ((device->dev->iommu->max_pasids > 0) && in iommu_attach_device_pasid()
3456 (pasid >= device->dev->iommu->max_pasids)) { in iommu_attach_device_pasid()
3611 if (!dev->iommu->max_pasids) in iommu_alloc_global_pasid()
[all …]
H A Diommu-sva.c30 if (iommu_mm->pasid >= dev->iommu->max_pasids) in iommu_alloc_mm_data()
/linux-6.15/include/linux/
H A Diommu.h760 u32 max_pasids; member
810 u32 max_pasids; member
/linux-6.15/drivers/iommu/iommufd/
H A Ddevice.c1533 if (idev->dev->iommu->max_pasids) { in iommufd_get_hw_info()
1534 cmd->out_max_pasid_log2 = ilog2(idev->dev->iommu->max_pasids); in iommufd_get_hw_info()
H A Dselftest.c1979 mock_iommu.iommu_dev.max_pasids = (1 << MOCK_PASID_WIDTH); in iommufd_test_init()
/linux-6.15/drivers/iommu/intel/
H A Ddmar.c1130 iommu->iommu.max_pasids = 2UL << ecap_pss(iommu->ecap); in alloc_iommu()
/linux-6.15/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3.c4430 smmu->iommu.max_pasids = 1UL << smmu->ssid_bits; in arm_smmu_device_hw_probe()