Lines Matching refs:zone
254 void __next_mem_pfn_range_in_zone(u64 *idx, struct zone *zone, unsigned long *out_spfn, unsigned long *out_epfn);
256 * for_each_free_mem_range_in_zone - iterate through zone specific free
259 * @zone: zone in which all of the memory blocks reside
264 * zone. Available once memblock and an empty zone is initialized. The main
265 * assumption is that the zone start, end, and pgdat have been associated.
266 * This way we can use the zone to determine NUMA node, and if a given part
267 * of the memblock is valid for the zone.
269 #define for_each_free_mem_pfn_range_in_zone(i, zone, p_start, p_end) \
270 for (i = 0, __next_mem_pfn_range_in_zone(&i, zone, p_start, p_end); i != U64_MAX; \
271 __next_mem_pfn_range_in_zone(&i, zone, p_start, p_end))
274 * for_each_free_mem_range_in_zone_from - iterate through zone specific
277 * @zone: zone in which all of the memory blocks reside
282 * zone, continuing from current position. Available as soon as memblock is
285 #define for_each_free_mem_pfn_range_in_zone_from(i, zone, p_start, p_end) \
286 for (; i != U64_MAX; __next_mem_pfn_range_in_zone(&i, zone, p_start, p_end))