Home
last modified time | relevance | path

Searched refs:inv_info (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/
Diommu.c2033 struct iommu_cache_invalidate_info inv_info = { 0 }; in iommu_uapi_cache_invalidate() local
2047 if (copy_from_user(&inv_info, uinfo, minsz)) in iommu_uapi_cache_invalidate()
2051 if (inv_info.argsz < minsz) in iommu_uapi_cache_invalidate()
2055 if (inv_info.granularity == IOMMU_INV_GRANU_PASID && in iommu_uapi_cache_invalidate()
2056 inv_info.argsz < offsetofend(struct iommu_cache_invalidate_info, granu.pasid_info)) in iommu_uapi_cache_invalidate()
2059 if (inv_info.granularity == IOMMU_INV_GRANU_ADDR && in iommu_uapi_cache_invalidate()
2060 inv_info.argsz < offsetofend(struct iommu_cache_invalidate_info, granu.addr_info)) in iommu_uapi_cache_invalidate()
2069 if (copy_from_user((void *)&inv_info + minsz, uinfo + minsz, in iommu_uapi_cache_invalidate()
2070 min_t(u32, inv_info.argsz, sizeof(inv_info)) - minsz)) in iommu_uapi_cache_invalidate()
2074 ret = iommu_check_cache_invl_data(&inv_info); in iommu_uapi_cache_invalidate()
[all …]
/kernel/linux/linux-5.10/drivers/iommu/intel/
Diommu.c5530 struct iommu_cache_invalidate_info *inv_info) in intel_iommu_sva_invalidate() argument
5542 if (!inv_info || !dmar_domain) in intel_iommu_sva_invalidate()
5566 if (inv_info->granularity == IOMMU_INV_GRANU_ADDR) in intel_iommu_sva_invalidate()
5567 size = to_vtd_size(inv_info->granu.addr_info.granule_size, in intel_iommu_sva_invalidate()
5568 inv_info->granu.addr_info.nb_granules); in intel_iommu_sva_invalidate()
5571 (unsigned long *)&inv_info->cache, in intel_iommu_sva_invalidate()
5577 granu = to_vtd_granularity(cache_type, inv_info->granularity); in intel_iommu_sva_invalidate()
5580 cache_type, inv_info->granularity); in intel_iommu_sva_invalidate()
5588 if (inv_info->granularity == IOMMU_INV_GRANU_PASID && in intel_iommu_sva_invalidate()
5589 (inv_info->granu.pasid_info.flags & IOMMU_INV_PASID_FLAGS_PASID)) in intel_iommu_sva_invalidate()
[all …]
/kernel/linux/linux-5.10/include/linux/
Diommu.h295 struct iommu_cache_invalidate_info *inv_info);
1044 struct iommu_cache_invalidate_info *inv_info) in iommu_uapi_cache_invalidate() argument