Lines Matching refs:pfn
127 unsigned long i, pfn; in show_mem_removable() local
134 pfn = section_nr_to_pfn(mem->start_section_nr + i); in show_mem_removable()
135 ret &= is_mem_section_removable(pfn, PAGES_PER_SECTION); in show_mem_removable()
192 unsigned long pfn = start_pfn; in pages_correctly_reserved() local
199 for (i = 0; i < sections_per_block; i++, pfn += PAGES_PER_SECTION) { in pages_correctly_reserved()
200 if (WARN_ON_ONCE(!pfn_valid(pfn))) in pages_correctly_reserved()
202 page = pfn_to_page(pfn); in pages_correctly_reserved()
210 pfn_to_section_nr(pfn), j); in pages_correctly_reserved()
530 u64 pfn; in store_soft_offline_page() local
533 if (kstrtoull(buf, 0, &pfn) < 0) in store_soft_offline_page()
535 pfn >>= PAGE_SHIFT; in store_soft_offline_page()
536 if (!pfn_valid(pfn)) in store_soft_offline_page()
538 ret = soft_offline_page(pfn_to_page(pfn), 0); in store_soft_offline_page()
549 u64 pfn; in store_hard_offline_page() local
552 if (kstrtoull(buf, 0, &pfn) < 0) in store_hard_offline_page()
554 pfn >>= PAGE_SHIFT; in store_hard_offline_page()
555 ret = memory_failure(pfn, 0, 0); in store_hard_offline_page()