Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 183) sorted by relevance

12345678

/xnu-11215/libkern/zlib/
H A Dinflate.c380 if (dist > copy) dist = copy; in updatewindow()
382 copy -= dist; in updatewindow()
383 if (copy) { in updatewindow()
384 zmemcpy(state->window, strm->next_out - copy, copy); in updatewindow()
710 if (copy > have) copy = have; in inflate()
859 if (copy > have) copy = have; in inflate()
860 if (copy > left) copy = left; in inflate()
1093 copy = state->offset - copy; in inflate()
1100 if (copy > state->length) copy = state->length; in inflate()
1106 if (copy > left) copy = left; in inflate()
[all …]
H A Dinfback.c360 if (copy > have) copy = have; in inflateBack()
361 if (copy > left) copy = left; in inflateBack()
363 have -= copy; in inflateBack()
364 next += copy; in inflateBack()
365 left -= copy; in inflateBack()
366 put += copy; in inflateBack()
599 copy = left - copy; in inflateBack()
603 copy = left; in inflateBack()
605 if (copy > state->length) copy = state->length; in inflateBack()
607 left -= copy; in inflateBack()
[all …]
/xnu-11215/osfmk/vm/
H A Dvm_user.c461 vm_map_copy_t copy; in mach_vm_read_list() local
481 &copy); in mach_vm_read_list()
486 copy); in mach_vm_read_list()
547 &copy); in vm_read_list()
551 copy); in vm_read_list()
594 if (copy) { in mach_vm_read_overwrite()
692 vm_map_copy_t copy; in mach_vm_copy() local
702 if (copy) { in mach_vm_copy()
894 copy, in mach_vm_remap_new_external()
949 copy, in mach_vm_remap_external()
[all …]
H A Dvm_map_xnu.h548 #define VM_MAP_COPY_PAGE_SHIFT(copy) ((copy)->cpy_hdr.page_shift) argument
549 #define VM_MAP_COPY_PAGE_SIZE(copy) (1 << VM_MAP_COPY_PAGE_SHIFT((copy))) argument
550 #define VM_MAP_COPY_PAGE_MASK(copy) (VM_MAP_COPY_PAGE_SIZE((copy)) - 1) argument
556 #define vm_map_copy_to_entry(copy) CAST_TO_VM_MAP_ENTRY(&(copy)->cpy_hdr.links) argument
557 #define vm_map_copy_first_entry(copy) \ argument
558 ((copy)->cpy_hdr.links.next)
559 #define vm_map_copy_last_entry(copy) \ argument
560 ((copy)->cpy_hdr.links.prev)
840 vm_map_copy_t copy,
847 vm_map_copy_t copy,
[all …]
H A Dvm_map.c4230 copy, in vm_map_enter_mem_object()
4757 copy, in vm_map_enter_mem_object()
9016 kfree_data(copy->cpy_kdata, copy->size); in vm_map_copy_discard()
9395 copy, copy->size, TRUE, discard_on_success); in vm_map_copy_overwrite_nested()
9920 copy, in vm_map_copy_overwrite_nested()
10186 vm_map_copy_clip_end(copy, entry, copy->offset); in vm_map_copy_overwrite()
11463 copy, in vm_map_copyout_internal()
11798 return vm_map_copyout_internal(dst_map, dst_addr, copy, copy ? copy->size : 0, in vm_map_copyout()
19362 copy, in vm_map_remap()
21001 named_entry->backing.copy = copy; in vm_named_entry_associate_vm_object()
[all …]
H A Dvm_map_store_ll.c92 vm_map_copy_t copy, in vm_map_store_copy_reset_ll() argument
96 copy->cpy_hdr.nentries = 0; in vm_map_store_copy_reset_ll()
97 vm_map_copy_first_entry(copy) = in vm_map_store_copy_reset_ll()
98 vm_map_copy_last_entry(copy) = in vm_map_store_copy_reset_ll()
99 vm_map_copy_to_entry(copy); in vm_map_store_copy_reset_ll()
H A Dvm_memory_entry.c517 vm_map_copy_t copy; in mach_make_memory_entry_copy() local
573 &copy); in mach_make_memory_entry_copy()
581 user_entry->backing.copy = copy; in mach_make_memory_entry_copy()
629 vm_map_copy_t copy; in mach_make_memory_entry_share() local
776 &copy, in mach_make_memory_entry_share()
795 vm_map_copy_discard(copy); in mach_make_memory_entry_share()
809 vm_map_copy_discard(copy); in mach_make_memory_entry_share()
834 vm_map_copy_discard(copy); in mach_make_memory_entry_share()
861 user_entry->backing.copy = copy; in mach_make_memory_entry_share()
1676 vm_map_copy_t copy; in mach_memory_entry_ownership() local
[all …]
H A Dvm_debug.c126 vm_map_copy_t copy; in vm32_mach_vm_region_info()
289 copy = VM_MAP_COPY_NULL; in vm32_mach_vm_region_info()
307 (vm_map_size_t)size_used, TRUE, &copy); in vm32_mach_vm_region_info()
317 *objectsp = (vm_info_object_array_t) copy; in vm32_mach_vm_region_info()
340 vm_map_copy_t copy; in vm32_mach_vm_region_info_64()
502 copy = VM_MAP_COPY_NULL; in vm32_mach_vm_region_info_64()
520 (vm_map_size_t)size_used, TRUE, &copy); in vm32_mach_vm_region_info_64()
530 *objectsp = (vm_info_object_array_t) copy; in vm32_mach_vm_region_info_64()
703 vm_map_copy_t copy; in host_virtual_physical_table_info()
714 (vm_map_size_t)used, TRUE, &copy); in host_virtual_physical_table_info()
[all …]
H A Dvm_map.h463 #pragma mark - vm map copy
547 vm_map_copy_t copy);
563 vm_map_copy_t copy);
H A Dvm_map_store.c263 vm_map_store_copy_reset( vm_map_copy_t copy, vm_map_entry_t entry) in vm_map_store_copy_reset() argument
265 int nentries = copy->cpy_hdr.nentries; in vm_map_store_copy_reset()
266 vm_map_store_copy_reset_ll(copy, entry, nentries); in vm_map_store_copy_reset()
268 if (vm_map_store_has_RB_support( &copy->c_u.hdr )) { in vm_map_store_copy_reset()
269 vm_map_store_copy_reset_rb(copy, entry, nentries); in vm_map_store_copy_reset()
H A Dvm32_user.c325 boolean_t copy, in vm32_vm_map_64() argument
339 flags, port, offset, copy, in vm32_vm_map_64()
355 boolean_t copy, in vm32_vm_map() argument
364 flags, port, offset, copy, in vm32_vm_map()
377 boolean_t copy, in vm32_vm_remap() argument
392 anywhere, src_map, src_addr, copy, in vm32_vm_remap()
/xnu-11215/libsyscall/mach/
H A Dmach_vm.c169 boolean_t copy, in mach_vm_map() argument
184 offset, copy, cur_protection, max_protection, inheritance); in mach_vm_map()
205 boolean_t copy, in mach_vm_remap() argument
213 src_task, src_address, copy, cur_protection, max_protection, in mach_vm_remap()
234 boolean_t copy, in mach_vm_remap_new() argument
243 src_task, src_address, copy, cur_protection, max_protection, in mach_vm_remap_new()
286 boolean_t copy, in vm_map() argument
294 offset, copy, cur_protection, max_protection, inheritance); in vm_map()
314 boolean_t copy, in vm_remap() argument
322 src_task, src_address, copy, cur_protection, max_protection, in vm_remap()
[all …]
/xnu-11215/tests/vm_memory_tests_src/
H A Dvm_tests.c23 boolean_t copy = FALSE; in mach_vm_client() local
55 copy = message->copy; in mach_vm_client()
67 lport, src, copy, in mach_vm_client()
153 copy = message->copy; in mach_vm_client()
154 if (copy) { in mach_vm_client()
334 if (message.copy == TRUE) { in mach_server_make_memory_entry()
338 mementry_pass_idx + 1, message.copy, src_val, dst_val); in mach_server_make_memory_entry()
614 message.copy, src_val, dst_val); in mach_server_remap()
618 if (message.copy == TRUE) { in mach_server_remap()
621 message.copy, src_val, dst_val); in mach_server_remap()
[all …]
H A Dcommon.c100 boolean_t copy, in mach_server_contruct_payload() argument
115 message->copy = copy; in mach_server_contruct_payload()
/xnu-11215/libkern/libclosure/
H A Druntime.cpp345 struct Block_byref *copy = block_byref_alloc(src->size); in _Block_byref_copy() local
346 copy->isa = NULL; in _Block_byref_copy()
348 copy->flags = src->flags | BLOCK_BYREF_NEEDS_FREE | 4; in _Block_byref_copy()
349 copy->forwarding = copy; // patch heap copy to point to itself in _Block_byref_copy()
350 src->forwarding = copy; // patch stack to point to heap copy in _Block_byref_copy()
351 copy->size = src->size; in _Block_byref_copy()
357 struct Block_byref_2 *copy2 = (struct Block_byref_2 *)(copy + 1); in _Block_byref_copy()
367 (*src2->byref_keep)(copy, src); in _Block_byref_copy()
371 memmove(copy + 1, src + 1, src->size - sizeof(*src)); in _Block_byref_copy()
/xnu-11215/iokit/Kernel/
H A DIOPolledInterface.cpp926 if (copy > size) { in IOPolledFileWrite()
927 copy = size; in IOPolledFileWrite()
942 bytes += copy; in IOPolledFileWrite()
947 size -= copy; in IOPolledFileWrite()
948 vars->bufferOffset += copy; in IOPolledFileWrite()
949 vars->position += copy; in IOPolledFileWrite()
1071 IOByteCount copy; in IOPolledFileRead() local
1077 if (copy > size) { in IOPolledFileRead()
1078 copy = size; in IOPolledFileRead()
1087 bytes += copy; in IOPolledFileRead()
[all …]
H A DIOBufferMemoryDescriptor.cpp133 vm_map_copy_t copy; in withCopy() local
136 copy = NULL; in withCopy()
146 false /* src_destroy */, &copy); in withCopy()
151 err = vm_map_copyout(get_task_map(inTask), &address, copy); in withCopy()
155 copy = NULL; in withCopy()
169 if (copy) { in withCopy()
170 vm_map_copy_discard(copy); in withCopy()
/xnu-11215/osfmk/tests/
H A Dvm_parameter_validation_kern.c97 vm_map_copy_t copy; in test_vm_map_copy_overwrite() local
106 vm_map_copy_discard(copy); in test_vm_map_copy_overwrite()
181 if (copy == saved_copy) { in check_vm_map_copyin_outparam_changes()
185 if (copy != saved_copy) { in check_vm_map_copyin_outparam_changes()
198 vm_map_copy_discard(copy); in call_vm_map_copyin()
1178 boolean_t copy,
1448 boolean_t copy, in mach_vm_map_wrapped() argument
1485 boolean_t copy, in mach_vm_map_external_wrapped() argument
1508 boolean_t copy, in mach_vm_map_kernel_wrapped() argument
1584 boolean_t copy, in vm_map_wrapped() argument
[all …]
/xnu-11215/osfmk/kern/
H A Darcade.c308 vm_map_copy_t copy; in arcade_ast() local
313 kr = vm_map_copyin(kernel_map, (vm_map_address_t)path, MAXPATHLEN, FALSE, &copy); in arcade_ast()
321 kr = __MAKING_UPCALL_TO_ARCADE_VALIDATION_SERVICE__(port, copy, MAXPATHLEN, offset, &should_kill); in arcade_ast()
327 vm_map_copy_discard(copy); in arcade_ast()
/xnu-11215/bsd/kern/
H A Dkern_malloc.c164 char *copy; in STRDUP_external() local
167 copy = kheap_alloc(KHEAP_DEFAULT, len, Z_WAITOK); in STRDUP_external()
168 if (copy) { in STRDUP_external()
169 memcpy(copy, string, len); in STRDUP_external()
171 return copy; in STRDUP_external()
/xnu-11215/libkern/libkern/
H A DBlock_private.h297 BlockCopyFunction copy; member
316 int32_t copy; member
451 return (void (*)(void *, const void *))_Block_get_function_pointer(desc->copy); in _Block_get_copy_fn()
458 _Block_set_function_pointer(desc->copy, fn); in _Block_set_copy_fn()
488 aBlock, copy, void (*)(void *, const void *)); in _Block_get_copy_function()
/xnu-11215/osfmk/mach/
H A Ddoubleagent_mig.defs15 * Please obtain a copy of the License at
44 …FORK_NAME_LEN + (MAX_NUM_OF_XATTRS * ((DA_XATTR_MAXNAMELEN + 1)))) // Mig copy of LISTXATTR_RESULT…
45 #define LISTXATTR_RESULT_MAX_HINTS_LEN_MIG (MAX_NUM_OF_XATTRS * 8) // Mig copy of LISTXATTR_RESULT_…
46 …TTR_RESULT_MAX_NAMES_LEN_MIG + LISTXATTR_RESULT_MAX_HINTS_LEN_MIG) // Mig copy of LISTXATTR_RESULT…
H A Dvm32_map.defs15 * Please obtain a copy of the License at
36 * Permission to use, copy, modify and distribute this software and its
169 copy : boolean_t;
189 copy : boolean_t;
272 copy : boolean_t;
H A Dvm_map.defs15 * Please obtain a copy of the License at
36 * Permission to use, copy, modify and distribute this software and its
178 * The inheritance value is one of {none, copy, share}, and
294 * If desired (copy is TRUE), the memory range will be filled
295 * with a copy of the data from the memory object; this copy will
312 copy : boolean_t;
340 copy : boolean_t;
457 copy : boolean_t;
499 copy : boolean_t;
/xnu-11215/osfmk/ipc/
H A Dipc_kmsg.c1130 if (copy) { in ipc_kmsg_clean_descriptors()
2342 .copy = udesc32.copy, in ipc_kmsg_inflate_ool_descriptor()
2347 switch (udesc.copy) { in ipc_kmsg_inflate_ool_descriptor()
2371 kdesc->copy = udesc.copy; in ipc_kmsg_inflate_ool_descriptor()
2443 dsc->address = copy; in ipc_kmsg_copyin_ool_descriptor()
2467 .copy = udesc32.copy, in ipc_kmsg_inflate_ool_ports_descriptor()
2482 kdesc->copy = udesc.copy; in ipc_kmsg_inflate_ool_ports_descriptor()
3880 dsc, dsc->size, (unsigned long long)copy->size, copy); in ipc_kmsg_copyout_ool_descriptor()
3884 (trunc_page(copy->offset) != copy->offset || in ipc_kmsg_copyout_ool_descriptor()
3969 .copy = kdesc->copy, in ipc_kmsg_deflate_memory_descriptor()
[all …]

12345678