/arch/sh/mm/ |
D | numa.c | 49 unsigned long start_pfn, free_pfn, end_pfn; in setup_bootmem_node() local 59 end_pfn = end >> PAGE_SHIFT; in setup_bootmem_node() 61 __add_active_range(nid, start_pfn, end_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() 76 end_pfn); in setup_bootmem_node() 78 free_bootmem_with_active_regions(nid, end_pfn); in setup_bootmem_node()
|
/arch/x86/mm/ |
D | srat_32.c | 51 unsigned long end_pfn; member 108 unsigned long start_pfn, end_pfn; in acpi_numa_memory_affinity_init() local 133 end_pfn = (paddr + size) >> PAGE_SHIFT; in acpi_numa_memory_affinity_init() 154 p->end_pfn = end_pfn; in acpi_numa_memory_affinity_init() 161 start_pfn, end_pfn, in acpi_numa_memory_affinity_init() 191 memory_chunk->start_pfn, memory_chunk->end_pfn); in node_read_chunk() 203 if (node_end_pfn[nid] < memory_chunk->end_pfn) in node_read_chunk() 204 node_end_pfn[nid] = memory_chunk->end_pfn; in node_read_chunk() 263 j, chunk->nid, chunk->start_pfn, chunk->end_pfn); in get_memcfg_from_srat() 268 min(chunk->end_pfn, max_pfn)); in get_memcfg_from_srat()
|
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() 655 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr() 673 unsigned long start_pfn, end_pfn; in init_memory_mapping() local 715 end_pfn = ((pos + (PMD_SIZE - 1)) >> PMD_SHIFT) in init_memory_mapping() 717 if (end_pfn > (end >> PAGE_SHIFT)) in init_memory_mapping() 718 end_pfn = end >> 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() 721 pos = end_pfn << PAGE_SHIFT; in init_memory_mapping() [all …]
|
D | init_32.c | 233 unsigned long end_pfn, in kernel_physical_mapping_init() argument 271 if (pfn >= end_pfn) in kernel_physical_mapping_init() 279 for (; pmd_idx < PTRS_PER_PMD && pfn < end_pfn; in kernel_physical_mapping_init() 318 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init() 432 unsigned long end_pfn; member 436 unsigned long end_pfn, void *datax) in add_highpages_work_fn() argument 446 final_end_pfn = min(end_pfn, data->end_pfn); in add_highpages_work_fn() 463 unsigned long end_pfn) in add_highpages_with_active_regions() argument 468 data.end_pfn = end_pfn; in add_highpages_with_active_regions() 751 unsigned long end_pfn) in initmem_init() argument [all …]
|
D | pat.c | 258 u64 pfn, end_pfn; in reserve_ram_pages_type() local 270 end_pfn = pfn; in reserve_ram_pages_type() 271 for (pfn = (start >> PAGE_SHIFT); pfn < end_pfn; ++pfn) { in reserve_ram_pages_type() 282 u64 pfn, end_pfn; in free_ram_pages_type() local 294 end_pfn = pfn; in free_ram_pages_type() 295 for (pfn = (start >> PAGE_SHIFT); pfn < end_pfn; ++pfn) { in free_ram_pages_type()
|
D | numa_32.c | 90 unsigned long end_pfn) in node_memmap_size_bytes() argument 92 unsigned long nr_pages = end_pfn - start_pfn; in node_memmap_size_bytes() 351 unsigned long end_pfn) in initmem_init() argument
|
/arch/powerpc/mm/ |
D | numa.c | 46 static int __cpuinit fake_numa_create_new_node(unsigned long end_pfn, in fake_numa_create_new_node() argument 77 if ((end_pfn << PAGE_SHIFT) > mem) { in fake_numa_create_new_node() 104 unsigned long end_pfn, void *datax) 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() 111 data->end_pfn = end_pfn; in get_active_region_work_fn() 131 node_ar->end_pfn = start_pfn; in get_node_active_region() 735 unsigned long start_pfn, end_pfn; in setup_nonnuma() local 745 end_pfn = start_pfn + lmb_size_pages(&lmb.memory, i); in setup_nonnuma() 747 fake_numa_create_new_node(end_pfn, &nid); in setup_nonnuma() 748 add_active_range(nid, start_pfn, end_pfn); in setup_nonnuma() [all …]
|
D | mem.c | 205 unsigned long start_pfn, end_pfn; in do_init_bootmem() local 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/arm/mm/ |
D | init.c | 214 unsigned long start_pfn, end_pfn, boot_pfn; in bootmem_init_node() local 220 end_pfn = 0; in bootmem_init_node() 234 if (end_pfn < end) in bootmem_init_node() 235 end_pfn = end; in bootmem_init_node() 243 if (end_pfn == 0) in bootmem_init_node() 244 return end_pfn; in bootmem_init_node() 249 boot_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in bootmem_init_node() 258 init_bootmem_node(pgdat, boot_pfn, start_pfn, end_pfn); in bootmem_init_node() 272 return end_pfn; in bootmem_init_node() 299 unsigned long start_pfn, end_pfn; in bootmem_free_node() local [all …]
|
/arch/s390/kernel/ |
D | early.c | 66 unsigned int i, stext_pfn, eshared_pfn, end_pfn, min_size; in create_kernel_nss() local 99 end_pfn = PFN_UP(__pa(&_end)); in create_kernel_nss() 100 min_size = end_pfn << 2; in create_kernel_nss() 104 eshared_pfn, end_pfn); in create_kernel_nss() 168 unsigned long end_pfn, init_pfn; in init_kernel_storage_key() local 170 end_pfn = PFN_UP(__pa(&_end)); in init_kernel_storage_key() 172 for (init_pfn = 0 ; init_pfn < end_pfn; init_pfn++) in init_kernel_storage_key()
|
D | setup.c | 567 unsigned long start_pfn, end_pfn; in setup_memory() local 575 end_pfn = max_pfn = PFN_DOWN(memory_end); in setup_memory() 587 bmap_size = bootmem_bootmap_pages(end_pfn - start_pfn + 1); in setup_memory() 614 bootmap_size = init_bootmem(start_pfn, end_pfn); in setup_memory() 627 end_chunk = min(end_chunk, end_pfn); in setup_memory()
|
/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() 406 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init() 414 start_pfn, end_pfn); in node_mem_init() 415 free_bootmem_with_active_regions(node, 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() 472 if (end_pfn > max_low_pfn) in paging_init() 473 max_low_pfn = end_pfn; in paging_init()
|
/arch/sparc/mm/ |
D | init_32.c | 122 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() local 124 if (end_pfn <= max_low_pfn) in calc_highpages() 130 nr += end_pfn - start_pfn; in calc_highpages() 381 static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) in map_high_region() argument 386 printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn); in map_high_region() 389 for (tmp = start_pfn; tmp < end_pfn; tmp++) { in map_high_region() 441 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in mem_init() local 445 if (end_pfn <= highstart_pfn) in mem_init() 451 map_high_region(start_pfn, end_pfn); in mem_init()
|
D | init_64.c | 819 unsigned long paddr, num_pages, start_pfn, end_pfn; in allocate_node_data() local 837 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in allocate_node_data() 839 p->node_spanned_pages = end_pfn - start_pfn; in allocate_node_data() 1295 unsigned long start_pfn, end_pfn; in bootmem_init_nonnuma() local 1301 end_pfn = start_pfn + lmb_size_pages(&lmb.memory, i); in bootmem_init_nonnuma() 1302 add_active_range(0, start_pfn, end_pfn); in bootmem_init_nonnuma() 1358 unsigned long end_pfn; in bootmem_init_one_node() local 1360 end_pfn = p->node_start_pfn + p->node_spanned_pages; in bootmem_init_one_node() 1363 nid, paddr >> PAGE_SHIFT, p->node_start_pfn, end_pfn); in bootmem_init_one_node() 1366 p->node_start_pfn, end_pfn); in bootmem_init_one_node() [all …]
|
/arch/mn10300/kernel/ |
D | setup.c | 123 unsigned long kstart_pfn, start_pfn, free_pfn, end_pfn; in setup_arch() local 146 end_pfn = PFN_DOWN(__pa(memory_end)); in setup_arch() 151 end_pfn); in setup_arch() 158 PFN_PHYS(end_pfn - free_pfn)); in setup_arch()
|
/arch/alpha/mm/ |
D | numa.c | 308 unsigned long end_pfn = bdata->node_low_pfn; in paging_init() local 310 if (dma_local_pfn >= end_pfn - start_pfn) in paging_init() 311 zones_size[ZONE_DMA] = end_pfn - start_pfn; in paging_init() 314 zones_size[ZONE_NORMAL] = (end_pfn - start_pfn) - dma_local_pfn; in paging_init()
|
/arch/x86/include/asm/ |
D | mtrr.h | 124 extern int mtrr_trim_uncached_memory(unsigned long end_pfn); 154 static inline int mtrr_trim_uncached_memory(unsigned long end_pfn) in mtrr_trim_uncached_memory() argument
|
D | highmem.h | 75 unsigned long end_pfn);
|
D | page_64.h | 92 extern void initmem_init(unsigned long start_pfn, unsigned long end_pfn);
|
/arch/sh/kernel/ |
D | setup.c | 207 unsigned long end_pfn) in __add_active_range() argument 215 res->end = (end_pfn << PAGE_SHIFT) - 1; 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()
|
/arch/sh/include/asm/ |
D | mmzone.h | 47 unsigned long end_pfn);
|
/arch/parisc/mm/ |
D | init.c | 234 unsigned long end_pfn; in setup_bootmem() local 238 end_pfn = pmem_ranges[0].start_pfn + pmem_ranges[0].pages; in setup_bootmem() 241 hole_pages = pmem_ranges[i].start_pfn - end_pfn; in setup_bootmem() 243 pmem_holes[npmem_holes].start_pfn = end_pfn; in setup_bootmem() 245 end_pfn += hole_pages; in setup_bootmem() 247 end_pfn += pmem_ranges[i].pages; in setup_bootmem() 250 pmem_ranges[0].pages = end_pfn - pmem_ranges[0].start_pfn; in setup_bootmem()
|
/arch/x86/kernel/ |
D | efi.c | 470 u64 end, systab, addr, npages, end_pfn; in efi_enter_virtual_mode() local 482 end_pfn = PFN_UP(end); in efi_enter_virtual_mode() 483 if (end_pfn <= max_low_pfn_mapped in efi_enter_virtual_mode() 484 || (end_pfn > (1UL << (32 - PAGE_SHIFT)) in efi_enter_virtual_mode() 485 && end_pfn <= max_pfn_mapped)) in efi_enter_virtual_mode()
|
/arch/blackfin/kernel/ |
D | setup.c | 636 unsigned long start_pfn, end_pfn; in setup_bootmem_allocator() local 658 end_pfn = memory_end >> PAGE_SHIFT; in setup_bootmem_allocator() 666 start_pfn, end_pfn); in setup_bootmem_allocator() 679 if (curr_pfn >= end_pfn) in setup_bootmem_allocator() 687 if (last_pfn > end_pfn) in setup_bootmem_allocator() 688 last_pfn = end_pfn; in setup_bootmem_allocator()
|
/arch/powerpc/platforms/pseries/ |
D | phyp_dump.c | 269 unsigned long end_pfn; in release_memory_range() local 272 end_pfn = start_pfn + nr_pages; in release_memory_range() 274 for (i = start_pfn; i <= end_pfn; i++) { in release_memory_range()
|