Home
last modified time | relevance | path

Searched refs:PAGES_PER_SECTION (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/arch/x86/mm/
Dnuma_32.c55 start = round_down(start, PAGES_PER_SECTION); in memory_present()
56 end = round_up(end, PAGES_PER_SECTION); in memory_present()
57 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) { in memory_present()
58 physnode_map[pfn / PAGES_PER_SECTION] = nid; in memory_present()
Dnuma.c541 if (pfn_align && pfn_align < PAGES_PER_SECTION) { in numa_register_memblks()
544 PFN_PHYS(PAGES_PER_SECTION) >> 20); in numa_register_memblks()
/linux-4.1.27/mm/
Dsparse.c176 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) { in memory_present()
201 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in node_memmap_size_bytes()
206 nr_pages += PAGES_PER_SECTION; in node_memmap_size_bytes()
377 map = alloc_remap(nid, sizeof(struct page) * PAGES_PER_SECTION); in sparse_mem_map_populate()
381 size = PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION); in sparse_mem_map_populate()
394 unsigned long size = sizeof(struct page) * PAGES_PER_SECTION; in sparse_mem_maps_populate_node()
606 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in __kfree_section_memmap()
614 unsigned long end = (unsigned long)(memmap + PAGES_PER_SECTION); in free_map_bootmem()
623 unsigned long memmap_size = sizeof(struct page) * PAGES_PER_SECTION; in __kmalloc_section_memmap()
652 get_order(sizeof(struct page) * PAGES_PER_SECTION)); in __kfree_section_memmap()
[all …]
Dpage_ext.c222 table_size = sizeof(struct page_ext) * PAGES_PER_SECTION; in init_section_page_ext()
255 table_size = sizeof(struct page_ext) * PAGES_PER_SECTION; in free_page_ext()
295 for (pfn = start; !fail && pfn < end; pfn += PAGES_PER_SECTION) { in online_page_ext()
304 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in online_page_ext()
318 for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) in offline_page_ext()
374 pfn = ALIGN(pfn + 1, PAGES_PER_SECTION)) { in page_ext_init()
Dmemory_hotplug.c202 mapsize = sizeof(struct page) * PAGES_PER_SECTION; in register_page_bootmem_info_section()
233 register_page_bootmem_memmap(section_nr, memmap, PAGES_PER_SECTION); in register_page_bootmem_info_section()
275 for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in register_page_bootmem_info_node()
446 int nr_pages = PAGES_PER_SECTION; in __add_zone()
529 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SECTION) { in find_smallest_section_pfn()
557 for (; pfn >= start_pfn; pfn -= PAGES_PER_SECTION) { in find_biggest_section_pfn()
619 for (; pfn < zone_end_pfn; pfn += PAGES_PER_SECTION) { in shrink_zone_span()
687 for (; pfn < pgdat_end_pfn; pfn += PAGES_PER_SECTION) { in shrink_pgdat_span()
712 int nr_pages = PAGES_PER_SECTION; in __remove_zone()
768 BUG_ON(nr_pages % PAGES_PER_SECTION); in __remove_pages()
[all …]
Dsparse-vmemmap.c185 map = pfn_to_page(pnum * PAGES_PER_SECTION); in sparse_mem_map_populate()
187 end = (unsigned long)(map + PAGES_PER_SECTION); in sparse_mem_map_populate()
201 unsigned long size = sizeof(struct page) * PAGES_PER_SECTION; in sparse_mem_maps_populate_node()
Dpage_alloc.c6171 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx()
/linux-4.1.27/arch/x86/include/asm/
Dmmzone_32.h29 #define PAGES_PER_SECTION (MAX_NR_PAGES/MAX_SECTIONS) macro
36 return((int) physnode_map[(pfn) / PAGES_PER_SECTION]); in pfn_to_nid()
/linux-4.1.27/drivers/base/
Dmemory.c135 ret &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in show_mem_removable()
199 for (i = 0; i < sections_per_block; i++, pfn += PAGES_PER_SECTION) { in pages_correctly_reserved()
204 for (j = 0; j < PAGES_PER_SECTION; j++) { in pages_correctly_reserved()
228 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in memory_block_action()
387 unsigned long nr_pages = PAGES_PER_SECTION * sections_per_block; in show_valid_zones()
451 unsigned long pages_per_block = PAGES_PER_SECTION * sections_per_block; in memory_probe_store()
463 PAGES_PER_SECTION << PAGE_SHIFT); in memory_probe_store()
Dnode.c387 sect_end_pfn += PAGES_PER_SECTION - 1; in register_mem_sect_under_node()
396 pfn = round_down(pfn + PAGES_PER_SECTION, in register_mem_sect_under_node()
397 PAGES_PER_SECTION) - 1; in register_mem_sect_under_node()
436 sect_end_pfn = sect_start_pfn + PAGES_PER_SECTION - 1; in unregister_mem_sect_under_nodes()
464 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in link_mem_sections()
/linux-4.1.27/arch/arm64/mm/
Dinit.c251 start = min(start, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
270 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) in free_unused_memmap()
271 free_memmap(prev_end, ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
/linux-4.1.27/arch/arm/mm/
Dinit.c379 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
405 if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) in free_unused_memmap()
407 ALIGN(prev_end, PAGES_PER_SECTION)); in free_unused_memmap()
/linux-4.1.27/include/linux/
Dmemory.h121 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
Dmmzone.h1064 #define PAGES_PER_SECTION (1UL << PFN_SECTION_SHIFT) macro
1065 #define PAGE_SECTION_MASK (~(PAGES_PER_SECTION-1))
1077 #define SECTION_ALIGN_UP(pfn) (((pfn) + PAGES_PER_SECTION - 1) & PAGE_SECTION_MASK)
/linux-4.1.27/arch/powerpc/mm/
Dinit_64.c180 for (; start < end; start += (PAGES_PER_SECTION * sizeof(struct page))) in vmemmap_populated()
/linux-4.1.27/drivers/xen/
Dballoon.c229 balloon_hotplug = round_up(balloon_hotplug, PAGES_PER_SECTION); in reserve_additional_memory()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dhotplug-memory.c211 rc &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in lmb_is_removable()