Home
last modified time | relevance | path

Searched refs:dev_pasid (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/iommu/intel/
Dsvm.c159 struct dev_pasid_info *dev_pasid; in intel_mm_release() local
176 list_for_each_entry(dev_pasid, &domain->dev_pasids, link_domain) { in intel_mm_release()
177 info = dev_iommu_priv_get(dev_pasid->dev); in intel_mm_release()
178 intel_pasid_tear_down_entry(info->iommu, dev_pasid->dev, in intel_mm_release()
179 dev_pasid->pasid, true); in intel_mm_release()
206 struct dev_pasid_info *dev_pasid; in intel_svm_set_dev_pasid() local
211 dev_pasid = kzalloc(sizeof(*dev_pasid), GFP_KERNEL); in intel_svm_set_dev_pasid()
212 if (!dev_pasid) in intel_svm_set_dev_pasid()
215 dev_pasid->dev = dev; in intel_svm_set_dev_pasid()
216 dev_pasid->pasid = pasid; in intel_svm_set_dev_pasid()
[all …]
Ddebugfs.c475 struct dev_pasid_info *dev_pasid = (struct dev_pasid_info *)m->private; in pasid_domain_translation_struct_show() local
476 struct device_domain_info *info = dev_iommu_priv_get(dev_pasid->dev); in pasid_domain_translation_struct_show()
478 return domain_translation_struct_show(m, info, dev_pasid->pasid); in pasid_domain_translation_struct_show()
794 void intel_iommu_debugfs_create_dev_pasid(struct dev_pasid_info *dev_pasid) in intel_iommu_debugfs_create_dev_pasid() argument
796 struct device_domain_info *info = dev_iommu_priv_get(dev_pasid->dev); in intel_iommu_debugfs_create_dev_pasid()
799 sprintf(dir_name, "%x", dev_pasid->pasid); in intel_iommu_debugfs_create_dev_pasid()
800 dev_pasid->debugfs_dentry = debugfs_create_dir(dir_name, info->debugfs_dentry); in intel_iommu_debugfs_create_dev_pasid()
802 debugfs_create_file("domain_translation_struct", 0444, dev_pasid->debugfs_dentry, in intel_iommu_debugfs_create_dev_pasid()
803 dev_pasid, &pasid_domain_translation_struct_fops); in intel_iommu_debugfs_create_dev_pasid()
807 void intel_iommu_debugfs_remove_dev_pasid(struct dev_pasid_info *dev_pasid) in intel_iommu_debugfs_remove_dev_pasid() argument
[all …]
Diommu.c4259 struct dev_pasid_info *curr, *dev_pasid = NULL; in intel_iommu_remove_dev_pasid() local
4274 dev_pasid = curr; in intel_iommu_remove_dev_pasid()
4278 WARN_ON_ONCE(!dev_pasid); in intel_iommu_remove_dev_pasid()
4283 intel_iommu_debugfs_remove_dev_pasid(dev_pasid); in intel_iommu_remove_dev_pasid()
4284 kfree(dev_pasid); in intel_iommu_remove_dev_pasid()
4295 struct dev_pasid_info *dev_pasid; in intel_iommu_set_dev_pasid() local
4312 dev_pasid = kzalloc(sizeof(*dev_pasid), GFP_KERNEL); in intel_iommu_set_dev_pasid()
4313 if (!dev_pasid) in intel_iommu_set_dev_pasid()
4333 dev_pasid->dev = dev; in intel_iommu_set_dev_pasid()
4334 dev_pasid->pasid = pasid; in intel_iommu_set_dev_pasid()
[all …]
Diommu.h1304 void intel_iommu_debugfs_create_dev_pasid(struct dev_pasid_info *dev_pasid);
1305 void intel_iommu_debugfs_remove_dev_pasid(struct dev_pasid_info *dev_pasid);
1310 static inline void intel_iommu_debugfs_create_dev_pasid(struct dev_pasid_info *dev_pasid) {} in intel_iommu_debugfs_create_dev_pasid() argument
1311 static inline void intel_iommu_debugfs_remove_dev_pasid(struct dev_pasid_info *dev_pasid) {} in intel_iommu_debugfs_remove_dev_pasid() argument