Lines Matching refs:ppnum
226 hibernate_sum_page(uint8_t *buf, uint32_t ppnum)
228 return (((uint32_t *)buf)[((PAGE_SIZE >> 2) - 1) & ppnum]);
377 uint32_t * buffer, uint32_t ppnum)
379 uint64_t dst = ptoa_64(ppnum);
391 return hibernate_sum_page((uint8_t *)(uintptr_t)dst, ppnum);
425 uint32_t ppnum;
482 for (ppnum = atop_64(headerPhys); ppnum <= lastImagePage; ppnum++)
484 hibernate_page_bitset(map, FALSE, ppnum);
487 for (ppnum = handoffPages; ppnum < (handoffPages + handoffPageCount); ppnum++)
489 hibernate_page_bitset(map, FALSE, ppnum);
550 ppnum = pageIndexSource[0];
561 ppnum = src[0];
578 for (page = 0; page < count; page++, ppnum++)
585 if (2 == stage) ppnum = gIOHibernateHandoffPages[page];
594 conflicts = (ppnum >= atop_64(mapPhys)) && (ppnum <= lastMapPage);
596 conflicts |= ((ppnum >= atop_64(imageReadPhys)) && (ppnum <= lastImagePage));
599 conflicts |= ((ppnum >= atop_64(srcPhys)) && (ppnum <= (handoffPages + handoffPageCount - 1)));
602 conflicts |= ((ppnum >= atop_64(pageIndexPhys)) && (ppnum <= lastPageIndexPage));
608 src, compressedSize, 0, ppnum);
618 // debug_code(kIOHibernateRestoreCodeConflictPage, ppnum);
642 copyPageList[copyPageIndex++] = ppnum;
667 ppnum = copyPageList[copyPageIndex + 0];
674 src, compressedSize, 0, ppnum);