Home
last modified time | relevance | path

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

/Linux-v5.4/include/linux/
Ddmar.h72 #define for_each_drhd_unit(drhd) \ argument
73 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list)
75 #define for_each_active_drhd_unit(drhd) \ argument
76 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
77 if (drhd->ignored) {} else
79 #define for_each_active_iommu(i, drhd) \ argument
80 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
81 if (i=drhd->iommu, drhd->ignored) {} else
83 #define for_each_iommu(i, drhd) \ argument
84 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list) \
[all …]
/Linux-v5.4/drivers/iommu/
Ddmar.c63 static int alloc_iommu(struct dmar_drhd_unit *drhd);
68 static void dmar_register_drhd_unit(struct dmar_drhd_unit *drhd) in dmar_register_drhd_unit() argument
74 if (drhd->include_all) in dmar_register_drhd_unit()
75 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
77 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit()
291 struct acpi_dmar_hardware_unit *drhd; in dmar_pci_bus_add_dev() local
297 drhd = container_of(dmaru->hdr, in dmar_pci_bus_add_dev()
299 ret = dmar_insert_dev_scope(info, (void *)(drhd + 1), in dmar_pci_bus_add_dev()
300 ((void *)drhd) + drhd->header.length, in dmar_pci_bus_add_dev()
362 dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) in dmar_find_dmaru() argument
[all …]
Dintel_irq_remapping.c228 struct dmar_drhd_unit *drhd; in map_dev_to_ir() local
230 drhd = dmar_find_matched_drhd_unit(dev); in map_dev_to_ir()
231 if (!drhd) in map_dev_to_ir()
234 return drhd->iommu; in map_dev_to_ir()
692 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local
695 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping()
708 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local
734 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping()
747 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping()
759 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping()
[all …]
Dintel-iommu-debugfs.c107 struct dmar_drhd_unit *drhd; in iommu_regset_show() local
114 for_each_active_iommu(iommu, drhd) { in iommu_regset_show()
115 if (!drhd->reg_base_addr) { in iommu_regset_show()
122 iommu->name, drhd->reg_base_addr); in iommu_regset_show()
272 struct dmar_drhd_unit *drhd; in dmar_translation_struct_show() local
276 for_each_active_iommu(iommu, drhd) { in dmar_translation_struct_show()
343 struct dmar_drhd_unit *drhd; in ir_translation_struct_show() local
348 for_each_active_iommu(iommu, drhd) { in ir_translation_struct_show()
367 for_each_active_iommu(iommu, drhd) { in ir_translation_struct_show()
Dintel-iommu.c616 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local
635 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency()
646 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local
651 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping()
666 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local
676 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage()
764 struct dmar_drhd_unit *drhd = NULL; in device_to_iommu() local
794 for_each_active_iommu(iommu, drhd) { in device_to_iommu()
795 if (pdev && segment != drhd->segment) in device_to_iommu()
798 for_each_active_dev_scope(drhd->devices, in device_to_iommu()
[all …]