Lines Matching defs:region
381 * iommu_insert_resv_region - Insert a new region in the
383 * @new: new region to insert
480 struct iommu_resv_region *region, *next;
487 list_for_each_entry_safe(region, next, &group_resv_regions, list)
489 str += sprintf(str, "0x%016llx 0x%016llx %s\n", (long long int)region->start,
490 (long long int)(region->start + region->length - 1), iommu_group_resv_type_string[region->type]);
491 kfree(region);
2849 * generic_iommu_put_resv_regions - Reserved region driver helper
2851 * @list: reserved region list for device
2854 * for simple reservations. Memory allocated for each reserved region will be
2855 * freed. If an IOMMU driver allocates additional resources per region, it is
2868 struct iommu_resv_region *region;
2870 region = kzalloc(sizeof(*region), GFP_KERNEL);
2871 if (!region) {
2875 INIT_LIST_HEAD(®ion->list);
2876 region->start = start;
2877 region->length = length;
2878 region->prot = prot;
2879 region->type = type;
2880 return region;