Lines Matching refs:pfn
32 static struct page *page_idle_get_page(unsigned long pfn) in page_idle_get_page() argument
34 struct page *page = pfn_to_online_page(pfn); in page_idle_get_page()
120 unsigned long pfn, end_pfn; in page_idle_bitmap_read() local
126 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_read()
127 if (pfn >= max_pfn) in page_idle_bitmap_read()
130 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_read()
134 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_read()
135 bit = pfn % BITMAP_CHUNK_BITS; in page_idle_bitmap_read()
138 page = page_idle_get_page(pfn); in page_idle_bitmap_read()
165 unsigned long pfn, end_pfn; in page_idle_bitmap_write() local
171 pfn = pos * BITS_PER_BYTE; in page_idle_bitmap_write()
172 if (pfn >= max_pfn) in page_idle_bitmap_write()
175 end_pfn = pfn + count * BITS_PER_BYTE; in page_idle_bitmap_write()
179 for (; pfn < end_pfn; pfn++) { in page_idle_bitmap_write()
180 bit = pfn % BITMAP_CHUNK_BITS; in page_idle_bitmap_write()
182 page = page_idle_get_page(pfn); in page_idle_bitmap_write()