Lines Matching refs:rmrr

277 #define for_each_rmrr_units(rmrr) \  argument
278 list_for_each_entry(rmrr, &dmar_rmrr_units, list)
2382 struct dmar_rmrr_unit *rmrr; in si_domain_init() local
2416 for_each_rmrr_units(rmrr) { in si_domain_init()
2417 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in si_domain_init()
2419 unsigned long long start = rmrr->base_address; in si_domain_init()
2420 unsigned long long end = rmrr->end_address; in si_domain_init()
2491 struct dmar_rmrr_unit *rmrr; in device_has_rmrr() local
2496 for_each_rmrr_units(rmrr) { in device_has_rmrr()
2501 for_each_active_dev_scope(rmrr->devices, in device_has_rmrr()
2502 rmrr->devices_cnt, i, tmp) in device_has_rmrr()
3206 static int __init rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr) in rmrr_sanity_check() argument
3208 if (!IS_ALIGNED(rmrr->base_address, PAGE_SIZE) || in rmrr_sanity_check()
3209 !IS_ALIGNED(rmrr->end_address + 1, PAGE_SIZE) || in rmrr_sanity_check()
3210 rmrr->end_address <= rmrr->base_address || in rmrr_sanity_check()
3211 arch_rmrr_sanity_check(rmrr)) in rmrr_sanity_check()
3219 struct acpi_dmar_reserved_memory *rmrr; in dmar_parse_one_rmrr() local
3222 rmrr = (struct acpi_dmar_reserved_memory *)header; in dmar_parse_one_rmrr()
3223 if (rmrr_sanity_check(rmrr)) { in dmar_parse_one_rmrr()
3227 rmrr->base_address, rmrr->end_address, in dmar_parse_one_rmrr()
3240 rmrru->base_address = rmrr->base_address; in dmar_parse_one_rmrr()
3241 rmrru->end_address = rmrr->end_address; in dmar_parse_one_rmrr()
3243 rmrru->devices = dmar_alloc_dev_scope((void *)(rmrr + 1), in dmar_parse_one_rmrr()
3244 ((void *)rmrr) + rmrr->header.length, in dmar_parse_one_rmrr()
3613 struct acpi_dmar_reserved_memory *rmrr; in dmar_iommu_notify_scope_dev() local
3620 rmrr = container_of(rmrru->hdr, in dmar_iommu_notify_scope_dev()
3623 ret = dmar_insert_dev_scope(info, (void *)(rmrr + 1), in dmar_iommu_notify_scope_dev()
3624 ((void *)rmrr) + rmrr->header.length, in dmar_iommu_notify_scope_dev()
3625 rmrr->segment, rmrru->devices, in dmar_iommu_notify_scope_dev()
3630 dmar_remove_dev_scope(info, rmrr->segment, in dmar_iommu_notify_scope_dev()
4576 struct dmar_rmrr_unit *rmrr; in intel_iommu_get_resv_regions() local
4581 for_each_rmrr_units(rmrr) { in intel_iommu_get_resv_regions()
4582 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in intel_iommu_get_resv_regions()
4592 length = rmrr->end_address - rmrr->base_address + 1; in intel_iommu_get_resv_regions()
4597 resv = iommu_alloc_resv_region(rmrr->base_address, in intel_iommu_get_resv_regions()