Searched refs:inv_info (Results 1 – 2 of 2) sorted by relevance
/drivers/iommu/intel/ |
D | iommu.c | 4915 struct iommu_cache_invalidate_info *inv_info) in intel_iommu_sva_invalidate() argument 4927 if (!inv_info || !dmar_domain) in intel_iommu_sva_invalidate() 4951 if (inv_info->granularity == IOMMU_INV_GRANU_ADDR) in intel_iommu_sva_invalidate() 4952 size = to_vtd_size(inv_info->granu.addr_info.granule_size, in intel_iommu_sva_invalidate() 4953 inv_info->granu.addr_info.nb_granules); in intel_iommu_sva_invalidate() 4956 (unsigned long *)&inv_info->cache, in intel_iommu_sva_invalidate() 4962 granu = to_vtd_granularity(cache_type, inv_info->granularity); in intel_iommu_sva_invalidate() 4965 cache_type, inv_info->granularity); in intel_iommu_sva_invalidate() 4973 if (inv_info->granularity == IOMMU_INV_GRANU_PASID && in intel_iommu_sva_invalidate() 4974 (inv_info->granu.pasid_info.flags & IOMMU_INV_PASID_FLAGS_PASID)) in intel_iommu_sva_invalidate() [all …]
|
/drivers/iommu/ |
D | iommu.c | 2116 struct iommu_cache_invalidate_info inv_info = { 0 }; in iommu_uapi_cache_invalidate() local 2130 if (copy_from_user(&inv_info, uinfo, minsz)) in iommu_uapi_cache_invalidate() 2134 if (inv_info.argsz < minsz) in iommu_uapi_cache_invalidate() 2138 if (inv_info.granularity == IOMMU_INV_GRANU_PASID && in iommu_uapi_cache_invalidate() 2139 inv_info.argsz < offsetofend(struct iommu_cache_invalidate_info, granu.pasid_info)) in iommu_uapi_cache_invalidate() 2142 if (inv_info.granularity == IOMMU_INV_GRANU_ADDR && in iommu_uapi_cache_invalidate() 2143 inv_info.argsz < offsetofend(struct iommu_cache_invalidate_info, granu.addr_info)) in iommu_uapi_cache_invalidate() 2152 if (copy_from_user((void *)&inv_info + minsz, uinfo + minsz, in iommu_uapi_cache_invalidate() 2153 min_t(u32, inv_info.argsz, sizeof(inv_info)) - minsz)) in iommu_uapi_cache_invalidate() 2157 ret = iommu_check_cache_invl_data(&inv_info); in iommu_uapi_cache_invalidate() [all …]
|