Lines Matching refs:drhd
644 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local
663 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency()
674 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local
679 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping()
702 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local
712 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage()
853 struct dmar_drhd_unit *drhd; in quirk_ioat_snb_local_iommu() local
871 drhd = dmar_find_matched_drhd_unit(pdev); in quirk_ioat_snb_local_iommu()
872 if (!drhd || drhd->reg_base_addr - vtbar != 0xa000) { in quirk_ioat_snb_local_iommu()
883 if (!iommu || iommu->drhd->ignored) in iommu_is_dummy()
900 struct dmar_drhd_unit *drhd = NULL; in device_to_iommu() local
924 for_each_iommu(iommu, drhd) { in device_to_iommu()
925 if (pdev && segment != drhd->segment) in device_to_iommu()
928 for_each_active_dev_scope(drhd->devices, in device_to_iommu()
929 drhd->devices_cnt, i, tmp) { in device_to_iommu()
939 *bus = drhd->devices[i].bus; in device_to_iommu()
940 *devfn = drhd->devices[i].devfn; in device_to_iommu()
949 if (pdev && drhd->include_all) { in device_to_iommu()
1785 if (iommu_skip_te_disable && iommu->drhd->gfx_dedicated && in iommu_disable_translation()
1918 struct dmar_drhd_unit *drhd; in first_level_by_default() local
1928 for_each_active_iommu(iommu, drhd) { in first_level_by_default()
3325 struct dmar_drhd_unit *drhd; in init_dmars() local
3335 for_each_drhd_unit(drhd) { in init_dmars()
3360 for_each_iommu(iommu, drhd) { in init_dmars()
3361 if (drhd->ignored) { in init_dmars()
3443 for_each_active_iommu(iommu, drhd) { in init_dmars()
3471 for_each_iommu(iommu, drhd) { in init_dmars()
3472 if (drhd->ignored) { in init_dmars()
3505 for_each_active_iommu(iommu, drhd) { in init_dmars()
4174 struct dmar_drhd_unit *drhd; in init_no_remapping_devices() local
4178 for_each_drhd_unit(drhd) { in init_no_remapping_devices()
4179 if (!drhd->include_all) { in init_no_remapping_devices()
4180 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
4181 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
4184 if (i == drhd->devices_cnt) in init_no_remapping_devices()
4185 drhd->ignored = 1; in init_no_remapping_devices()
4189 for_each_active_drhd_unit(drhd) { in init_no_remapping_devices()
4190 if (drhd->include_all) in init_no_remapping_devices()
4193 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
4194 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
4197 if (i < drhd->devices_cnt) in init_no_remapping_devices()
4202 drhd->gfx_dedicated = 1; in init_no_remapping_devices()
4204 drhd->ignored = 1; in init_no_remapping_devices()
4211 struct dmar_drhd_unit *drhd; in init_iommu_hw() local
4214 for_each_active_iommu(iommu, drhd) in init_iommu_hw()
4218 for_each_iommu(iommu, drhd) { in init_iommu_hw()
4219 if (drhd->ignored) { in init_iommu_hw()
4240 struct dmar_drhd_unit *drhd; in iommu_flush_all() local
4243 for_each_active_iommu(iommu, drhd) { in iommu_flush_all()
4253 struct dmar_drhd_unit *drhd; in iommu_suspend() local
4257 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
4266 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
4285 for_each_active_iommu(iommu, drhd) in iommu_suspend()
4293 struct dmar_drhd_unit *drhd; in iommu_resume() local
4305 for_each_active_iommu(iommu, drhd) { in iommu_resume()
4321 for_each_active_iommu(iommu, drhd) in iommu_resume()
4723 struct dmar_drhd_unit *drhd; in intel_iommu_memory_notifier() local
4731 for_each_active_iommu(iommu, drhd) in intel_iommu_memory_notifier()
4781 struct dmar_drhd_unit *drhd; in intel_disable_iommus() local
4783 for_each_iommu(iommu, drhd) in intel_disable_iommus()
4789 struct dmar_drhd_unit *drhd; in intel_iommu_shutdown() local
4798 for_each_iommu(iommu, drhd) in intel_iommu_shutdown()
4927 struct dmar_drhd_unit *drhd; in probe_acpi_namespace_devices() local
4933 for_each_active_iommu(iommu, drhd) { in probe_acpi_namespace_devices()
4934 for_each_active_dev_scope(drhd->devices, in probe_acpi_namespace_devices()
4935 drhd->devices_cnt, i, dev) { in probe_acpi_namespace_devices()
4971 struct dmar_drhd_unit *drhd; in intel_iommu_init() local
5023 for_each_iommu(iommu, drhd) in intel_iommu_init()
5065 for_each_active_iommu(iommu, drhd) { in intel_iommu_init()
5085 for_each_iommu(iommu, drhd) { in intel_iommu_init()
5086 if (!drhd->ignored && !translation_pre_enabled(iommu)) in intel_iommu_init()
5753 struct dmar_drhd_unit *drhd; in scalable_mode_support() local
5758 for_each_active_iommu(iommu, drhd) { in scalable_mode_support()
5771 struct dmar_drhd_unit *drhd; in iommu_pasid_support() local
5776 for_each_active_iommu(iommu, drhd) { in iommu_pasid_support()
5789 struct dmar_drhd_unit *drhd; in nested_mode_support() local
5794 for_each_active_iommu(iommu, drhd) { in nested_mode_support()