Lines Matching refs:drhd
756 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local
775 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency()
786 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local
791 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping()
806 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local
816 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage()
877 struct dmar_drhd_unit *drhd = NULL; in device_to_iommu() local
894 for_each_active_iommu(iommu, drhd) { in device_to_iommu()
895 if (pdev && segment != drhd->segment) in device_to_iommu()
898 for_each_active_dev_scope(drhd->devices, in device_to_iommu()
899 drhd->devices_cnt, i, tmp) { in device_to_iommu()
901 *bus = drhd->devices[i].bus; in device_to_iommu()
902 *devfn = drhd->devices[i].devfn; in device_to_iommu()
916 if (pdev && drhd->include_all) { in device_to_iommu()
2819 struct dmar_drhd_unit *drhd; in iommu_prepare_static_identity_mapping() local
2831 for_each_active_iommu(iommu, drhd) in iommu_prepare_static_identity_mapping()
2832 for_each_active_dev_scope(drhd->devices, drhd->devices_cnt, i, dev) { in iommu_prepare_static_identity_mapping()
3075 struct dmar_drhd_unit *drhd; in init_dmars() local
3088 for_each_drhd_unit(drhd) { in init_dmars()
3120 for_each_active_iommu(iommu, drhd) { in init_dmars()
3257 for_each_iommu(iommu, drhd) { in init_dmars()
3258 if (drhd->ignored) { in init_dmars()
3290 for_each_active_iommu(iommu, drhd) { in init_dmars()
3856 struct dmar_drhd_unit *drhd; in quirk_ioat_snb_local_iommu() local
3874 drhd = dmar_find_matched_drhd_unit(pdev); in quirk_ioat_snb_local_iommu()
3875 if (WARN_TAINT_ONCE(!drhd || drhd->reg_base_addr - vtbar != 0xa000, in quirk_ioat_snb_local_iommu()
3884 struct dmar_drhd_unit *drhd; in init_no_remapping_devices() local
3888 for_each_drhd_unit(drhd) { in init_no_remapping_devices()
3889 if (!drhd->include_all) { in init_no_remapping_devices()
3890 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3891 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3894 if (i == drhd->devices_cnt) in init_no_remapping_devices()
3895 drhd->ignored = 1; in init_no_remapping_devices()
3899 for_each_active_drhd_unit(drhd) { in init_no_remapping_devices()
3900 if (drhd->include_all) in init_no_remapping_devices()
3903 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3904 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3907 if (i < drhd->devices_cnt) in init_no_remapping_devices()
3915 drhd->ignored = 1; in init_no_remapping_devices()
3916 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3917 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3926 struct dmar_drhd_unit *drhd; in init_iommu_hw() local
3929 for_each_active_iommu(iommu, drhd) in init_iommu_hw()
3933 for_each_iommu(iommu, drhd) { in init_iommu_hw()
3934 if (drhd->ignored) { in init_iommu_hw()
3960 struct dmar_drhd_unit *drhd; in iommu_flush_all() local
3963 for_each_active_iommu(iommu, drhd) { in iommu_flush_all()
3973 struct dmar_drhd_unit *drhd; in iommu_suspend() local
3977 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
3986 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
4005 for_each_active_iommu(iommu, drhd) in iommu_suspend()
4013 struct dmar_drhd_unit *drhd; in iommu_resume() local
4025 for_each_active_iommu(iommu, drhd) { in iommu_resume()
4041 for_each_active_iommu(iommu, drhd) in iommu_resume()
4457 struct dmar_drhd_unit *drhd; in intel_iommu_memory_notifier() local
4480 for_each_active_iommu(iommu, drhd) in intel_iommu_memory_notifier()
4582 struct dmar_drhd_unit *drhd; in intel_iommu_init() local
4642 for_each_active_iommu(iommu, drhd) in intel_iommu_init()