Lines Matching refs:ppnum
302 hibernate_sum_page(uint8_t *buf, uint32_t ppnum) in hibernate_sum_page() argument
304 return ((uint32_t *)buf)[((PAGE_SIZE >> 2) - 1) & ppnum]; in hibernate_sum_page()
526 uint8_t * scratch, uint32_t ppnum) in store_one_page() argument
528 uint64_t dst = ptoa_64(ppnum); in store_one_page()
552 return hibernate_sum_page((uint8_t *)(uintptr_t)dst, ppnum); in store_one_page()
561 uint32_t ppnum; in hibernate_reserve_restore_pages() local
564 for (ppnum = atop_64_ppnum(headerPhys); ppnum <= lastImagePage; ppnum++) { in hibernate_reserve_restore_pages()
565 hibernate_page_bitset(map, FALSE, ppnum); in hibernate_reserve_restore_pages()
568 for (ppnum = handoffPages; ppnum < (handoffPages + handoffPageCount); ppnum++) { in hibernate_reserve_restore_pages()
569 hibernate_page_bitset(map, FALSE, ppnum); in hibernate_reserve_restore_pages()
586 uint32_t ppnum; in hibernate_kernel_entrypoint() local
724 ppnum = pageIndexSource[0]; in hibernate_kernel_entrypoint()
737 ppnum = src[0]; in hibernate_kernel_entrypoint()
754 for (page = 0; page < count; page++, ppnum++) { in hibernate_kernel_entrypoint()
761 ppnum = gIOHibernateHandoffPages[page]; in hibernate_kernel_entrypoint()
771 conflicts = (ppnum >= atop_64_ppnum(mapPhys)) && (ppnum <= lastMapPage); in hibernate_kernel_entrypoint()
773 conflicts |= ((ppnum >= atop_64_ppnum(imageReadPhys)) && (ppnum <= lastImagePage)); in hibernate_kernel_entrypoint()
776 …conflicts |= ((ppnum >= atop_64_ppnum(srcPhys)) && (ppnum <= (handoffPages + handoffPageCount - 1)… in hibernate_kernel_entrypoint()
780 conflicts |= ((ppnum >= atop_64_ppnum(pageIndexPhys)) && (ppnum <= lastPageIndexPage)); in hibernate_kernel_entrypoint()
785 src, compressedSize, wkdmScratch, ppnum); in hibernate_kernel_entrypoint()
797 hibernate_scratch_write(&conflictList, &ppnum, sizeof(ppnum)); in hibernate_kernel_entrypoint()
804 pal_hib_restored_page(&palHibCtx, stage, ppnum); in hibernate_kernel_entrypoint()
817 hibernate_scratch_read(&conflictList, &ppnum, sizeof(ppnum)); in hibernate_kernel_entrypoint()
823 src, compressedSize, wkdmScratch, ppnum); in hibernate_kernel_entrypoint()