Searched refs:drhd (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/include/linux/ |
D | dmar.h | 83 #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.4.14/drivers/iommu/ |
D | dmar.c | 75 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() 358 dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) in dmar_find_dmaru() argument [all …]
|
D | intel_irq_remapping.c | 225 struct dmar_drhd_unit *drhd; in map_dev_to_ir() local 227 drhd = dmar_find_matched_drhd_unit(dev); in map_dev_to_ir() 228 if (!drhd) in map_dev_to_ir() 231 return drhd->iommu; in map_dev_to_ir() 657 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local 660 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping() 673 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local 699 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping() 712 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() 724 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() [all …]
|
D | intel-iommu.c | 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() [all …]
|