Lines Matching refs:nr_pages
72 unsigned long nr_pages) in memtrace_clear_range() argument
81 for (pfn = start_pfn; pfn < start_pfn + nr_pages; pfn++) { in memtrace_clear_range()
89 static bool memtrace_offline_pages(u32 nid, u64 start_pfn, u64 nr_pages) in memtrace_offline_pages() argument
92 const unsigned long size = PFN_PHYS(nr_pages); in memtrace_offline_pages()
100 if (offline_pages(start_pfn, nr_pages)) { in memtrace_offline_pages()
115 u64 start_pfn, end_pfn, nr_pages, pfn; in memtrace_alloc_node() local
124 nr_pages = size >> PAGE_SHIFT; in memtrace_alloc_node()
127 end_pfn = round_down(end_pfn - nr_pages, nr_pages); in memtrace_alloc_node()
130 for (base_pfn = end_pfn; base_pfn > start_pfn; base_pfn -= nr_pages) { in memtrace_alloc_node()
131 if (memtrace_offline_pages(nid, base_pfn, nr_pages) == true) { in memtrace_alloc_node()
136 memtrace_clear_range(base_pfn, nr_pages); in memtrace_alloc_node()
143 end_pfn = base_pfn + nr_pages; in memtrace_alloc_node()