Lines Matching refs:drhd

597 	struct dmar_drhd_unit *drhd;  in domain_update_iommu_coherency()  local
616 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency()
627 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local
632 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping()
647 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local
657 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage()
718 struct dmar_drhd_unit *drhd = NULL; in device_to_iommu() local
735 for_each_active_iommu(iommu, drhd) { in device_to_iommu()
736 if (pdev && segment != drhd->segment) in device_to_iommu()
739 for_each_active_dev_scope(drhd->devices, in device_to_iommu()
740 drhd->devices_cnt, i, tmp) { in device_to_iommu()
742 *bus = drhd->devices[i].bus; in device_to_iommu()
743 *devfn = drhd->devices[i].devfn; in device_to_iommu()
757 if (pdev && drhd->include_all) { in device_to_iommu()
1759 struct dmar_drhd_unit *drhd; in domain_exit() local
1781 for_each_active_iommu(iommu, drhd) in domain_exit()
2451 struct dmar_drhd_unit *drhd; in si_domain_init() local
2460 for_each_active_iommu(iommu, drhd) { in si_domain_init()
2693 struct dmar_drhd_unit *drhd; in iommu_prepare_static_identity_mapping() local
2709 for_each_active_iommu(iommu, drhd) in iommu_prepare_static_identity_mapping()
2710 for_each_active_dev_scope(drhd->devices, drhd->devices_cnt, i, dev) { in iommu_prepare_static_identity_mapping()
2769 struct dmar_drhd_unit *drhd; in init_dmars() local
2781 for_each_drhd_unit(drhd) { in init_dmars()
2814 for_each_active_iommu(iommu, drhd) { in init_dmars()
2833 for_each_active_iommu(iommu, drhd) in init_dmars()
2892 for_each_iommu(iommu, drhd) { in init_dmars()
2893 if (drhd->ignored) { in init_dmars()
2920 for_each_active_iommu(iommu, drhd) { in init_dmars()
3476 struct dmar_drhd_unit *drhd; in quirk_ioat_snb_local_iommu() local
3494 drhd = dmar_find_matched_drhd_unit(pdev); in quirk_ioat_snb_local_iommu()
3495 if (WARN_TAINT_ONCE(!drhd || drhd->reg_base_addr - vtbar != 0xa000, in quirk_ioat_snb_local_iommu()
3504 struct dmar_drhd_unit *drhd; in init_no_remapping_devices() local
3508 for_each_drhd_unit(drhd) { in init_no_remapping_devices()
3509 if (!drhd->include_all) { in init_no_remapping_devices()
3510 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3511 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3514 if (i == drhd->devices_cnt) in init_no_remapping_devices()
3515 drhd->ignored = 1; in init_no_remapping_devices()
3519 for_each_active_drhd_unit(drhd) { in init_no_remapping_devices()
3520 if (drhd->include_all) in init_no_remapping_devices()
3523 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3524 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3527 if (i < drhd->devices_cnt) in init_no_remapping_devices()
3535 drhd->ignored = 1; in init_no_remapping_devices()
3536 for_each_active_dev_scope(drhd->devices, in init_no_remapping_devices()
3537 drhd->devices_cnt, i, dev) in init_no_remapping_devices()
3546 struct dmar_drhd_unit *drhd; in init_iommu_hw() local
3549 for_each_active_iommu(iommu, drhd) in init_iommu_hw()
3553 for_each_iommu(iommu, drhd) { in init_iommu_hw()
3554 if (drhd->ignored) { in init_iommu_hw()
3580 struct dmar_drhd_unit *drhd; in iommu_flush_all() local
3583 for_each_active_iommu(iommu, drhd) { in iommu_flush_all()
3593 struct dmar_drhd_unit *drhd; in iommu_suspend() local
3597 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
3606 for_each_active_iommu(iommu, drhd) { in iommu_suspend()
3625 for_each_active_iommu(iommu, drhd) in iommu_suspend()
3633 struct dmar_drhd_unit *drhd; in iommu_resume() local
3645 for_each_active_iommu(iommu, drhd) { in iommu_resume()
3661 for_each_active_iommu(iommu, drhd) in iommu_resume()
4073 struct dmar_drhd_unit *drhd; in intel_iommu_memory_notifier() local
4096 for_each_active_iommu(iommu, drhd) in intel_iommu_memory_notifier()
4177 struct dmar_drhd_unit *drhd; in intel_iommu_init() local
4199 for_each_active_iommu(iommu, drhd) in intel_iommu_init()
4245 for_each_active_iommu(iommu, drhd) in intel_iommu_init()