Home
last modified time | relevance | path

Searched refs:start_pfn (Results 1 – 25 of 94) sorted by relevance

1234

/Linux-v4.19/mm/
Dmemory_hotplug.c163 static void register_page_bootmem_info_section(unsigned long start_pfn) in register_page_bootmem_info_section() argument
169 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
197 static void register_page_bootmem_info_section(unsigned long start_pfn) in register_page_bootmem_info_section() argument
203 section_nr = pfn_to_section_nr(start_pfn); in register_page_bootmem_info_section()
320 unsigned long start_pfn, in find_smallest_section_pfn() argument
325 for (; start_pfn < end_pfn; start_pfn += PAGES_PER_SECTION) { in find_smallest_section_pfn()
326 ms = __pfn_to_section(start_pfn); in find_smallest_section_pfn()
331 if (unlikely(pfn_to_nid(start_pfn) != nid)) in find_smallest_section_pfn()
334 if (zone && zone != page_zone(pfn_to_page(start_pfn))) in find_smallest_section_pfn()
337 return start_pfn; in find_smallest_section_pfn()
[all …]
Dpage_isolation.c40 arg.start_pfn = pfn; in set_migratetype_isolate()
187 int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in start_isolate_page_range() argument
194 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in start_isolate_page_range()
197 for (pfn = start_pfn; in start_isolate_page_range()
209 for (pfn = start_pfn; in start_isolate_page_range()
224 int undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, in undo_isolate_page_range() argument
230 BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)); in undo_isolate_page_range()
233 for (pfn = start_pfn; in undo_isolate_page_range()
280 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, in test_pages_isolated() argument
292 for (pfn = start_pfn; pfn < end_pfn; pfn += pageblock_nr_pages) { in test_pages_isolated()
[all …]
Dpage_ext.c293 static int __meminit online_page_ext(unsigned long start_pfn, in online_page_ext() argument
300 start = SECTION_ALIGN_DOWN(start_pfn); in online_page_ext()
301 end = SECTION_ALIGN_UP(start_pfn + nr_pages); in online_page_ext()
309 nid = pfn_to_nid(start_pfn); in online_page_ext()
328 static int __meminit offline_page_ext(unsigned long start_pfn, in offline_page_ext() argument
333 start = SECTION_ALIGN_DOWN(start_pfn); in offline_page_ext()
334 end = SECTION_ALIGN_UP(start_pfn + nr_pages); in offline_page_ext()
350 ret = online_page_ext(mn->start_pfn, in page_ext_callback()
354 offline_page_ext(mn->start_pfn, in page_ext_callback()
358 offline_page_ext(mn->start_pfn, in page_ext_callback()
[all …]
Dsparse.c142 void __meminit mminit_validate_memmodel_limits(unsigned long *start_pfn, in mminit_validate_memmodel_limits() argument
151 if (*start_pfn > max_sparsemem_pfn) { in mminit_validate_memmodel_limits()
154 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
156 *start_pfn = max_sparsemem_pfn; in mminit_validate_memmodel_limits()
161 *start_pfn, *end_pfn, max_sparsemem_pfn); in mminit_validate_memmodel_limits()
524 void online_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in online_mem_sections() argument
528 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in online_mem_sections()
543 void offline_mem_sections(unsigned long start_pfn, unsigned long end_pfn) in offline_mem_sections() argument
547 for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { in offline_mem_sections()
665 unsigned long start_pfn, struct vmem_altmap *altmap) in sparse_add_one_section() argument
[all …]
Dpage_alloc.c459 unsigned long sp, start_pfn; in page_outside_zone_boundaries() local
463 start_pfn = zone->zone_start_pfn; in page_outside_zone_boundaries()
472 start_pfn, start_pfn + sp); in page_outside_zone_boundaries()
1222 unsigned long start_pfn = PFN_DOWN(start); in reserve_bootmem_region() local
1225 for (; start_pfn < end_pfn; start_pfn++) { in reserve_bootmem_region()
1226 if (pfn_valid(start_pfn)) { in reserve_bootmem_region()
1227 struct page *page = pfn_to_page(start_pfn); in reserve_bootmem_region()
1229 init_reserved_page(start_pfn); in reserve_bootmem_region()
1354 struct page *__pageblock_pfn_to_page(unsigned long start_pfn, in __pageblock_pfn_to_page() argument
1363 if (!pfn_valid(start_pfn) || !pfn_valid(end_pfn)) in __pageblock_pfn_to_page()
[all …]
Dinternal.h151 extern struct page *__pageblock_pfn_to_page(unsigned long start_pfn,
154 static inline struct page *pageblock_pfn_to_page(unsigned long start_pfn, in pageblock_pfn_to_page() argument
158 return pfn_to_page(start_pfn); in pageblock_pfn_to_page()
160 return __pageblock_pfn_to_page(start_pfn, end_pfn, zone); in pageblock_pfn_to_page()
211 unsigned long start_pfn, unsigned long end_pfn);
433 extern void mminit_validate_memmodel_limits(unsigned long *start_pfn,
436 static inline void mminit_validate_memmodel_limits(unsigned long *start_pfn, in mminit_validate_memmodel_limits() argument
/Linux-v4.19/arch/mips/loongson64/loongson-3/
Dnuma.c128 u64 node_id, node_psize, start_pfn, end_pfn, mem_start, mem_size; in szmem() local
142 start_pfn = ((node_id << 44) + mem_start) >> PAGE_SHIFT; in szmem()
144 end_pfn = start_pfn + node_psize; in szmem()
149 start_pfn, end_pfn, num_physpages); in szmem()
152 memblock_add_node(PFN_PHYS(start_pfn), in szmem()
153 PFN_PHYS(end_pfn - start_pfn), node); in szmem()
156 start_pfn = ((node_id << 44) + mem_start) >> PAGE_SHIFT; in szmem()
158 end_pfn = start_pfn + node_psize; in szmem()
163 start_pfn, end_pfn, num_physpages); in szmem()
166 memblock_add_node(PFN_PHYS(start_pfn), in szmem()
[all …]
/Linux-v4.19/arch/x86/mm/
Dinit.c260 unsigned long start_pfn, unsigned long end_pfn, in save_mr() argument
263 if (start_pfn < end_pfn) { in save_mr()
266 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
338 unsigned long start_pfn, end_pfn, limit_pfn; in split_mem_range() local
345 pfn = start_pfn = PFN_DOWN(start); in split_mem_range()
362 if (start_pfn < end_pfn) { in split_mem_range()
363 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range()
368 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
377 if (start_pfn < end_pfn) { in split_mem_range()
378 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range()
[all …]
/Linux-v4.19/arch/x86/xen/
Dsetup.c93 static void __init xen_add_extra_mem(unsigned long start_pfn, in xen_add_extra_mem() argument
105 xen_extra_mem[i].start_pfn = start_pfn; in xen_add_extra_mem()
110 if (xen_extra_mem[i].start_pfn + xen_extra_mem[i].n_pfns == in xen_add_extra_mem()
111 start_pfn) { in xen_add_extra_mem()
119 memblock_reserve(PFN_PHYS(start_pfn), PFN_PHYS(n_pfns)); in xen_add_extra_mem()
122 static void __init xen_del_extra_mem(unsigned long start_pfn, in xen_del_extra_mem() argument
129 start_r = xen_extra_mem[i].start_pfn; in xen_del_extra_mem()
133 if (start_r == start_pfn) { in xen_del_extra_mem()
135 xen_extra_mem[i].start_pfn += n_pfns; in xen_del_extra_mem()
140 if (start_r + size_r == start_pfn + n_pfns) { in xen_del_extra_mem()
[all …]
/Linux-v4.19/arch/sparc/mm/
Dinit_32.c68 unsigned long start_pfn = sp_banks[i].base_addr >> PAGE_SHIFT; in calc_highpages() local
74 if (start_pfn < max_low_pfn) in calc_highpages()
75 start_pfn = max_low_pfn; in calc_highpages()
77 nr += end_pfn - start_pfn; in calc_highpages()
137 unsigned long start_pfn, bytes_avail, size; in bootmem_init() local
175 start_pfn = (unsigned long)__pa(PAGE_ALIGN((unsigned long) &_end)); in bootmem_init()
178 start_pfn >>= PAGE_SHIFT; in bootmem_init()
196 size = (start_pfn << PAGE_SHIFT) - phys_base; in bootmem_init()
235 static void map_high_region(unsigned long start_pfn, unsigned long end_pfn) in map_high_region() argument
240 printk("mapping high region %08lx - %08lx\n", start_pfn, end_pfn); in map_high_region()
[all …]
/Linux-v4.19/include/trace/events/
Dpage_isolation.h13 unsigned long start_pfn,
17 TP_ARGS(start_pfn, end_pfn, fin_pfn),
20 __field(unsigned long, start_pfn)
26 __entry->start_pfn = start_pfn;
32 __entry->start_pfn, __entry->end_pfn, __entry->fin_pfn,
Dcompaction.h17 unsigned long start_pfn,
22 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken),
25 __field(unsigned long, start_pfn)
32 __entry->start_pfn = start_pfn;
39 __entry->start_pfn,
48 unsigned long start_pfn,
53 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken)
59 unsigned long start_pfn,
64 TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken)
/Linux-v4.19/include/linux/
Dmemory_hotplug.h86 extern int test_pages_in_a_zone(unsigned long start_pfn, unsigned long end_pfn,
112 extern int __remove_pages(struct zone *zone, unsigned long start_pfn,
117 extern int __add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
121 static inline int add_pages(int nid, unsigned long start_pfn, in add_pages() argument
125 return __add_pages(nid, start_pfn, nr_pages, altmap, want_memblock); in add_pages()
128 int add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages,
302 extern int offline_pages(unsigned long start_pfn, unsigned long nr_pages);
314 static inline int offline_pages(unsigned long start_pfn, unsigned long nr_pages) in offline_pages() argument
323 extern int walk_memory_range(unsigned long start_pfn, unsigned long end_pfn,
329 extern void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,
[all …]
Dnode.h35 extern int link_mem_sections(int nid, unsigned long start_pfn,
38 static inline int link_mem_sections(int nid, unsigned long start_pfn, in link_mem_sections() argument
57 unsigned long start_pfn = pgdat->node_start_pfn; in register_one_node() local
58 unsigned long end_pfn = start_pfn + pgdat->node_spanned_pages; in register_one_node()
64 error = link_mem_sections(nid, start_pfn, end_pfn); in register_one_node()
Dpage-isolation.h49 start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
57 undo_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn,
63 int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn,
/Linux-v4.19/arch/parisc/mm/
Dinit.c173 if (pmem_ranges[j-1].start_pfn < in setup_bootmem()
174 pmem_ranges[j].start_pfn) { in setup_bootmem()
178 tmp = pmem_ranges[j-1].start_pfn; in setup_bootmem()
179 pmem_ranges[j-1].start_pfn = pmem_ranges[j].start_pfn; in setup_bootmem()
180 pmem_ranges[j].start_pfn = tmp; in setup_bootmem()
194 if (pmem_ranges[i].start_pfn - in setup_bootmem()
195 (pmem_ranges[i-1].start_pfn + in setup_bootmem()
200 pmem_ranges[i].start_pfn - in setup_bootmem()
201 (pmem_ranges[i-1].start_pfn + in setup_bootmem()
217 start = (pmem_ranges[i].start_pfn << PAGE_SHIFT); in setup_bootmem()
[all …]
/Linux-v4.19/arch/sh/mm/
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()
216 NODE_DATA(nid)->node_start_pfn = start_pfn; in allocate_pgdat()
217 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in allocate_pgdat()
226 unsigned long start_pfn, end_pfn; in do_init_bootmem() local
227 start_pfn = memblock_region_memory_base_pfn(reg); in do_init_bootmem()
229 __add_active_range(0, start_pfn, end_pfn); in do_init_bootmem()
249 unsigned long start_pfn; in early_reserve_mem() local
257 start_pfn = PFN_UP(__pa(_end)); in early_reserve_mem()
265 memblock_reserve(start, (PFN_PHYS(start_pfn) + PAGE_SIZE - 1) - start); in early_reserve_mem()
[all …]
Dnuma.c28 unsigned long start_pfn, end_pfn; in setup_bootmem_node() local
33 start_pfn = PFN_DOWN(start); in setup_bootmem_node()
41 __add_active_range(nid, start_pfn, end_pfn); in setup_bootmem_node()
48 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_bootmem_node()
49 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_bootmem_node()
/Linux-v4.19/arch/alpha/mm/
Dnuma.c50 i, cluster->usage, cluster->start_pfn, in show_mem_layout()
51 cluster->start_pfn + cluster->numpages); in show_mem_layout()
88 start = cluster->start_pfn; in setup_memory_node()
99 i, cluster->usage, cluster->start_pfn, in setup_memory_node()
100 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 …]
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dmemtrace.c73 static bool memtrace_offline_pages(u32 nid, u64 start_pfn, u64 nr_pages) in memtrace_offline_pages() argument
75 u64 end_pfn = start_pfn + nr_pages - 1; in memtrace_offline_pages()
77 if (walk_memory_range(start_pfn, end_pfn, NULL, in memtrace_offline_pages()
81 walk_memory_range(start_pfn, end_pfn, (void *)MEM_GOING_OFFLINE, in memtrace_offline_pages()
84 if (offline_pages(start_pfn, nr_pages)) { in memtrace_offline_pages()
85 walk_memory_range(start_pfn, end_pfn, (void *)MEM_ONLINE, in memtrace_offline_pages()
90 walk_memory_range(start_pfn, end_pfn, (void *)MEM_OFFLINE, in memtrace_offline_pages()
94 remove_memory(nid, start_pfn << PAGE_SHIFT, nr_pages << PAGE_SHIFT); in memtrace_offline_pages()
102 u64 start_pfn, end_pfn, nr_pages; in memtrace_alloc_node() local
108 start_pfn = node_start_pfn(nid); in memtrace_alloc_node()
[all …]
/Linux-v4.19/drivers/hv/
Dhv_balloon.c442 unsigned long start_pfn; member
455 unsigned long start_pfn; member
593 if ((pfn >= gap->start_pfn) && (pfn < gap->end_pfn)) in has_pfn_is_backed()
600 static unsigned long hv_page_offline_check(unsigned long start_pfn, in hv_page_offline_check() argument
603 unsigned long pfn = start_pfn, count = 0; in hv_page_offline_check()
607 while (pfn < start_pfn + nr_pages) { in hv_page_offline_check()
614 while ((pfn >= has->start_pfn) && in hv_page_offline_check()
616 (pfn < start_pfn + nr_pages)) { in hv_page_offline_check()
653 pfn_count = hv_page_offline_check(mem->start_pfn, in hv_memory_notifier()
697 unsigned long start_pfn, unsigned long size) in hv_bring_pgs_online() argument
[all …]
/Linux-v4.19/drivers/base/
Dmemory.c194 static bool pages_correctly_probed(unsigned long start_pfn) in pages_correctly_probed() argument
196 unsigned long section_nr = pfn_to_section_nr(start_pfn); in pages_correctly_probed()
198 unsigned long pfn = start_pfn; in pages_correctly_probed()
236 unsigned long start_pfn; in memory_block_action() local
240 start_pfn = section_nr_to_pfn(phys_index); in memory_block_action()
244 if (!pages_correctly_probed(start_pfn)) in memory_block_action()
247 ret = online_pages(start_pfn, nr_pages, online_type); in memory_block_action()
250 ret = offline_pages(start_pfn, nr_pages); in memory_block_action()
396 static void print_allowed_zone(char *buf, int nid, unsigned long start_pfn, in print_allowed_zone() argument
402 zone = zone_for_pfn_range(online_type, nid, start_pfn, nr_pages); in print_allowed_zone()
[all …]
/Linux-v4.19/arch/s390/numa/
Dnuma.c111 unsigned long start_pfn, end_pfn; in numa_setup_memory() local
115 start_pfn = ULONG_MAX; in numa_setup_memory()
118 if (t_start < start_pfn) in numa_setup_memory()
119 start_pfn = t_start; in numa_setup_memory()
123 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in numa_setup_memory()
/Linux-v4.19/arch/arm64/mm/
Dnuma.c230 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn) in setup_node_data() argument
237 if (start_pfn >= end_pfn) in setup_node_data()
253 NODE_DATA(nid)->node_start_pfn = start_pfn; in setup_node_data()
254 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn; in setup_node_data()
374 unsigned long start_pfn, end_pfn; in numa_register_nodes() local
376 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn); in numa_register_nodes()
377 setup_node_data(nid, start_pfn, end_pfn); in numa_register_nodes()
/Linux-v4.19/arch/powerpc/mm/
Dmem.c124 unsigned long start_pfn = start >> PAGE_SHIFT; in arch_add_memory() local
139 return __add_pages(nid, start_pfn, nr_pages, altmap, want_memblock); in arch_add_memory()
145 unsigned long start_pfn = start >> PAGE_SHIFT; in arch_remove_memory() local
154 page = pfn_to_page(start_pfn); in arch_remove_memory()
158 ret = __remove_pages(page_zone(page), start_pfn, nr_pages, altmap); in arch_remove_memory()
186 walk_system_ram_range(unsigned long start_pfn, unsigned long nr_pages, in walk_system_ram_range() argument
190 unsigned long end_pfn = start_pfn + nr_pages; in walk_system_ram_range()
195 tstart = max(start_pfn, memblock_region_memory_base_pfn(reg)); in walk_system_ram_range()

1234