Lines Matching refs:rmrru
4316 struct dmar_rmrr_unit *rmrru; in dmar_parse_one_rmrr() local
4318 rmrru = kzalloc(sizeof(*rmrru), GFP_KERNEL); in dmar_parse_one_rmrr()
4319 if (!rmrru) in dmar_parse_one_rmrr()
4322 rmrru->hdr = header; in dmar_parse_one_rmrr()
4324 rmrru->base_address = rmrr->base_address; in dmar_parse_one_rmrr()
4325 rmrru->end_address = rmrr->end_address; in dmar_parse_one_rmrr()
4327 rmrru->devices = dmar_alloc_dev_scope((void *)(rmrr + 1), in dmar_parse_one_rmrr()
4329 &rmrru->devices_cnt); in dmar_parse_one_rmrr()
4330 if (rmrru->devices_cnt && rmrru->devices == NULL) in dmar_parse_one_rmrr()
4333 list_add(&rmrru->list, &dmar_rmrr_units); in dmar_parse_one_rmrr()
4337 kfree(rmrru); in dmar_parse_one_rmrr()
4547 struct dmar_rmrr_unit *rmrru, *rmrr_n; in intel_iommu_free_dmars() local
4550 list_for_each_entry_safe(rmrru, rmrr_n, &dmar_rmrr_units, list) { in intel_iommu_free_dmars()
4551 list_del(&rmrru->list); in intel_iommu_free_dmars()
4552 dmar_free_dev_scope(&rmrru->devices, &rmrru->devices_cnt); in intel_iommu_free_dmars()
4553 kfree(rmrru); in intel_iommu_free_dmars()
4609 struct dmar_rmrr_unit *rmrru; in dmar_iommu_notify_scope_dev() local
4617 list_for_each_entry(rmrru, &dmar_rmrr_units, list) { in dmar_iommu_notify_scope_dev()
4618 rmrr = container_of(rmrru->hdr, in dmar_iommu_notify_scope_dev()
4623 rmrr->segment, rmrru->devices, in dmar_iommu_notify_scope_dev()
4624 rmrru->devices_cnt); in dmar_iommu_notify_scope_dev()
4629 rmrru->devices, rmrru->devices_cnt); in dmar_iommu_notify_scope_dev()