/arch/m32r/mm/ |
D | discontig.c | 28 unsigned long start_pfn; member 37 unsigned long start_pfn, holes, free_pfn; in mem_prof_init() local 44 mp->start_pfn = PFN_UP(CONFIG_MEMORY_START); in mem_prof_init() 51 start_pfn = free_pfn = PFN_UP(CONFIG_IRAM_START); in mem_prof_init() 53 if (start_pfn & (zone_alignment - 1)) { in mem_prof_init() 55 while (start_pfn >= ul) in mem_prof_init() 58 start_pfn = ul - zone_alignment; in mem_prof_init() 59 holes = free_pfn - start_pfn; in mem_prof_init() 62 mp->start_pfn = start_pfn; in mem_prof_init() 84 min_pfn = mp->start_pfn; in setup_memory() [all …]
|
D | init.c | 69 unsigned long start_pfn; in zone_sizes_init() local 72 start_pfn = START_PFN(0); in zone_sizes_init() 77 zones_size[ZONE_DMA] = low - start_pfn; in zone_sizes_init() 80 zones_size[ZONE_DMA] = low - start_pfn; in zone_sizes_init() 86 start_pfn = __MEMORY_START >> PAGE_SHIFT; in zone_sizes_init() 89 free_area_init_node(0, zones_size, start_pfn, 0); in zone_sizes_init()
|
/arch/x86/mm/ |
D | srat_32.c | 50 unsigned long start_pfn; member 108 unsigned long start_pfn, end_pfn; in acpi_numa_memory_affinity_init() local 132 start_pfn = paddr >> PAGE_SHIFT; in acpi_numa_memory_affinity_init() 146 if (start_pfn < p->start_pfn) in acpi_numa_memory_affinity_init() 153 p->start_pfn = start_pfn; in acpi_numa_memory_affinity_init() 161 start_pfn, end_pfn, in acpi_numa_memory_affinity_init() 189 if (memory_chunk->start_pfn >= max_pfn) { in node_read_chunk() 191 memory_chunk->start_pfn, memory_chunk->end_pfn); in node_read_chunk() 198 node_start_pfn[nid] = memory_chunk->start_pfn; in node_read_chunk() 200 if (node_start_pfn[nid] > memory_chunk->start_pfn) in node_read_chunk() [all …]
|
D | init_32.c | 232 unsigned long start_pfn, in kernel_physical_mapping_init() argument 265 pfn = start_pfn; in kernel_physical_mapping_init() 431 unsigned long start_pfn; member 435 static int __init add_highpages_work_fn(unsigned long start_pfn, in add_highpages_work_fn() argument 445 final_start_pfn = max(start_pfn, data->start_pfn); in add_highpages_work_fn() 462 void __init add_highpages_with_active_regions(int nid, unsigned long start_pfn, in add_highpages_with_active_regions() argument 467 data.start_pfn = start_pfn; in add_highpages_with_active_regions() 750 void __init initmem_init(unsigned long start_pfn, in initmem_init() argument 872 unsigned long start_pfn, end_pfn; in init_memory_mapping() local 916 start_pfn = start >> PAGE_SHIFT; in init_memory_mapping() [all …]
|
D | numa_64.c | 176 unsigned long start_pfn, last_pfn, bootmap_pages, bootmap_size; in setup_node_bootmem() local 187 start_pfn = start >> PAGE_SHIFT; in setup_node_bootmem() 200 NODE_DATA(nodeid)->node_start_pfn = start_pfn; in setup_node_bootmem() 201 NODE_DATA(nodeid)->node_spanned_pages = last_pfn - start_pfn; in setup_node_bootmem() 210 bootmap_pages = bootmem_bootmap_pages(last_pfn - start_pfn); in setup_node_bootmem() 232 start_pfn, last_pfn); in setup_node_bootmem() 402 static int __init numa_emulation(unsigned long start_pfn, unsigned long last_pfn) in numa_emulation() argument 404 u64 size, addr = start_pfn << PAGE_SHIFT; in numa_emulation() 511 void __init initmem_init(unsigned long start_pfn, unsigned long last_pfn) in initmem_init() argument 519 if (cmdline && !numa_emulation(start_pfn, last_pfn)) in initmem_init() [all …]
|
D | init_64.c | 647 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument 651 if (start_pfn < end_pfn) { in save_mr() 654 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr() 673 unsigned long start_pfn, end_pfn; in init_memory_mapping() local 713 start_pfn = start >> PAGE_SHIFT; in init_memory_mapping() 714 pos = start_pfn << PAGE_SHIFT; in init_memory_mapping() 719 if (start_pfn < end_pfn) { in init_memory_mapping() 720 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in init_memory_mapping() 725 start_pfn = ((pos + (PMD_SIZE - 1))>>PMD_SHIFT) in init_memory_mapping() 731 if (start_pfn < end_pfn) { in init_memory_mapping() [all …]
|
D | numa_32.c | 89 unsigned long node_memmap_size_bytes(int nid, unsigned long start_pfn, in node_memmap_size_bytes() argument 92 unsigned long nr_pages = end_pfn - start_pfn; in node_memmap_size_bytes() 236 unsigned long start_va, start_pfn, size, pfn; in resume_map_numa_kva() local 239 start_pfn = node_remap_start_pfn[node]; in resume_map_numa_kva() 250 set_pmd(pmd, pfn_pmd(start_pfn + pfn, in resume_map_numa_kva() 254 __func__, vaddr, start_pfn + pfn); in resume_map_numa_kva() 350 void __init initmem_init(unsigned long start_pfn, in initmem_init() argument
|
/arch/sh/mm/ |
D | numa.c | 49 unsigned long start_pfn, free_pfn, end_pfn; in setup_bootmem_node() local 58 free_pfn = start_pfn = start >> PAGE_SHIFT; in setup_bootmem_node() 61 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node() 69 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node() 70 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node() 73 bootmap_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in setup_bootmem_node() 75 bootmap_size = init_bootmem_node(NODE_DATA(nid), free_pfn, start_pfn, in setup_bootmem_node() 81 reserve_bootmem_node(NODE_DATA(nid), start_pfn << PAGE_SHIFT, in setup_bootmem_node()
|
D | init.c | 166 unsigned long low, start_pfn; in paging_init() local 168 start_pfn = pgdat->bdata->node_min_pfn; in paging_init() 175 nid, start_pfn, low); in paging_init() 307 unsigned long start_pfn = start >> PAGE_SHIFT; in arch_add_memory() local 315 start_pfn, nr_pages); in arch_add_memory()
|
/arch/powerpc/mm/ |
D | numa.c | 103 static int __init get_active_region_work_fn(unsigned long start_pfn, in get_active_region_work_fn() argument 109 if (start_pfn <= data->start_pfn && end_pfn > data->start_pfn) { in get_active_region_work_fn() 110 data->start_pfn = start_pfn; in get_active_region_work_fn() 124 static void __init get_node_active_region(unsigned long start_pfn, in get_node_active_region() argument 127 int nid = early_pfn_to_nid(start_pfn); in get_node_active_region() 130 node_ar->start_pfn = start_pfn; in get_node_active_region() 131 node_ar->end_pfn = start_pfn; in get_node_active_region() 735 unsigned long start_pfn, end_pfn; in setup_nonnuma() local 744 start_pfn = lmb.memory.region[i].base >> PAGE_SHIFT; in setup_nonnuma() 745 end_pfn = start_pfn + lmb_size_pages(&lmb.memory, i); in setup_nonnuma() [all …]
|
D | mem.c | 124 unsigned long start_pfn = start >> PAGE_SHIFT; in arch_add_memory() local 135 return __add_pages(nid, zone, start_pfn, nr_pages); in arch_add_memory() 146 walk_memory_resource(unsigned long start_pfn, unsigned long nr_pages, void *arg, in walk_memory_resource() argument 154 res.base = (u64) start_pfn << PAGE_SHIFT; in walk_memory_resource() 205 unsigned long start_pfn, end_pfn; in do_init_bootmem() local 206 start_pfn = lmb.memory.region[i].base >> PAGE_SHIFT; in do_init_bootmem() 207 end_pfn = start_pfn + lmb_size_pages(&lmb.memory, i); in do_init_bootmem() 208 add_active_range(0, start_pfn, end_pfn); in do_init_bootmem()
|
/arch/sparc/mm/ |
D | init_32.c | 121 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages() local 127 if (start_pfn < max_low_pfn) in calc_highpages() 128 start_pfn = max_low_pfn; in calc_highpages() 130 nr += end_pfn - start_pfn; in calc_highpages() 160 unsigned long bootmap_size, start_pfn; in bootmem_init() local 192 start_pfn = (unsigned long)__pa(PAGE_ALIGN((unsigned long) &_end)); in bootmem_init() 195 start_pfn >>= PAGE_SHIFT; in bootmem_init() 197 bootmap_pfn = start_pfn; in bootmem_init() 225 if (initrd_start >= (start_pfn << PAGE_SHIFT) && in bootmem_init() 226 initrd_start < (start_pfn << PAGE_SHIFT) + 2 * PAGE_SIZE) in bootmem_init() [all …]
|
/arch/cris/kernel/ |
D | setup.c | 63 unsigned long start_pfn, max_pfn; in setup_arch() local 102 start_pfn = PFN_UP(memory_start); /* usually c0000000 + kernel + romfs */ in setup_arch() 124 bootmap_size = init_bootmem_node(NODE_DATA(0), start_pfn, in setup_arch() 130 free_bootmem(PFN_PHYS(start_pfn), PFN_PHYS(max_pfn - start_pfn)); in setup_arch() 141 reserve_bootmem(PFN_PHYS(start_pfn), bootmap_size, BOOTMEM_DEFAULT); in setup_arch()
|
/arch/arm/mm/ |
D | init.c | 131 unsigned int start_pfn, i, bootmap_pfn; in find_bootmap_pfn() local 133 start_pfn = PAGE_ALIGN(__pa(_end)) >> PAGE_SHIFT; in find_bootmap_pfn() 143 if (end < start_pfn) in find_bootmap_pfn() 146 if (start < start_pfn) in find_bootmap_pfn() 147 start = start_pfn; in find_bootmap_pfn() 214 unsigned long start_pfn, end_pfn, boot_pfn; in bootmem_init_node() local 219 start_pfn = -1UL; in bootmem_init_node() 232 if (start_pfn > start) in bootmem_init_node() 233 start_pfn = start; in bootmem_init_node() 249 boot_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in bootmem_init_node() [all …]
|
/arch/alpha/mm/ |
D | numa.c | 48 i, cluster->usage, cluster->start_pfn, in show_mem_layout() 49 cluster->start_pfn + cluster->numpages); in show_mem_layout() 86 start = cluster->start_pfn; in setup_memory_node() 97 i, cluster->usage, cluster->start_pfn, in setup_memory_node() 98 cluster->start_pfn + cluster->numpages); in setup_memory_node() 173 start = cluster->start_pfn; in setup_memory_node() 213 start = cluster->start_pfn; in setup_memory_node() 214 end = cluster->start_pfn + cluster->numpages; in setup_memory_node() 307 unsigned long start_pfn = bdata->node_min_pfn; in paging_init() local 310 if (dma_local_pfn >= end_pfn - start_pfn) in paging_init() [all …]
|
/arch/parisc/mm/ |
D | init.c | 132 if (pmem_ranges[j-1].start_pfn < in setup_bootmem() 133 pmem_ranges[j].start_pfn) { in setup_bootmem() 137 tmp = pmem_ranges[j-1].start_pfn; in setup_bootmem() 138 pmem_ranges[j-1].start_pfn = pmem_ranges[j].start_pfn; in setup_bootmem() 139 pmem_ranges[j].start_pfn = tmp; in setup_bootmem() 153 if (pmem_ranges[i].start_pfn - in setup_bootmem() 154 (pmem_ranges[i-1].start_pfn + in setup_bootmem() 159 pmem_ranges[i].start_pfn - in setup_bootmem() 160 (pmem_ranges[i-1].start_pfn + in setup_bootmem() 178 start = (pmem_ranges[i].start_pfn << PAGE_SHIFT); in setup_bootmem() [all …]
|
/arch/powerpc/platforms/pseries/ |
D | hotplug-memory.c | 21 unsigned long start, start_pfn; in pseries_remove_lmb() local 25 start_pfn = base >> PAGE_SHIFT; in pseries_remove_lmb() 27 if (!pfn_valid(start_pfn)) { in pseries_remove_lmb() 32 zone = page_zone(pfn_to_page(start_pfn)); in pseries_remove_lmb() 43 ret = __remove_pages(zone, start_pfn, lmb_size >> PAGE_SHIFT); in pseries_remove_lmb()
|
D | phyp_dump.c | 265 static void release_memory_range(unsigned long start_pfn, in release_memory_range() argument 272 end_pfn = start_pfn + nr_pages; in release_memory_range() 274 for (i = start_pfn; i <= end_pfn; i++) { in release_memory_range() 335 unsigned long start_pfn, nr_pages; in store_release_region() local 355 start_pfn = PFN_DOWN(start_addr); in store_release_region() 357 release_memory_range(start_pfn, nr_pages); in store_release_region()
|
/arch/avr32/mm/ |
D | init.c | 81 unsigned long low, start_pfn; in paging_init() local 83 start_pfn = pgdat->bdata->node_min_pfn; in paging_init() 87 zones_size[ZONE_NORMAL] = low - start_pfn; in paging_init() 90 nid, start_pfn, low); in paging_init() 92 free_area_init_node(nid, zones_size, start_pfn, NULL); in paging_init()
|
/arch/mn10300/kernel/ |
D | setup.c | 123 unsigned long kstart_pfn, start_pfn, free_pfn, end_pfn; in setup_arch() local 143 start_pfn = (CONFIG_KERNEL_RAM_BASE_ADDRESS >> PAGE_SHIFT); in setup_arch() 150 start_pfn, in setup_arch() 153 if (kstart_pfn > start_pfn) in setup_arch() 154 free_bootmem(PFN_PHYS(start_pfn), in setup_arch() 155 PFN_PHYS(kstart_pfn - start_pfn)); in setup_arch()
|
/arch/sh/include/asm/ |
D | mmzone.h | 45 void __init setup_bootmem_allocator(unsigned long start_pfn); 46 void __init __add_active_range(unsigned int nid, unsigned long start_pfn,
|
/arch/mips/sgi-ip27/ |
D | ip27-memory.c | 395 pfn_t start_pfn, end_pfn; in node_mem_init() local 397 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init() 405 NODE_DATA(node)->node_start_pfn = start_pfn; in node_mem_init() 406 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init() 414 start_pfn, end_pfn); in node_mem_init() 468 pfn_t start_pfn, end_pfn; in paging_init() local 470 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in paging_init()
|
/arch/sh/kernel/ |
D | setup.c | 206 void __init __add_active_range(unsigned int nid, unsigned long start_pfn, in __add_active_range() argument 214 res->start = start_pfn << PAGE_SHIFT; in __add_active_range() 219 start_pfn, end_pfn); in __add_active_range() 232 add_active_range(nid, start_pfn, end_pfn); in __add_active_range() 300 unsigned long start_pfn; in setup_memory() local 306 start_pfn = PFN_UP(__pa(_end)); in setup_memory() 307 setup_bootmem_allocator(start_pfn); in setup_memory()
|
/arch/s390/kernel/ |
D | setup.c | 567 unsigned long start_pfn, end_pfn; in setup_memory() local 574 start_pfn = PFN_UP(__pa(&_end)); in setup_memory() 587 bmap_size = bootmem_bootmap_pages(end_pfn - start_pfn + 1); in setup_memory() 590 if (PFN_PHYS(start_pfn) + bmap_size > INITRD_START) { in setup_memory() 591 start = PFN_PHYS(start_pfn) + bmap_size + PAGE_SIZE; in setup_memory() 614 bootmap_size = init_bootmem(start_pfn, end_pfn); in setup_memory() 631 pfn = max(start_chunk, start_pfn); in setup_memory() 645 PFN_PHYS(start_pfn) - (unsigned long)_stext, in setup_memory() 653 reserve_bootmem(start_pfn << PAGE_SHIFT, bootmap_size, in setup_memory()
|
/arch/m32r/kernel/ |
D | setup.c | 135 unsigned long start_pfn, max_low_pfn, bootmap_size; in setup_memory() local 137 start_pfn = PFN_UP( __pa(_end) ); in setup_memory() 143 bootmap_size = init_bootmem_node(NODE_DATA(0), start_pfn, in setup_memory() 179 (PFN_PHYS(start_pfn) + bootmap_size + PAGE_SIZE - 1) in setup_memory()
|