/kernel/linux/linux-5.10/include/linux/ |
H A D | dmar.h | 43 struct list_head list; /* list of drhd units */ 49 u8 ignored:1; /* ignore drhd */ 73 #define for_each_drhd_unit(drhd) \ 74 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 77 #define for_each_active_drhd_unit(drhd) \ 78 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 80 if (drhd->ignored) {} else 82 #define for_each_active_iommu(i, drhd) \ 83 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 85 if (i=drhd [all...] |
H A D | intel-iommu.h | 613 struct dmar_drhd_unit *drhd; member
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | dmar.h | 39 struct list_head list; /* list of drhd units */ 46 u8 ignored:1; /* ignore drhd */ 70 #define for_each_drhd_unit(drhd) \ 71 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 74 #define for_each_active_drhd_unit(drhd) \ 75 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 77 if (drhd->ignored) {} else 79 #define for_each_active_iommu(i, drhd) \ 80 list_for_each_entry_rcu(drhd, &dmar_drhd_units, list, \ 82 if (i=drhd [all...] |
/kernel/linux/linux-6.6/drivers/iommu/intel/ |
H A D | dmar.c | 66 static int alloc_iommu(struct dmar_drhd_unit *drhd); 69 static void dmar_register_drhd_unit(struct dmar_drhd_unit *drhd) in dmar_register_drhd_unit() argument 75 if (drhd->include_all) in dmar_register_drhd_unit() 76 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 78 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 296 struct acpi_dmar_hardware_unit *drhd; in dmar_pci_bus_add_dev() local 302 drhd = container_of(dmaru->hdr, in dmar_pci_bus_add_dev() 304 ret = dmar_insert_dev_scope(info, (void *)(drhd + 1), in dmar_pci_bus_add_dev() 305 ((void *)drhd) + drhd in dmar_pci_bus_add_dev() 389 dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) dmar_find_dmaru() argument 409 struct acpi_dmar_hardware_unit *drhd; dmar_parse_one_drhd() local 492 struct dmar_drhd_unit *drhd; dmar_parse_one_rhsa() local 523 struct acpi_dmar_hardware_unit *drhd; dmar_table_print_dmar_entry() local 702 struct acpi_dmar_hardware_unit *drhd; dmar_find_matched_drhd_unit() local 731 struct acpi_dmar_hardware_unit *drhd; dmar_acpi_insert_dev_scope() local 882 struct acpi_dmar_hardware_unit *drhd; dmar_validate_one_drhd() local 966 map_iommu(struct intel_iommu *iommu, struct dmar_drhd_unit *drhd) map_iommu() argument 1038 alloc_iommu(struct dmar_drhd_unit *drhd) alloc_iommu() argument 2103 struct dmar_drhd_unit *drhd; enable_drhd_fault_handling() local [all...] |
H A D | debugfs.c | 116 struct dmar_drhd_unit *drhd; in iommu_regset_show() local 123 for_each_active_iommu(iommu, drhd) { in iommu_regset_show() 124 if (!drhd->reg_base_addr) { in iommu_regset_show() 131 iommu->name, drhd->reg_base_addr); in iommu_regset_show() 285 struct dmar_drhd_unit *drhd; in dmar_translation_struct_show() local 290 for_each_active_iommu(iommu, drhd) { in dmar_translation_struct_show() 425 struct dmar_drhd_unit *drhd; in invalidation_queue_show() local 432 for_each_active_iommu(iommu, drhd) { in invalidation_queue_show() 513 struct dmar_drhd_unit *drhd; in ir_translation_struct_show() local 519 for_each_active_iommu(iommu, drhd) { in ir_translation_struct_show() 562 latency_show_one(struct seq_file *m, struct intel_iommu *iommu, struct dmar_drhd_unit *drhd) latency_show_one() argument 580 struct dmar_drhd_unit *drhd; latency_show() local 600 struct dmar_drhd_unit *drhd; dmar_perf_latency_write() local [all...] |
H A D | irq_remapping.c | 225 struct dmar_drhd_unit *drhd = dmar_find_matched_drhd_unit(dev); in map_dev_to_ir() local 227 return drhd ? drhd->iommu->ir_domain : NULL; in map_dev_to_ir() 699 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local 702 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping() 715 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local 744 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping() 757 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() 769 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() 789 struct dmar_drhd_unit *drhd; in set_irq_posting_cap() local 815 struct dmar_drhd_unit *drhd; intel_enable_irq_remapping() local 844 ir_parse_one_hpet_scope(struct acpi_dmar_device_scope *scope, struct intel_iommu *iommu, struct acpi_dmar_hardware_unit *drhd) ir_parse_one_hpet_scope() argument 889 ir_parse_one_ioapic_scope(struct acpi_dmar_device_scope *scope, struct intel_iommu *iommu, struct acpi_dmar_hardware_unit *drhd) ir_parse_one_ioapic_scope() argument 938 struct acpi_dmar_hardware_unit *drhd; ir_parse_ioapic_hpet_scope() local 977 struct dmar_drhd_unit *drhd; parse_ioapics_under_ir() local 1028 struct dmar_drhd_unit *drhd; disable_irq_remapping() local 1050 struct dmar_drhd_unit *drhd; reenable_irq_remapping() local [all...] |
H A D | iommu.c | 463 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local 481 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency() 493 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local 502 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage() 661 struct dmar_drhd_unit *drhd; in quirk_ioat_snb_local_iommu() local 679 drhd = dmar_find_matched_drhd_unit(pdev); in quirk_ioat_snb_local_iommu() 680 if (!drhd || drhd->reg_base_addr - vtbar != 0xa000) { in quirk_ioat_snb_local_iommu() 691 if (!iommu || iommu->drhd->ignored) in iommu_is_dummy() 708 struct dmar_drhd_unit *drhd in device_to_iommu() local 2759 struct dmar_drhd_unit *drhd; init_dmars() local 2916 struct dmar_drhd_unit *drhd; init_no_remapping_devices() local 2953 struct dmar_drhd_unit *drhd; init_iommu_hw() local 2987 struct dmar_drhd_unit *drhd; iommu_flush_all() local 3000 struct dmar_drhd_unit *drhd; iommu_suspend() local 3027 struct dmar_drhd_unit *drhd; iommu_resume() local 3561 struct dmar_drhd_unit *drhd; intel_iommu_memory_notifier() local 3589 struct dmar_drhd_unit *drhd; intel_disable_iommus() local 3597 struct dmar_drhd_unit *drhd; intel_iommu_shutdown() local 3730 struct dmar_drhd_unit *drhd; probe_acpi_namespace_devices() local 3780 struct dmar_drhd_unit *drhd; intel_iommu_init() local [all...] |
H A D | iommu.h | 697 struct dmar_drhd_unit *drhd; member
|
/kernel/linux/linux-5.10/drivers/iommu/intel/ |
H A D | dmar.c | 64 static int alloc_iommu(struct dmar_drhd_unit *drhd); 69 static void dmar_register_drhd_unit(struct dmar_drhd_unit *drhd) in dmar_register_drhd_unit() argument 75 if (drhd->include_all) in dmar_register_drhd_unit() 76 list_add_tail_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 78 list_add_rcu(&drhd->list, &dmar_drhd_units); in dmar_register_drhd_unit() 299 struct acpi_dmar_hardware_unit *drhd; in dmar_pci_bus_add_dev() local 305 drhd = container_of(dmaru->hdr, in dmar_pci_bus_add_dev() 307 ret = dmar_insert_dev_scope(info, (void *)(drhd + 1), in dmar_pci_bus_add_dev() 308 ((void *)drhd) + drhd in dmar_pci_bus_add_dev() 392 dmar_find_dmaru(struct acpi_dmar_hardware_unit *drhd) dmar_find_dmaru() argument 412 struct acpi_dmar_hardware_unit *drhd; dmar_parse_one_drhd() local 493 struct dmar_drhd_unit *drhd; dmar_parse_one_rhsa() local 524 struct acpi_dmar_hardware_unit *drhd; dmar_table_print_dmar_entry() local 697 struct acpi_dmar_hardware_unit *drhd; dmar_find_matched_drhd_unit() local 726 struct acpi_dmar_hardware_unit *drhd; dmar_acpi_insert_dev_scope() local 876 struct acpi_dmar_hardware_unit *drhd; dmar_validate_one_drhd() local 1047 alloc_iommu(struct dmar_drhd_unit *drhd) alloc_iommu() argument 1969 struct dmar_drhd_unit *drhd; enable_drhd_fault_handling() local [all...] |
H A D | irq_remapping.c | 238 struct dmar_drhd_unit *drhd = dmar_find_matched_drhd_unit(dev); in map_dev_to_ir() local 240 return drhd ? drhd->iommu->ir_msi_domain : NULL; in map_dev_to_ir() 719 struct dmar_drhd_unit *drhd; in intel_cleanup_irq_remapping() local 722 for_each_iommu(iommu, drhd) { in intel_cleanup_irq_remapping() 735 struct dmar_drhd_unit *drhd; in intel_prepare_irq_remapping() local 761 for_each_iommu(iommu, drhd) in intel_prepare_irq_remapping() 774 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() 786 for_each_iommu(iommu, drhd) { in intel_prepare_irq_remapping() 806 struct dmar_drhd_unit *drhd; in set_irq_posting_cap() local 832 struct dmar_drhd_unit *drhd; intel_enable_irq_remapping() local 861 ir_parse_one_hpet_scope(struct acpi_dmar_device_scope *scope, struct intel_iommu *iommu, struct acpi_dmar_hardware_unit *drhd) ir_parse_one_hpet_scope() argument 906 ir_parse_one_ioapic_scope(struct acpi_dmar_device_scope *scope, struct intel_iommu *iommu, struct acpi_dmar_hardware_unit *drhd) ir_parse_one_ioapic_scope() argument 955 struct acpi_dmar_hardware_unit *drhd; ir_parse_ioapic_hpet_scope() local 994 struct dmar_drhd_unit *drhd; parse_ioapics_under_ir() local 1045 struct dmar_drhd_unit *drhd; disable_irq_remapping() local 1067 struct dmar_drhd_unit *drhd; reenable_irq_remapping() local [all...] |
H A D | debugfs.c | 112 struct dmar_drhd_unit *drhd; in iommu_regset_show() local 119 for_each_active_iommu(iommu, drhd) { in iommu_regset_show() 120 if (!drhd->reg_base_addr) { in iommu_regset_show() 127 iommu->name, drhd->reg_base_addr); in iommu_regset_show() 283 struct dmar_drhd_unit *drhd; in dmar_translation_struct_show() local 288 for_each_active_iommu(iommu, drhd) { in dmar_translation_struct_show() 404 struct dmar_drhd_unit *drhd; in invalidation_queue_show() local 411 for_each_active_iommu(iommu, drhd) { in invalidation_queue_show() 492 struct dmar_drhd_unit *drhd; in ir_translation_struct_show() local 498 for_each_active_iommu(iommu, drhd) { in ir_translation_struct_show() [all...] |
H A D | iommu.c | 644 struct dmar_drhd_unit *drhd; in domain_update_iommu_coherency() local 663 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_coherency() 674 struct dmar_drhd_unit *drhd; in domain_update_iommu_snooping() local 679 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_snooping() 702 struct dmar_drhd_unit *drhd; in domain_update_iommu_superpage() local 712 for_each_active_iommu(iommu, drhd) { in domain_update_iommu_superpage() 853 struct dmar_drhd_unit *drhd; in quirk_ioat_snb_local_iommu() local 871 drhd = dmar_find_matched_drhd_unit(pdev); in quirk_ioat_snb_local_iommu() 872 if (!drhd || drhd in quirk_ioat_snb_local_iommu() 900 struct dmar_drhd_unit *drhd = NULL; device_to_iommu() local 1918 struct dmar_drhd_unit *drhd; first_level_by_default() local 3325 struct dmar_drhd_unit *drhd; init_dmars() local 4174 struct dmar_drhd_unit *drhd; init_no_remapping_devices() local 4211 struct dmar_drhd_unit *drhd; init_iommu_hw() local 4240 struct dmar_drhd_unit *drhd; iommu_flush_all() local 4253 struct dmar_drhd_unit *drhd; iommu_suspend() local 4293 struct dmar_drhd_unit *drhd; iommu_resume() local 4723 struct dmar_drhd_unit *drhd; intel_iommu_memory_notifier() local 4781 struct dmar_drhd_unit *drhd; intel_disable_iommus() local 4789 struct dmar_drhd_unit *drhd; intel_iommu_shutdown() local 4927 struct dmar_drhd_unit *drhd; probe_acpi_namespace_devices() local 4971 struct dmar_drhd_unit *drhd; intel_iommu_init() local 5753 struct dmar_drhd_unit *drhd; scalable_mode_support() local 5771 struct dmar_drhd_unit *drhd; iommu_pasid_support() local 5789 struct dmar_drhd_unit *drhd; nested_mode_support() local [all...] |