Lines Matching refs:rmrr

277 #define for_each_rmrr_units(rmrr) \  argument
278 list_for_each_entry(rmrr, &dmar_rmrr_units, list)
2420 struct dmar_rmrr_unit *rmrr; in si_domain_init() local
2454 for_each_rmrr_units(rmrr) { in si_domain_init()
2455 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in si_domain_init()
2457 unsigned long long start = rmrr->base_address; in si_domain_init()
2458 unsigned long long end = rmrr->end_address; in si_domain_init()
2533 struct dmar_rmrr_unit *rmrr; in device_has_rmrr() local
2538 for_each_rmrr_units(rmrr) { in device_has_rmrr()
2543 for_each_active_dev_scope(rmrr->devices, in device_has_rmrr()
2544 rmrr->devices_cnt, i, tmp) in device_has_rmrr()
3248 static int __init rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr) in rmrr_sanity_check() argument
3250 if (!IS_ALIGNED(rmrr->base_address, PAGE_SIZE) || in rmrr_sanity_check()
3251 !IS_ALIGNED(rmrr->end_address + 1, PAGE_SIZE) || in rmrr_sanity_check()
3252 rmrr->end_address <= rmrr->base_address || in rmrr_sanity_check()
3253 arch_rmrr_sanity_check(rmrr)) in rmrr_sanity_check()
3261 struct acpi_dmar_reserved_memory *rmrr; in dmar_parse_one_rmrr() local
3264 rmrr = (struct acpi_dmar_reserved_memory *)header; in dmar_parse_one_rmrr()
3265 if (rmrr_sanity_check(rmrr)) { in dmar_parse_one_rmrr()
3269 rmrr->base_address, rmrr->end_address, in dmar_parse_one_rmrr()
3282 rmrru->base_address = rmrr->base_address; in dmar_parse_one_rmrr()
3283 rmrru->end_address = rmrr->end_address; in dmar_parse_one_rmrr()
3285 rmrru->devices = dmar_alloc_dev_scope((void *)(rmrr + 1), in dmar_parse_one_rmrr()
3286 ((void *)rmrr) + rmrr->header.length, in dmar_parse_one_rmrr()
3655 struct acpi_dmar_reserved_memory *rmrr; in dmar_iommu_notify_scope_dev() local
3662 rmrr = container_of(rmrru->hdr, in dmar_iommu_notify_scope_dev()
3665 ret = dmar_insert_dev_scope(info, (void *)(rmrr + 1), in dmar_iommu_notify_scope_dev()
3666 ((void *)rmrr) + rmrr->header.length, in dmar_iommu_notify_scope_dev()
3667 rmrr->segment, rmrru->devices, in dmar_iommu_notify_scope_dev()
3672 dmar_remove_dev_scope(info, rmrr->segment, in dmar_iommu_notify_scope_dev()
4558 struct dmar_rmrr_unit *rmrr; in intel_iommu_get_resv_regions() local
4563 for_each_rmrr_units(rmrr) { in intel_iommu_get_resv_regions()
4564 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in intel_iommu_get_resv_regions()
4574 length = rmrr->end_address - rmrr->base_address + 1; in intel_iommu_get_resv_regions()
4579 resv = iommu_alloc_resv_region(rmrr->base_address, in intel_iommu_get_resv_regions()