| /xnu-11215/osfmk/vm/ |
| H A D | WKdm_new.h | 81 WK_word* scratch, 86 WK_word* scratch, 92 WK_word* scratch, 97 WK_word* scratch, 104 WK_word* scratch, 109 WK_word* scratch,
|
| H A D | vm_compressor_algorithms.c | 239 WKdmD(WK_word* src_buf, WK_word* dest_buf, WK_word* scratch, unsigned int bytes, in WKdmD() argument 248 WKdm_decompress_4k(src_buf, dest_buf, scratch, bytes); in WKdmD() 255 WKdm_decompress_16k(src_buf, dest_buf, scratch, bytes); in WKdmD() 261 WKdm_decompress_new(src_buf, dest_buf, scratch, bytes); in WKdmD() 270 WKdmC(WK_word* src_buf, WK_word* dest_buf, WK_word* scratch, in WKdmC() argument 278 wkcval = WKdm_compress_4k(src_buf, dest_buf, scratch, limit); in WKdmC() 286 int wkswsz = WKdm_compress_16k(src_buf, dest_buf, scratch, limit); in WKdmC() 293 wkcval = WKdm_compress_new(src_buf, dest_buf, scratch, limit); in WKdmC()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOHibernateRestoreKernel.c | 456 __nosan_bzero(scratch, sizeof(*scratch)); in hibernate_scratch_init() 457 scratch->map = map; in hibernate_scratch_init() 459 scratch->headPage = hibernate_page_list_grab(scratch->map, scratch->nextFree); in hibernate_scratch_init() 460 scratch->curPage = (uint8_t *)pal_hib_map(SCRATCH_AREA, ptoa_64(scratch->headPage)); in hibernate_scratch_init() 472 *scratch = result; in hibernate_scratch_start_read() 481 HIB_ASSERT(scratch->curPos + size <= scratch->totalLength); in hibernate_scratch_io() 486 ppnum_t *nextPage = (ppnum_t *)(scratch->curPage + scratch->curPagePos); in hibernate_scratch_io() 489 *nextPage = hibernate_page_list_grab(scratch->map, scratch->nextFree); in hibernate_scratch_io() 492 scratch->curPagePos = 0; in hibernate_scratch_io() 498 __nosan_memcpy(scratch->curPage + scratch->curPagePos, buffer, toCopy); in hibernate_scratch_io() [all …]
|
| H A D | IOHibernateIO.cpp | 1659 uint8_t * scratch; in hibernate_write_image() local 2011 scratch = compressed + page_size; in hibernate_write_image() 2114 (WK_word*) scratch, in hibernate_write_image() 2566 uint8_t * scratch = compressed + page_size; in hibernate_machine_init() local 2667 pal_hib_decompress_page(src, compressed, scratch, ((unsigned int) compressedSize)); in hibernate_machine_init()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skywalk_test_utils.c | 178 scratch = -1; in sktc_build_nexus() 184 scratch = -1; in sktc_build_nexus() 191 scratch = -1; in sktc_build_nexus() 197 scratch = -1; in sktc_build_nexus() 203 scratch = -1; in sktc_build_nexus() 209 scratch = -1; in sktc_build_nexus() 215 scratch = -1; in sktc_build_nexus() 221 scratch = -1; in sktc_build_nexus() 227 scratch = -1; in sktc_build_nexus() 233 scratch = -1; in sktc_build_nexus() [all …]
|
| H A D | skt_netifcompat.c | 204 uuid_t scratch; in skt_fsw_common() local 236 uuid_clear(scratch); in skt_fsw_common() 238 ms_instance, NULL, sktc_instance_uuid, false, &scratch); in skt_fsw_common() 242 assert(uuid_is_null(scratch)); in skt_fsw_common()
|
| /xnu-11215/osfmk/arm64/ |
| H A D | WKdmDecompress_16k.s | 107 #define scratch x2 macro 194 mov rcx, scratch // tempTagsArray 242 add rcx, scratch, #(1024*scale) // tempQPosArray 270 add rcx, scratch, #(2048*scale) // tempLowBitsArray 272 add r11, scratch, #(4096*scale-2) // final tenbits for the rare case 274 add r11, scratch, #(4096*scale) // final tenbits for the rare case 349 mov next_tag, scratch // tempTagsArray 350 add r8, scratch, #(1024*scale) // next_qpos 351 add r11, scratch, #(2048*scale) // tempLowBitsArray
|
| H A D | WKdmDecompress_4k.s | 107 #define scratch x2 macro 194 mov rcx, scratch // tempTagsArray 242 add rcx, scratch, #(1024*scale) // tempQPosArray 270 add rcx, scratch, #(2048*scale) // tempLowBitsArray 272 add r11, scratch, #(4096*scale-2) // final tenbits for the rare case 274 add r11, scratch, #(4096*scale) // final tenbits for the rare case 349 mov next_tag, scratch // tempTagsArray 350 add r8, scratch, #(1024*scale) // next_qpos 351 add r11, scratch, #(2048*scale) // tempLowBitsArray
|
| H A D | WKdmCompress_4k.s | 185 #define scratch x2 macro 263 add next_qp, scratch, #(1024*scale) // next_qp 267 add next_low_bits, scratch, #(2048*scale) // &tempLowBitsArray[0] 287 add tempQPosArray, scratch, #(1024*scale) // &tempQPosArray[0] 424 add rcx, scratch, #(2048*scale) // tempLowBitsArray
|
| H A D | WKdmCompress_16k.s | 187 #define scratch x2 macro 265 add next_qp, scratch, #(1024*scale) // next_qp 269 add next_low_bits, scratch, #(2048*scale) // &tempLowBitsArray[0] 289 add tempQPosArray, scratch, #(1024*scale) // &tempQPosArray[0] 426 add rcx, scratch, #(2048*scale) // tempLowBitsArray
|
| H A D | hibernate_restore.c | 113 pal_hib_decompress_page(void *src, void *dst, void *scratch, unsigned int compressedSize) in pal_hib_decompress_page() argument 118 __nosan_memcpy(scratch, src, compressedSize); in pal_hib_decompress_page() 119 wkdmSrc = scratch; in pal_hib_decompress_page()
|
| H A D | proc_reg.h | 2715 .macro EXEC_COREIN_REVALL midr_el1, scratch, midr_list:vararg 2716 and \scratch, \midr_el1, #MIDR_EL1_PNUM_MASK 2717 CMP_FOREACH \scratch, eq, Lmatch\@, \midr_list 2830 .macro DEPRECATE_COREEQ_REVLO core, rev, midr_el1, scratch 2831 EXEC_COREEQ_REVLO \core, \rev, \midr_el1, \scratch
|
| /xnu-11215/bsd/dev/i386/ |
| H A D | fasttrap_isa.c | 1427 scratch[i++] = FASTTRAP_JMP32; in fasttrap_pid_probe32() 1435 scratch[i++] = FASTTRAP_INT; in fasttrap_pid_probe32() 1436 scratch[i++] = T_DTRACE_RET; in fasttrap_pid_probe32() 1438 ASSERT(i <= sizeof (scratch)); in fasttrap_pid_probe32() 2032 scratch[i++] = FASTTRAP_MOV_EAX; in fasttrap_pid_probe64() 2034 scratch[i++] = FASTTRAP_MOV_ECX; in fasttrap_pid_probe64() 2059 *(uint64_t *)&scratch[i] = *reg; in fasttrap_pid_probe64() 2075 *(uint32_t *)&scratch[i] = 0; in fasttrap_pid_probe64() 2084 scratch[i++] = FASTTRAP_INT; in fasttrap_pid_probe64() 2085 scratch[i++] = T_DTRACE_RET; in fasttrap_pid_probe64() [all …]
|
| /xnu-11215/tests/ |
| H A D | net_tuntests.c | 155 int scratch; in check_enables() local 168 scratchlen = sizeof(scratch); in check_enables() 188 scratchlen = sizeof(scratch); in check_enables() 190 &scratch, &scratchlen), NULL); in check_enables() 194 scratchlen = sizeof(scratch); in check_enables() 196 &scratch, &scratchlen), NULL); in check_enables() 205 T_QUIET; T_EXPECT_EQ(scratch, 0, NULL); in check_enables() 208 scratchlen = sizeof(scratch); in check_enables() 210 &scratch, &scratchlen), NULL); in check_enables() 213 T_QUIET; T_EXPECT_EQ(scratch, 0, NULL); in check_enables() [all …]
|
| H A D | stackshot_tests.m | 2960 * extra scratch space (+12.5%) in case totalin was inconsistent
|
| /xnu-11215/osfmk/i386/ |
| H A D | hibernate_restore.c | 128 pal_hib_decompress_page(void *src, void *dst, void *scratch, unsigned int compressedSize) in pal_hib_decompress_page() argument 130 WKdm_decompress_new((WK_word*)src, (WK_word*)dst, (WK_word*)scratch, compressedSize); in pal_hib_decompress_page()
|
| H A D | panic_hooks.c | 125 void *scratch = panic_dump_buf + 4096; in panic_dump_mem() local 134 scratch, 4095); in panic_dump_mem()
|
| /xnu-11215/iokit/IOKit/ |
| H A D | IOHibernatePrivate.h | 649 hibernate_scratch_init(hibernate_scratch_t * scratch, hibernate_page_list_t * map, uint32_t * nextF… 652 hibernate_scratch_start_read(hibernate_scratch_t * scratch); 655 hibernate_scratch_write(hibernate_scratch_t * scratch, const void * buffer, size_t size); 658 hibernate_scratch_read(hibernate_scratch_t * scratch, void * buffer, size_t size);
|
| /xnu-11215/osfmk/machine/ |
| H A D | pal_hibernate.h | 165 void pal_hib_decompress_page(void *src, void *dst, void *scratch, unsigned int compressedSize);
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_exclave_fs.c | 1579 char *scratch; in vfs_exclave_is_enospc_exclave() local 1596 scratch = scratch_base; in vfs_exclave_is_enospc_exclave() 1599 while ((element = strsep(&scratch, ",")) != NULL) { in vfs_exclave_is_enospc_exclave()
|
| /xnu-11215/security/ |
| H A D | mac_base.c | 1014 char *scratch; in mac_externalize() local 1033 scratch = scratch_base; in mac_externalize() 1048 while ((element = strsep(&scratch, ",")) != NULL) { in mac_externalize()
|
| /xnu-11215/doc/lifecycle/ |
| H A D | hibernation.md | 193 pages that conflict with the image itself are copied to interim scratch space. 195 to scratch are uncompressed to their final location, overwriting pages in the
|
| /xnu-11215/bsd/kern/ |
| H A D | uipc_mbuf.c | 9905 static unsigned char scratch[32]; local 9913 bzero(scratch, sizeof(scratch)); 9914 scratch_pa = pmap_find_phys(kernel_pmap, (addr64_t)scratch); 9920 for (k = 0; k < sizeof(scratch); k++) { 9921 if (scratch[k]) {
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 1494 na->na_scratch = skn_alloc_type_array(scratch, kern_packet_t, in na_kr_create() 1728 skn_free_type_array_counted_by(scratch, kern_packet_t, na->na_scratch_cnt, in na_kr_create()
|