Lines Matching refs:page

43   hibernate_setup() in osfmk is called to allocate page bitmaps for all dram, and
44 page out any pages it wants to (currently zero, but probably some percentage of memory).
67 Each wired page is compressed and written and then each non-wired page. Compression and
83 - hibernate_kernel_entrypoint() removes pages occupied by the raw image from the page bitmaps.
185 static uint32_t gIOHibernateFreeRatio = 0; // free page target (percent)
344 // free page
359 uint32_t page = *pPage;
363 while ((bitmap = hibernate_page_bitmap_pin(list, &page)))
365 count = hibernate_page_bitmap_count(bitmap, TRUE, page);
368 page += count;
369 if (page <= bitmap->last_page)
373 *pPage = page;
375 count = hibernate_page_bitmap_count(bitmap, FALSE, page);
2055 vm_offset_t ppnum, page;
2147 for (page = 0; page < count; page++)
2149 HIBLOG("fileExtents[%d] %qx, %qx (%qx)\n", page,
2150 fileExtents[page].start, fileExtents[page].length,
2151 fileExtents[page].start + fileExtents[page].length);
2209 page = atop_32(kvtophys(hibernateBase));
2211 header->restore1CodePhysPage = page;
2219 for (page = 0; page < count; page++)
2222 restore1Sum += hibernate_sum_page(src, header->restore1CodeVirt + page);
2290 for (page = 0; page < count; page += page_size)
2292 phys64 = vars->previewBuffer->getPhysicalSegment(page, NULL, kIOMemoryMapperNone);
2293 sum1 += hibernate_sum_page(src + page, atop_64(phys64));
2336 page = atop_32(KERNEL_IMAGE_TO_PHYS(hibernateBase));
2337 count = atop_32(round_page(KERNEL_IMAGE_TO_PHYS(hibernateEnd))) - page;
2339 page, count,
2440 for (page = ppnum; page < (ppnum + count); page++)
2442 err = IOMemoryDescriptorWriteFromPhysical(vars->srcBuffer, 0, ptoa_64(page), page_size);
2445 HIBLOG("IOMemoryDescriptorWriteFromPhysical %d [%ld] %x\n", __LINE__, (long)page, err);
2449 sum = hibernate_sum_page(src, page);
2516 ppnum = page;
2819 unsigned int page;
2835 for (page = 0; page < count; page++)