• Home
  • Raw
  • Download

Lines Matching refs:pages

302 	struct page *pages;  in kimage_alloc_pages()  local
306 pages = alloc_pages(gfp_mask & ~__GFP_ZERO, order); in kimage_alloc_pages()
307 if (pages) { in kimage_alloc_pages()
310 pages->mapping = NULL; in kimage_alloc_pages()
311 set_page_private(pages, order); in kimage_alloc_pages()
314 SetPageReserved(pages + i); in kimage_alloc_pages()
316 arch_kexec_post_alloc_pages(page_address(pages), count, in kimage_alloc_pages()
321 clear_highpage(pages + i); in kimage_alloc_pages()
324 return pages; in kimage_alloc_pages()
368 struct page *pages; in kimage_alloc_normal_control_pages() local
380 pages = kimage_alloc_pages(KEXEC_CONTROL_MEMORY_GFP, order); in kimage_alloc_normal_control_pages()
381 if (!pages) in kimage_alloc_normal_control_pages()
383 pfn = page_to_boot_pfn(pages); in kimage_alloc_normal_control_pages()
389 list_add(&pages->lru, &extra_pages); in kimage_alloc_normal_control_pages()
390 pages = NULL; in kimage_alloc_normal_control_pages()
392 } while (!pages); in kimage_alloc_normal_control_pages()
394 if (pages) { in kimage_alloc_normal_control_pages()
396 list_add(&pages->lru, &image->control_pages); in kimage_alloc_normal_control_pages()
414 return pages; in kimage_alloc_normal_control_pages()
442 struct page *pages; in kimage_alloc_crash_control_pages() local
444 pages = NULL; in kimage_alloc_crash_control_pages()
470 pages = pfn_to_page(hole_start >> PAGE_SHIFT); in kimage_alloc_crash_control_pages()
477 if (pages) in kimage_alloc_crash_control_pages()
478 arch_kexec_post_alloc_pages(page_address(pages), 1 << order, 0); in kimage_alloc_crash_control_pages()
480 return pages; in kimage_alloc_crash_control_pages()
487 struct page *pages = NULL; in kimage_alloc_control_pages() local
491 pages = kimage_alloc_normal_control_pages(image, order); in kimage_alloc_control_pages()
494 pages = kimage_alloc_crash_control_pages(image, order); in kimage_alloc_control_pages()
498 return pages; in kimage_alloc_control_pages()