Lines Matching defs:pages

103 pgcnt_t	i_cpr_storage_data_sz;		/* in pages */
104 pgcnt_t i_cpr_storage_desc_pgcnt; /* in pages */
135 * definitions for saving/restoring prom pages
187 * pages and the cif cookie may differ as well. so prior to restoring the
217 * and restore the original prom pages
247 * at this point, only the nucleus and a few cpr pages are
281 * prom_xxx() routines until after prom pages are restored.
679 * create tmp locked tlb entries for a group of phys pages;
685 i_cpr_mapin(caddr_t vaddr, uint_t pages, pfn_t ppn)
691 curthreadremapped = (ppn <= curthreadpfn && curthreadpfn < ppn + pages);
693 for (; pages--; ppn++, vaddr += MMU_PAGESIZE) {
702 i_cpr_mapout(caddr_t vaddr, uint_t pages)
707 (caddr_t)curthread < vaddr + pages * MMU_PAGESIZE)
710 for (; pages--; vaddr += MMU_PAGESIZE)
732 * This function takes care of pages which are not in kas or need to be
733 * taken care of in a special way. For example, panicbuf pages are not
734 * in kas and their pages are allocated via prom_retain().
740 pgcnt_t pages, total = 0;
744 * Save information about prom retained panicbuf pages
754 * Go through the prom_retain array to tag those pages.
758 pages = mmu_btopr(pri->size);
759 for (pfn = ADDR_TO_PN(pri->phys); pages--; pfn++) {
790 * Save the sensitive pages to the storage area and do bookkeeping
792 * than CPR_MAXCONTIG amount of contiguous pages to match the max amount
793 * of pages that statefile gets written to disk at each write.
808 * This routine allocates space to save the sensitive kernel pages,
813 * A list of descriptors describing the saved sensitive pages.
814 * The storage area for saving the compressed sensitive kernel pages.
815 * Since storage pages are allocated from segkmem, they need to be
825 pgcnt_t pages, spages, vpages;
836 * pages will be claimed by cprboot.
842 pages = spages - vpages;
845 CPR_DEBUG(CPR_DEBUG7, pages_fmt, "before", str, spages, vpages, pages);
853 * of insufficient storage for sensitive pages
862 addr = i_cpr_storage_data_alloc(pages,
895 * retag the sensitive kpages again. The storage pages
909 * ENOMEM if not enough space to save sensitive pages
911 CPR_DEBUG(CPR_DEBUG1, "compressing pages to storage...\n");
915 CPR_DEBUG(CPR_DEBUG1, "compressed %d pages\n",
929 * the sensitive pages with compression.
932 i_cpr_storage_data_alloc(pgcnt_t pages, pgcnt_t *alloc_pages, int retry_cnt)
946 *alloc_pages = (pages * alloc_pcnt) / INTEGRAL;
947 CPR_DEBUG(CPR_DEBUG7, "%s sensitive pages: %ld\n", str, pages);
949 "%s initial est pages: %ld, alloc %ld%%\n",
954 * from the last attempt to save sensitive pages
964 * pages * (last + [5%, 10%])
968 *alloc_pages = (pages * alloc_pcnt) / INTEGRAL;
969 CPR_DEBUG(CPR_DEBUG7, "%s Retry est pages: %ld, alloc %ld%%\n",
974 CPR_DEBUG(CPR_DEBUG7, "%s alloc %ld pages\n", str, *alloc_pages);
1004 * 2. Compress and save the clean sensitive pages into the storage area.
1007 i_cpr_compress_and_save(int chunks, pfn_t spfn, pgcnt_t pages)
1033 descp->csd_dirty_npages = pages;
1035 i_cpr_mapin(CPR->c_mapping_area, pages, spfn);
1038 * try compressing pages and copy cpd fields
1042 datap = cpr_compress_pages(&cpd, pages, C_COMPRESSING);
1073 * Check to see if the content of the sensitive pages that we
1076 test_usum = checksum32(CPR->c_mapping_area, mmu_ptob(pages));
1083 "into storage.", spfn, (spfn + pages - 1));
1089 i_cpr_mapout(CPR->c_mapping_area, pages);
1097 * pages in use and mark them in the corresponding bitmap.
1109 * Kernel data nucleus pages
1116 * kvseg and kvalloc pages
1128 "\tkdata_cnt %ld + segkmem_cnt %ld = %ld pages\n",
1251 * 1. Fill the cpr page descriptor with the info of the dirty pages
1350 * of pages from different sources to statefile.
1501 * find prom phys pages and alloc space for a tmp copy
1534 * clear bits for phys pages in each segment
1539 * set bits for phys pages referenced by the promvp vnode;
1540 * these pages are mostly comprised of forthdebug words
1552 * total number of prom pages are:
1553 * (non-page_t pages - seg pages + vnode pages)
1571 * phys pages referenced in the bitmap should be
1590 * allocate space to store prom pages
1605 * save prom pages to kmem pages
1625 CPR_DEBUG(CPR_DEBUG1, "saved %ld prom pages\n", ppage_count);
1630 * restore prom pages from kmem pages
1654 CPR_DEBUG(CPR_DEBUG1, "restored %ld prom pages\n", ppage_count);
1659 * save/restore prom pages or free related allocs
1685 CPR_DEBUG(CPR_DEBUG1, "freed %ld prom pages\n",
1701 * the info recorded prior to saving sensitive pages, otherwise
1738 * jump to that page after restoring kernel pages.
1800 * compressed pages are written; even the inode size doesn't reflect the
1912 * physical memory. The volatile maps are used to count and track pages
1915 * susceptible pages. Before writing the bitmaps to the statefile,