Lines Matching defs:map
211 static void subsection_mask_set(unsigned long *map, unsigned long pfn,
217 bitmap_set(map, idx, end - idx + 1);
449 struct page *map = sparse_buffer_alloc(size);
452 if (map)
453 return map;
455 map = memblock_alloc_try_nid_raw(size, size, addr,
457 if (!map)
461 return map;
529 struct page *map;
544 map = __populate_section_memmap(pfn, PAGES_PER_SECTION,
546 if (!map) {
547 pr_err("%s: node[%d] memory map backing failed. Some memory will not be available.",
554 sparse_init_one_section(__nr_to_section(pnum), pnum, map, usage,
675 DECLARE_BITMAP(map, SUBSECTIONS_PER_SECTION) = { 0 };
681 subsection_mask_set(map, pfn, nr_pages);
683 bitmap_and(tmp, map, subsection_map, SUBSECTIONS_PER_SECTION);
685 if (WARN(!subsection_map || !bitmap_equal(tmp, map, SUBSECTIONS_PER_SECTION),
690 bitmap_xor(subsection_map, map, subsection_map, SUBSECTIONS_PER_SECTION);
703 DECLARE_BITMAP(map, SUBSECTIONS_PER_SECTION) = { 0 };
707 subsection_mask_set(map, pfn, nr_pages);
711 if (bitmap_empty(map, SUBSECTIONS_PER_SECTION))
713 else if (bitmap_intersects(map, subsection_map, SUBSECTIONS_PER_SECTION))
716 bitmap_or(subsection_map, map, subsection_map,
793 * usage map, but still need to free the vmemmap range.
820 * When removing an early section, the usage map is kept (as the
823 * longer an early section. If the usage map is PageReserved, it
893 * @altmap: device page map