Searched refs:PAGES_PER_SECTION (Results 1 – 17 of 17) sorted by relevance
/linux-4.1.27/arch/x86/mm/ |
D | numa_32.c | 55 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()
|
D | numa.c | 541 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/ |
D | sparse.c | 176 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 …]
|
D | page_ext.c | 222 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()
|
D | memory_hotplug.c | 202 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 …]
|
D | sparse-vmemmap.c | 185 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()
|
D | page_alloc.c | 6171 pfn &= (PAGES_PER_SECTION-1); in pfn_to_bitidx()
|
/linux-4.1.27/arch/x86/include/asm/ |
D | mmzone_32.h | 29 #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/ |
D | memory.c | 135 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()
|
D | node.c | 387 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/ |
D | init.c | 251 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/ |
D | init.c | 379 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/ |
D | memory.h | 121 #define CONFIG_MEM_BLOCK_SIZE (PAGES_PER_SECTION<<PAGE_SHIFT)
|
D | mmzone.h | 1064 #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/ |
D | init_64.c | 180 for (; start < end; start += (PAGES_PER_SECTION * sizeof(struct page))) in vmemmap_populated()
|
/linux-4.1.27/drivers/xen/ |
D | balloon.c | 229 balloon_hotplug = round_up(balloon_hotplug, PAGES_PER_SECTION); in reserve_additional_memory()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 211 rc &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in lmb_is_removable()
|