Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/iommu/
Ddmar.c74 static int alloc_iommu(struct dmar_drhd_unit *drhd);
79 static void dmar_register_drhd_unit(struct dmar_drhd_unit *drhd) in dmar_register_drhd_unit() argument
85 if (drhd->include_all) in dmar_register_drhd_unit()
86 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
88 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
302 struct acpi_dmar_hardware_unit *drhd; in dmar_pci_bus_add_dev() local
308 drhd = container_of(dmaru->hdr, in dmar_pci_bus_add_dev()
310 ret = dmar_insert_dev_scope(info, (void *)(drhd + 1), in dmar_pci_bus_add_dev()
311 ((void *)drhd) + drhd->header.length, in dmar_pci_bus_add_dev()
373 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()
665 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local
668 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping()
681 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local
707 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping()
720 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping()
732 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping()
[all …]
Dintel-iommu.c711 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local
730 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency()
741 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local
746 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping()
761 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local
771 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage()
832 struct dmar_drhd_unit *drhd = NULL; in device_to_iommu() local
862 for_each_active_iommu(iommu, drhd) { in device_to_iommu()
863 if (pdev && segment != drhd->segment) in device_to_iommu()
866 for_each_active_dev_scope(drhd->devices, in device_to_iommu()
[all …]