Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Ddmar.h83 #define for_each_drhd_unit(drhd) \ argument
84 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list)
86 #define for_each_active_drhd_unit(drhd) \ argument
87 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
88 if (drhd->ignored) {} else
90 #define for_each_active_iommu(i, drhd) \ argument
91 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
92 if (i=drhd->iommu, drhd->ignored) {} else
94 #define for_each_iommu(i, drhd) \ argument
95 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
[all …]
/linux-4.1.27/drivers/iommu/
Ddmar.c75 static int alloc_iommu(struct dmar_drhd_unit *drhd);
78 static void dmar_register_drhd_unit(struct dmar_drhd_unit *drhd) in dmar_register_drhd_unit() argument
84 if (drhd->include_all) in dmar_register_drhd_unit()
85 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
87 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
289 struct acpi_dmar_hardware_unit *drhd; in dmar_pci_bus_add_dev() local
295 drhd = container_of(dmaru->hdr, in dmar_pci_bus_add_dev()
297 ret = dmar_insert_dev_scope(info, (void *)(drhd + 1), in dmar_pci_bus_add_dev()
298 ((void *)drhd) + drhd->header.length, in dmar_pci_bus_add_dev()
357 dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) in dmar_find_dmaru() argument
[all …]
Dintel_irq_remapping.c226 struct dmar_drhd_unit *drhd; in map_dev_to_ir() local
228 drhd = dmar_find_matched_drhd_unit(dev); in map_dev_to_ir()
229 if (!drhd) in map_dev_to_ir()
232 return drhd->iommu; in map_dev_to_ir()
572 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local
575 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping()
588 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local
614 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping()
619 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping()
632 struct dmar_drhd_unit *drhd; in intel_enable_irq_remapping() local
[all …]
Dintel-iommu.c597 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()
[all …]