Home
last modified time | relevance | path

Searched refs:end_pfn (Results 1 – 25 of 44) sorted by relevance

12

/arch/x86/mm/
Dinit.c253 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument
256 if (start_pfn < end_pfn) { in save_mr()
260 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr()
331 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local
347 end_pfn = PFN_DOWN(PMD_SIZE); in split_mem_range()
349 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
351 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
353 if (end_pfn > limit_pfn) in split_mem_range()
354 end_pfn = limit_pfn; in split_mem_range()
355 if (start_pfn < end_pfn) { in split_mem_range()
[all …]
Dnuma_32.c65 unsigned long end_pfn) in node_memmap_size_bytes() argument
67 unsigned long nr_pages = end_pfn - start_pfn; in node_memmap_size_bytes()
Dinit_32.c259 unsigned long start_pfn, end_pfn; in kernel_physical_mapping_init() local
270 end_pfn = end >> PAGE_SHIFT; in kernel_physical_mapping_init()
299 if (pfn >= end_pfn) in kernel_physical_mapping_init()
307 for (; pmd_idx < PTRS_PER_PMD && pfn < end_pfn; in kernel_physical_mapping_init()
347 for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn; in kernel_physical_mapping_init()
435 unsigned long start_pfn, unsigned long end_pfn) in add_highpages_with_active_regions() argument
442 start_pfn, end_pfn); in add_highpages_with_active_regions()
444 start_pfn, end_pfn); in add_highpages_with_active_regions()
/arch/mips/loongson64/loongson-3/
Dnuma.c128 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local
144 end_pfn = start_pfn + node_psize; in szmem()
149 start_pfn, end_pfn, num_physpages); in szmem()
153 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
158 end_pfn = start_pfn + node_psize; in szmem()
163 start_pfn, end_pfn, num_physpages); in szmem()
167 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
185 unsigned long start_pfn, end_pfn, freepfn; in node_mem_init() local
191 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
196 node, start_pfn, end_pfn, freepfn); in node_mem_init()
[all …]
/arch/sh/mm/
Dnuma.c30 unsigned long start_pfn, end_pfn; in setup_bootmem_node() local
37 end_pfn = PFN_DOWN(end); in setup_bootmem_node()
44 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node()
53 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
56 bootmap_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in setup_bootmem_node()
60 start_pfn, end_pfn); in setup_bootmem_node()
62 free_bootmem_with_active_regions(nid, end_pfn); in setup_bootmem_node()
Dinit.c195 unsigned long start_pfn, end_pfn; in allocate_pgdat() local
200 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in allocate_pgdat()
204 SMP_CACHE_BYTES, end_pfn << PAGE_SHIFT); in allocate_pgdat()
219 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in allocate_pgdat()
225 unsigned long end_pfn; in bootmem_init_one_node() local
234 end_pfn = pgdat_end_pfn(p); in bootmem_init_one_node()
242 init_bootmem_node(p, paddr >> PAGE_SHIFT, p->node_start_pfn, end_pfn); in bootmem_init_one_node()
244 free_bootmem_with_active_regions(nid, end_pfn); in bootmem_init_one_node()
270 unsigned long start_pfn, end_pfn; in do_init_bootmem() local
272 end_pfn = memblock_region_memory_end_pfn(reg); in do_init_bootmem()
[all …]
/arch/metag/mm/
Dnuma.c33 unsigned long start_pfn, end_pfn; in setup_bootmem_node() local
40 end_pfn = end >> PAGE_SHIFT; in setup_bootmem_node()
45 PFN_PHYS(end_pfn - start_pfn), in setup_bootmem_node()
56 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
59 bootmap_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in setup_bootmem_node()
63 start_pfn, end_pfn); in setup_bootmem_node()
65 free_bootmem_with_active_regions(nid, end_pfn); in setup_bootmem_node()
Dinit.c113 unsigned long start_pfn, end_pfn; in allocate_pgdat() local
118 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in allocate_pgdat()
122 SMP_CACHE_BYTES, end_pfn << PAGE_SHIFT); in allocate_pgdat()
138 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in allocate_pgdat()
144 unsigned long end_pfn; in bootmem_init_one_node() local
153 end_pfn = pgdat_end_pfn(p); in bootmem_init_one_node()
155 if (end_pfn > max_low_pfn) in bootmem_init_one_node()
156 end_pfn = max_low_pfn; in bootmem_init_one_node()
159 total_pages = bootmem_bootmap_pages(end_pfn - p->node_start_pfn); in bootmem_init_one_node()
165 init_bootmem_node(p, paddr >> PAGE_SHIFT, p->node_start_pfn, end_pfn); in bootmem_init_one_node()
[all …]
/arch/powerpc/platforms/powernv/
Dmemtrace.c105 u64 end_pfn = start_pfn + nr_pages - 1; in memtrace_offline_pages() local
107 if (walk_memory_range(start_pfn, end_pfn, NULL, in memtrace_offline_pages()
111 walk_memory_range(start_pfn, end_pfn, (void *)MEM_GOING_OFFLINE, in memtrace_offline_pages()
115 walk_memory_range(start_pfn, end_pfn, (void *)MEM_ONLINE, in memtrace_offline_pages()
120 walk_memory_range(start_pfn, end_pfn, (void *)MEM_OFFLINE, in memtrace_offline_pages()
129 u64 start_pfn, end_pfn, nr_pages, pfn; in memtrace_alloc_node() local
137 end_pfn = node_end_pfn(nid); in memtrace_alloc_node()
141 end_pfn = round_down(end_pfn - nr_pages, nr_pages); in memtrace_alloc_node()
144 for (base_pfn = end_pfn; base_pfn > start_pfn; base_pfn -= nr_pages) { in memtrace_alloc_node()
152 end_pfn = base_pfn + nr_pages; in memtrace_alloc_node()
[all …]
/arch/unicore32/mm/
Dinit.c88 unsigned long end_pfn) in uc32_bootmem_init() argument
99 boot_pages = bootmem_bootmap_pages(end_pfn - start_pfn); in uc32_bootmem_init()
101 __pfn_to_phys(end_pfn)); in uc32_bootmem_init()
109 init_bootmem_node(pgdat, __phys_to_pfn(bitmap), start_pfn, end_pfn); in uc32_bootmem_init()
116 if (end >= end_pfn) in uc32_bootmem_init()
117 end = end_pfn; in uc32_bootmem_init()
129 if (end >= end_pfn) in uc32_bootmem_init()
130 end = end_pfn; in uc32_bootmem_init()
273 free_memmap(unsigned long start_pfn, unsigned long end_pfn) in free_memmap() argument
282 end_pg = pfn_to_page(end_pfn); in free_memmap()
/arch/s390/numa/
Dnuma.c112 unsigned long start_pfn, end_pfn; in numa_setup_memory() local
117 end_pfn = 0; in numa_setup_memory()
121 if (t_end > end_pfn) in numa_setup_memory()
122 end_pfn = t_end; in numa_setup_memory()
124 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in numa_setup_memory()
/arch/sparc/mm/
Dinit_32.c68 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() local
70 if (end_pfn <= max_low_pfn) in calc_highpages()
76 nr += end_pfn - start_pfn; in calc_highpages()
266 static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) in map_high_region() argument
271 printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn); in map_high_region()
274 for (tmp = start_pfn; tmp < end_pfn; tmp++) in map_high_region()
315 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in mem_init() local
317 if (end_pfn <= highstart_pfn) in mem_init()
323 map_high_region(start_pfn, end_pfn); in mem_init()
/arch/sh/kernel/
Dswsusp.c25 unsigned long end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave() local
27 return (pfn >= begin_pfn) && (pfn < end_pfn); in pfn_is_nosave()
Dsetup.c197 unsigned long end_pfn) in __add_active_range() argument
205 end = end_pfn << PAGE_SHIFT; in __add_active_range()
214 start_pfn, end_pfn); in __add_active_range()
238 memblock_set_node(PFN_PHYS(start_pfn), PFN_PHYS(end_pfn - start_pfn), in __add_active_range()
/arch/mips/sgi-ip27/
Dip27-memory.c393 unsigned long start_pfn, end_pfn; in node_mem_init() local
395 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init()
405 NODE_DATA(node)->node_spanned_pages = end_pfn - start_pfn; in node_mem_init()
413 start_pfn, end_pfn); in node_mem_init()
414 free_bootmem_with_active_regions(node, end_pfn); in node_mem_init()
467 unsigned long start_pfn, end_pfn; in paging_init() local
469 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in paging_init()
471 if (end_pfn > max_low_pfn) in paging_init()
472 max_low_pfn = end_pfn; in paging_init()
/arch/arm64/mm/
Dnuma.c217 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
224 if (start_pfn >= end_pfn) in setup_node_data()
241 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_node_data()
361 unsigned long start_pfn, end_pfn; in numa_register_nodes() local
363 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in numa_register_nodes()
364 setup_node_data(nid, start_pfn, end_pfn); in numa_register_nodes()
/arch/x86/xen/
Dsetup.c254 unsigned long end_pfn, unsigned long nr_pages) in xen_set_identity_and_release_chunk() argument
259 WARN_ON(start_pfn > end_pfn); in xen_set_identity_and_release_chunk()
262 end = min(end_pfn, nr_pages); in xen_set_identity_and_release_chunk()
281 set_phys_range_identity(start_pfn, end_pfn); in xen_set_identity_and_release_chunk()
387 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_set_identity_and_remap_chunk() argument
392 unsigned long n = end_pfn - start_pfn; in xen_set_identity_and_remap_chunk()
434 for (pfn = start_pfn; pfn <= max_pfn_mapped && pfn < end_pfn; pfn++) in xen_set_identity_and_remap_chunk()
443 unsigned long start_pfn, unsigned long end_pfn, unsigned long nr_pages, in xen_count_remap_pages() argument
449 return remap_pages + min(end_pfn, nr_pages) - start_pfn; in xen_count_remap_pages()
453 unsigned long (*func)(unsigned long start_pfn, unsigned long end_pfn, in xen_foreach_remap_area() argument
[all …]
/arch/mn10300/kernel/
Dsetup.c95 unsigned long kstart_pfn, start_pfn, free_pfn, end_pfn; in setup_arch() local
128 end_pfn = PFN_DOWN(__pa(memory_end)); in setup_arch()
133 end_pfn); in setup_arch()
140 PFN_PHYS(end_pfn - free_pfn)); in setup_arch()
/arch/s390/kernel/
Dearly.c85 unsigned int i, stext_pfn, eshared_pfn, end_pfn, min_size; in create_kernel_nss() local
118 end_pfn = PFN_UP(__pa(&_end)); in create_kernel_nss()
119 min_size = end_pfn << 2; in create_kernel_nss()
124 eshared_pfn - 1, eshared_pfn, end_pfn); in create_kernel_nss()
204 unsigned long end_pfn, init_pfn; in init_kernel_storage_key() local
206 end_pfn = PFN_UP(__pa(&_end)); in init_kernel_storage_key()
208 for (init_pfn = 0 ; init_pfn < end_pfn; init_pfn++) in init_kernel_storage_key()
/arch/unicore32/kernel/
Dhibernate.c148 unsigned long end_pfn = PAGE_ALIGN(__pa(&__nosave_end)) >> PAGE_SHIFT; in pfn_is_nosave() local
150 return (pfn >= begin_pfn) && (pfn < end_pfn); in pfn_is_nosave()
/arch/x86/include/asm/
Dmtrr.h50 extern int mtrr_trim_uncached_memory(unsigned long end_pfn);
80 static inline int mtrr_trim_uncached_memory(unsigned long end_pfn) in mtrr_trim_uncached_memory() argument
Dhighmem.h76 unsigned long end_pfn);
/arch/alpha/mm/
Dnuma.c308 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/sh/include/asm/
Dmmzone.h43 unsigned long end_pfn);
/arch/powerpc/mm/
Dnuma.c90 static int __init fake_numa_create_new_node(unsigned long end_pfn, in fake_numa_create_new_node() argument
121 if ((end_pfn << PAGE_SHIFT) > mem) { in fake_numa_create_new_node()
808 unsigned long start_pfn, end_pfn; in setup_nonnuma() local
819 end_pfn = memblock_region_memory_end_pfn(reg); in setup_nonnuma()
821 fake_numa_create_new_node(end_pfn, &nid); in setup_nonnuma()
823 PFN_PHYS(end_pfn - start_pfn), in setup_nonnuma()
865 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
867 u64 spanned_pages = end_pfn - start_pfn; in setup_node_data()
939 unsigned long start_pfn, end_pfn; in initmem_init() local
941 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in initmem_init()
[all …]

12