Lines Matching refs:range
65 static void pgmap_array_delete(struct range *range) in pgmap_array_delete() argument
67 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete()
74 struct range *range = &pgmap->ranges[range_id]; in pfn_first() local
75 unsigned long pfn = PHYS_PFN(range->start); in pfn_first()
87 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() local
89 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid()
90 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid()
99 const struct range *range = &pgmap->ranges[range_id]; in pfn_end() local
101 return (range->start + range_len(range)) >> PAGE_SHIFT; in pfn_end()
112 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range() local
120 remove_pfn_range_from_zone(page_zone(first_page), PHYS_PFN(range->start), in pageunmap_range()
121 PHYS_PFN(range_len(range))); in pageunmap_range()
123 __remove_pages(PHYS_PFN(range->start), in pageunmap_range()
124 PHYS_PFN(range_len(range)), NULL); in pageunmap_range()
126 arch_remove_memory(range->start, range_len(range), in pageunmap_range()
128 kasan_remove_zero_shadow(__va(range->start), range_len(range)); in pageunmap_range()
132 untrack_pfn(NULL, PHYS_PFN(range->start), range_len(range), true); in pageunmap_range()
133 pgmap_array_delete(range); in pageunmap_range()
173 struct range *range = &pgmap->ranges[range_id]; in pagemap_range() local
181 conflict_pgmap = get_dev_pagemap(PHYS_PFN(range->start), NULL); in pagemap_range()
188 conflict_pgmap = get_dev_pagemap(PHYS_PFN(range->end), NULL); in pagemap_range()
195 is_ram = region_intersects(range->start, range_len(range), in pagemap_range()
201 range->start, range->end); in pagemap_range()
205 error = xa_err(xa_store_range(&pgmap_array, PHYS_PFN(range->start), in pagemap_range()
206 PHYS_PFN(range->end), pgmap, GFP_KERNEL)); in pagemap_range()
213 error = track_pfn_remap(NULL, ¶ms->pgprot, PHYS_PFN(range->start), 0, in pagemap_range()
214 range_len(range)); in pagemap_range()
218 if (!mhp_range_allowed(range->start, range_len(range), !is_private)) { in pagemap_range()
237 error = add_pages(nid, PHYS_PFN(range->start), in pagemap_range()
238 PHYS_PFN(range_len(range)), params); in pagemap_range()
240 error = kasan_add_zero_shadow(__va(range->start), range_len(range)); in pagemap_range()
246 error = arch_add_memory(nid, range->start, range_len(range), in pagemap_range()
254 move_pfn_range_to_zone(zone, PHYS_PFN(range->start), in pagemap_range()
255 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range()
268 PHYS_PFN(range->start), in pagemap_range()
269 PHYS_PFN(range_len(range)), pgmap); in pagemap_range()
277 kasan_remove_zero_shadow(__va(range->start), range_len(range)); in pagemap_range()
279 untrack_pfn(NULL, PHYS_PFN(range->start), range_len(range), true); in pagemap_range()
281 pgmap_array_delete(range); in pagemap_range()
455 if (phys >= pgmap->range.start && phys <= pgmap->range.end) in get_dev_pagemap()