Lines Matching refs:rmrr

323 #define for_each_rmrr_units(rmrr) \  argument
324 list_for_each_entry(rmrr, &dmar_rmrr_units, list)
2839 struct dmar_rmrr_unit *rmrr; in si_domain_init() local
2873 for_each_rmrr_units(rmrr) { in si_domain_init()
2874 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in si_domain_init()
2876 unsigned long long start = rmrr->base_address; in si_domain_init()
2877 unsigned long long end = rmrr->end_address; in si_domain_init()
2913 struct dmar_rmrr_unit *rmrr; in device_has_rmrr() local
2918 for_each_rmrr_units(rmrr) { in device_has_rmrr()
2923 for_each_active_dev_scope(rmrr->devices, in device_has_rmrr()
2924 rmrr->devices_cnt, i, tmp) in device_has_rmrr()
4339 static int rmrr_sanity_check(struct acpi_dmar_reserved_memory *rmrr) in rmrr_sanity_check() argument
4341 if (!IS_ALIGNED(rmrr->base_address, PAGE_SIZE) || in rmrr_sanity_check()
4342 !IS_ALIGNED(rmrr->end_address + 1, PAGE_SIZE) || in rmrr_sanity_check()
4343 rmrr->end_address <= rmrr->base_address || in rmrr_sanity_check()
4344 arch_rmrr_sanity_check(rmrr)) in rmrr_sanity_check()
4352 struct acpi_dmar_reserved_memory *rmrr; in dmar_parse_one_rmrr() local
4355 rmrr = (struct acpi_dmar_reserved_memory *)header; in dmar_parse_one_rmrr()
4356 if (rmrr_sanity_check(rmrr)) { in dmar_parse_one_rmrr()
4360 rmrr->base_address, rmrr->end_address, in dmar_parse_one_rmrr()
4373 rmrru->base_address = rmrr->base_address; in dmar_parse_one_rmrr()
4374 rmrru->end_address = rmrr->end_address; in dmar_parse_one_rmrr()
4376 rmrru->devices = dmar_alloc_dev_scope((void *)(rmrr + 1), in dmar_parse_one_rmrr()
4377 ((void *)rmrr) + rmrr->header.length, in dmar_parse_one_rmrr()
4657 struct acpi_dmar_reserved_memory *rmrr; in dmar_iommu_notify_scope_dev() local
4663 rmrr = container_of(rmrru->hdr, in dmar_iommu_notify_scope_dev()
4666 ret = dmar_insert_dev_scope(info, (void *)(rmrr + 1), in dmar_iommu_notify_scope_dev()
4667 ((void *)rmrr) + rmrr->header.length, in dmar_iommu_notify_scope_dev()
4668 rmrr->segment, rmrru->devices, in dmar_iommu_notify_scope_dev()
4673 dmar_remove_dev_scope(info, rmrr->segment, in dmar_iommu_notify_scope_dev()
5860 struct dmar_rmrr_unit *rmrr; in intel_iommu_get_resv_regions() local
5865 for_each_rmrr_units(rmrr) { in intel_iommu_get_resv_regions()
5866 for_each_active_dev_scope(rmrr->devices, rmrr->devices_cnt, in intel_iommu_get_resv_regions()
5876 length = rmrr->end_address - rmrr->base_address + 1; in intel_iommu_get_resv_regions()
5881 resv = iommu_alloc_resv_region(rmrr->base_address, in intel_iommu_get_resv_regions()