Home
last modified time | relevance | path

Searched refs:chunk_size (Results 1 – 9 of 9) sorted by relevance

/xnu-11215/tests/vm_memory_tests_src/
H A Dcommon.c123 mach_vm_size_t chunk_size = 0; in mach_server_create_allocation() local
130 chunk_size = MIN(size, (mach_vm_size_t)sb.st_size); in mach_server_create_allocation()
132 if (chunk_size == 0) { in mach_server_create_allocation()
140 printf("Chunks of size: 0x%llx and count: %d\n", chunk_size, chunk_count); in mach_server_create_allocation()
144 memcpy((void*)(localsrc + (i * chunk_size)), buffer, chunk_size); in mach_server_create_allocation()
/xnu-11215/osfmk/console/
H A Dserial_console.c533 int chunk_size = CPU_CONS_BUF_SIZE; in console_write() local
560 if (size < chunk_size) { in console_write()
561 chunk_size = size; in console_write()
570 while ((write_ptr = console_ring_reserve_space(chunk_size)) == NULL) { in console_write()
578 for (i = 0; i < chunk_size; i++) { in console_write()
584 size -= chunk_size; in console_write()
/xnu-11215/bsd/kern/
H A Dchunklist.c222 buf = kalloc_data(chk->chunk_size, Z_WAITOK); in validate_root_image()
227 bufsz = chk->chunk_size; in validate_root_image()
230 if (chk->chunk_size > bufsz) { in validate_root_image()
236 err = vn_rdwr(UIO_READ, vp, (caddr_t)buf, chk->chunk_size, in validate_root_image()
252 SHA256_Update(&sha_ctx, buf, chk->chunk_size); in validate_root_image()
257 AUTHPRNT("SHA mismatch on chunk %lu (offset %lld, size %u)", ch, offset, chk->chunk_size); in validate_root_image()
262 if (os_add_overflow(offset, chk->chunk_size, &offset)) { in validate_root_image()
H A Dchunklist.h30 uint32_t chunk_size; member
H A Dsysv_shm.c512 vm_map_size_t chunk_size; in shmat() local
515 chunk_size = shm_handle->shm_handle_size; in shmat()
516 if (chunk_size > map_size - mapped_size) { in shmat()
523 chunk_size = map_size - mapped_size; in shmat()
528 chunk_size, /* size to map */ in shmat()
541 mapped_size += chunk_size; in shmat()
542 attach_va = attach_va + chunk_size; in shmat()
H A Dkern_sysctl.c6065 size_t num_copied, chunk_size; variable
6066 for (num_copied = 0, chunk_size = 0;
6068 num_copied += chunk_size) {
6069 chunk_size = MIN(output_size - num_copied, copysize_limit_panic);
6070 error = SYSCTL_OUT(req, (char *)buffer + num_copied, chunk_size);
/xnu-11215/osfmk/vm/
H A Dvm_page_internal.h473 vm_size_t chunk_size,
H A Dvm_map.c2818 vm_map_size_t chunk_size = 0; in vm_map_enter() local
2829 chunk_size = (4ULL * 1024 * 1024 * 1024); /* max. 4GB chunks for the new allocation */ in vm_map_enter()
2831 chunk_size = ANON_CHUNK_SIZE; in vm_map_enter()
2834 chunk_size = ANON_CHUNK_SIZE; in vm_map_enter()
3054 chunk_size = MALLOC_MEDIUM_CHUNK_SIZE; in vm_map_enter()
3376 size > chunk_size && in vm_map_enter()
3379 tmp_end = tmp_start + chunk_size; in vm_map_enter()
3552 (tmp_end = (tmp2_end - tmp_end > chunk_size) ? in vm_map_enter()
3553 tmp_end + chunk_size : tmp2_end)); in vm_map_enter()
H A Dvm_fault.c8047 vm_size_t chunk_size, in vm_page_validate_cs_mapped_chunk() argument
8100 chunk_size, in vm_page_validate_cs_mapped_chunk()