Lines Matching defs:to

4  * The contents of this file are subject to the terms of the
23 * Use is subject to license terms.
29 * 2. Allocate bitmaps according to phys_install
31 * 4. Write bitmaps to state file
32 * 5. Write actual physical page data to state file
58 #define BTOb(bytes) ((bytes) << 3) /* Bytes to bits, log2(NBBY) */
59 #define bTOB(bits) ((bits) >> 3) /* bits to Bytes, log2(NBBY) */
94 static char *cpr_wptr; /* keep track of where to write to next */
105 * during bcopy (eg, to prevent cpu migration). If the
111 * need to copy overlaps with our thread structure we will
115 cprbcopy(void *from, void *to, size_t bytes)
123 caddr_t src = from, dst = to;
128 bcopy(from, to, bytes);
138 char *allocerr = "Unable to allocate memory for cpr buffer";
142 * set the cpr write buffer size to at least the historic
143 * size (128k) or large enough to store the both the early
145 * bitmaps, and roundup to the next pagesize.
189 * 1. header magic -- unique to cpr state file
215 * Remember how many pages we plan to save to statefile.
217 * Untag those pages that will not be saved to statefile.
231 * is dumped to disk. We have already untagged them from regular
253 * go retry now to save un-necessary operations.
271 * 1. header magic -- unique to cpr state file
272 * 2. all misc info that needs to be passed to cprboot or resumed kernel
310 * and write to disk
341 * to get an accurate view of kas, we need to untag sensitive
352 * now it's OK to call a driver that makes allocations
358 * according to the sensitive descriptors
378 * sanity check to verify the right number of pages were dumped
419 /* point to top of internal buffer */
441 * set internal cross checking; we dont want to call
448 * 1253112: heap corruption due to memory allocation when dumpping
452 * during sddump, which is not supposed to happen after the system
453 * is quiesced. Let's call the kernel pages that tend to be affected
455 * will allocate some storage space to save the clean sensitive pages
533 * If we are about to start walking the range of addresses we
535 * heap_lp_arena to find what segments are actually populated
548 * faster scan of kvseg using vmem_walk() to visit
591 * faster scan of segkpm using hat_kpm_walk() to visit only used ranges.
624 #define KSEG_PTR_ADDR 1 /* address of pointer to struct seg */
628 pgcnt_t (*st_fcn)(int, bitfunc_t, struct seg *); /* function to call */
663 * to find out whether a sparsely filled segment needs special
666 * module shouldn't need to know segment details like if it is
699 * Some pages need to be taken care of differently.
701 * to be saved. On sun4u, the physical pages of panicbuf are
716 * Set a bit corresponding to the arg phys page number;
743 * Clear a bit corresponding to the arg phys page number.
776 * Lookup a bit corresponding to the arg phys page number.
799 * stage. This is also used to save pages with cow lock or phys page lock held
851 * set length to the original uncompressed data size;
852 * always init cpd_flag to zero
872 * try compressing the raw data to cpr_pagedata;
874 * flag the compression, and point to the compressed data.
888 * decompress the data back to a scratch area
890 * checksum to verify the compression.
906 * 1. Prepare cpr page descriptor and write it to file
975 * calculate count up to buf page boundary, then write it out.
1021 cpr_wptr = cpr_buf; /* back to top of buffer */
1034 * Calculate remaining blocks in buffer, rounded up to nearest