| /xnu-11215/libsyscall/mach/ |
| H A D | string.c | 47 _mach_hex(char **buffer, int *length, unsigned long long n) in _mach_hex() argument 60 while (width > 0 && length > 0) { in _mach_hex() 62 (*length)--; in _mach_hex() 71 int width, max = length; in _mach_vsnprintf() 75 length--; in _mach_vsnprintf() 76 while (length > 0 && *fmt) { in _mach_vsnprintf() 82 length--; in _mach_vsnprintf() 93 while (width > 0 && length > 0) { in _mach_vsnprintf() 96 length--; in _mach_vsnprintf() 102 _mach_hex(&out_ptr, &length, va_arg(ap, unsigned int)); in _mach_vsnprintf() [all …]
|
| H A D | string.h | 42 int _mach_snprintf(char *buffer, int length, const char *fmt, ...) __printflike(3, 4); 43 int _mach_vsnprintf(char *buffer, int length, const char *fmt, va_list ap) __printflike(3, 0); 48 void *memcpy(void *dst0, const void *src0, size_t length); 49 void *memset(void *dst0, int c0, size_t length); 50 void bzero(void *dst0, size_t length);
|
| /xnu-11215/bsd/net/ |
| H A D | bloom_filter.c | 78 const void * __sized_by(length)buffer, in net_bloom_filter_insert_using_function() 79 uint32_t length) in net_bloom_filter_insert_using_function() argument 81 u_int32_t hash = (function(buffer, length, 0) % filter->b_table_num_bits); in net_bloom_filter_insert_using_function() 89 const void * __sized_by(length)buffer, in net_bloom_filter_insert() 90 uint32_t length) in net_bloom_filter_insert() argument 92 net_bloom_filter_insert_using_function(filter, &net_flowhash_jhash, buffer, length); in net_bloom_filter_insert() 100 const void * __sized_by(length)buffer, in net_bloom_filter_contains_using_function() 101 uint32_t length) in net_bloom_filter_contains_using_function() argument 103 u_int32_t hash = (function(buffer, length, 0) % filter->b_table_num_bits); in net_bloom_filter_contains_using_function() 111 const void * __sized_by(length)buffer, in net_bloom_filter_contains() [all …]
|
| /xnu-11215/libkern/c++/ |
| H A D | OSString.cpp | 94 kfree_data(string, length); in initWithCString() 98 length = newLength; in initWithCString() 101 OSCONTAINER_ACCUMSIZE(length); in initWithCString() 138 kfree_data(string, length); in initWithStringOfLength() 143 length = newLength; in initWithStringOfLength() 163 length++; in initWithCStringNoCopy() 253 kfree_data(string, length); in free() 263 return length - 1; in getLength() 287 if (index < length) { in getChar() 298 if (length != aString->length) { in isEqualTo() [all …]
|
| H A D | OSData.cpp | 109 length = 0; in initWithCapacity() 125 length = inLength; in initWithBytes() 137 length = inLength; in initWithBytesNoCopy() 247 return length; in getLength() 360 length = newSize; in appendBytes() 387 length = newSize; in appendByte() 401 if (!length) { in getBytesNoCopy() 414 if (length in getBytesNoCopy() 415 && start < length in getBytesNoCopy() 429 len = aData->length; in isEqualTo() [all …]
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | memcpy.c | 78 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) { in _libkernel_memmove() 79 t = length; in _libkernel_memmove() 83 length -= t; in _libkernel_memmove() 89 t = length / wsize; in _libkernel_memmove() 91 t = length & wmask; in _libkernel_memmove() 99 src += length; in _libkernel_memmove() 100 dst += length; in _libkernel_memmove() 104 t = length; in _libkernel_memmove() 108 length -= t; in _libkernel_memmove() 111 t = length / wsize; in _libkernel_memmove() [all …]
|
| H A D | memset.c | 43 _libkernel_bzero(void *dst0, size_t length) in _libkernel_bzero() argument 45 return (void)_libkernel_memset(dst0, 0, length); in _libkernel_bzero() 54 _libkernel_memset(void *dst0, int c0, size_t length) in _libkernel_memset() argument 74 if (length < 3 * wsize) { in _libkernel_memset() 75 while (length != 0) { in _libkernel_memset() 77 --length; in _libkernel_memset() 94 length -= t; in _libkernel_memset() 101 t = length / wsize; in _libkernel_memset() 108 t = length & wmask; in _libkernel_memset()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOMemoryCursor.cpp | 146 fromPosition, (IOByteCount*)&seg.length); in genPhysicalSegments() 148 assert(seg.length); in genPhysicalSegments() 149 fromPosition += seg.length; in genPhysicalSegments() 153 curTransferSize += seg.length; in genPhysicalSegments() 157 curTransferSize += seg.length; in genPhysicalSegments() 158 curSeg.length += seg.length; in genPhysicalSegments() 163 if ((curSeg.length > maxSegmentSize)) { in genPhysicalSegments() 165 seg.length = curSeg.length - maxSegmentSize; in genPhysicalSegments() 166 curTransferSize -= seg.length; in genPhysicalSegments() 167 curSeg.length -= seg.length; in genPhysicalSegments() [all …]
|
| H A D | IOSubMemoryDescriptor.cpp | 50 IOByteCount length, in withSubRange() argument 55 if (self && !self->initSubRange(of, offset, length, (IODirection) options)) { in withSubRange() 64 IOByteCount offset, IOByteCount length, in initSubRange() argument 67 if (parent && ((offset + length) > parent->getLength())) { in initSubRange() 98 _length = length; in initSubRange() 127 if (length) { in getPhysicalSegment() 128 *length = 0; in getPhysicalSegment() 137 if (address && length) { in getPhysicalSegment() 138 *length = min( _length - offset, actualLength ); in getPhysicalSegment() 200 IOByteCount length ) in makeMapping() argument [all …]
|
| H A D | IODMACommand.cpp | 503 uint64_t length; in segmentOp() local 519 assert(length); in segmentOp() 542 length = 0; in segmentOp() 545 length = (address + length - maxPhys - 1); in segmentOp() 551 if (!length) { in segmentOp() 593 chunk = length; in segmentOp() 611 length -= chunk; in segmentOp() 847 if (!length) { in prepare() 1131 if (length) { in getPreparedOffsetAndLength() 1204 while (length) { in transferSegment() [all …]
|
| H A D | IOInterleavedMemoryDescriptor.cpp | 132 IOByteCount length ) in setMemoryDescriptor() argument 138 if ((offset + length) > descriptor->getLength()) { in setMemoryDescriptor() 148 _descriptorLengths[_descriptorCount] = length; in setMemoryDescriptor() 152 _length += length; in setMemoryDescriptor() 259 IOByteCount * length, in getPhysicalSegment() argument 274 … pa = _descriptors[index]->getPhysicalSegment(_descriptorOffsets[index] + offset, length, options); in getPhysicalSegment() 275 if ((_descriptorLengths[index] - offset) < *length) { in getPhysicalSegment() 276 *length = _descriptorLengths[index] - offset; in getPhysicalSegment() 283 if (length) { in getPhysicalSegment() 284 *length = 0; in getPhysicalSegment()
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_syscalls.c | 201 if ((uap->length <= 0) || (uap->length > max_record_length)) { in audit() 233 rec = kalloc_data(uap->length, Z_WAITOK); in audit() 309 ulen = uap->length; in audit() 384 if ((uap->length <= 0) || (uap->length > in auditon() 423 AUDIT_ARG(len, uap->length); in auditon() 561 if (sizeof(udata.au_mask) != uap->length) { in auditon() 570 if (sizeof(udata.au_mask) != uap->length) { in auditon() 674 if (sizeof(udata.au_cond) != uap->length) { in auditon() 831 WARN_IF_AINFO_ADDR_CHANGED(uap->length, in auditon() 1105 min(sizeof(aia), uap->length)); in setaudit_addr() [all …]
|
| /xnu-11215/osfmk/kdp/output_stages/ |
| H A D | out_aea.c | 64 stage_data->current_corefile_offset = absolute_corefile_offset + length; in aea_write_callback() 65 if (offset + length > stage->kos_bytes_written) { in aea_write_callback() 66 stage->kos_bytes_written = offset + length; in aea_write_callback() 70 return length; in aea_write_callback() 90 return length; in aea_read_callback() 115 __unused char *corename, uint64_t length, void *panic_data) in aea_stage_outproc() argument 147 if (!length && !panic_data) { in aea_stage_outproc() 172 if (length <= UINT32_MAX) { in aea_stage_outproc() 173 chunk = (size_t) length; in aea_stage_outproc() 183 length -= chunk; in aea_stage_outproc() [all …]
|
| H A D | out_zlib.c | 128 zlib_stream_output_chunk(struct kdp_output_stage *stage, unsigned int length, void *data) in zlib_stream_output_chunk() argument 137 flush = (!length && !data); in zlib_stream_output_chunk() 144 if (!length) { in zlib_stream_output_chunk() 148 zs->avail_in = length; in zlib_stream_output_chunk() 149 length = 0; in zlib_stream_output_chunk() 191 char *corename, uint64_t length, void *panic_data) in zlib_stage_outproc() argument 202 err = next_stage->kos_funcs.kosf_outproc(next_stage, request, corename, length, panic_data); in zlib_stage_outproc() 207 if (length <= MAX_ZLIB_CHUNK) { in zlib_stage_outproc() 208 chunk = (typeof(chunk))length; in zlib_stage_outproc() 215 length -= chunk; in zlib_stage_outproc() [all …]
|
| H A D | out_disk.c | 79 while (KERN_SUCCESS == err && length != 0) { in disk_stage_write() 82 if (chunk > length) { in disk_stage_write() 83 chunk = length; in disk_stage_write() 138 length -= chunk; in disk_stage_write() 150 disk_stage_read(struct kdp_output_stage *stage, uint64_t offset, uint64_t length, void *data) in disk_stage_read() argument 207 stage_data->current_offset += length; in disk_stage_read() 221 __unused char *corename, uint64_t length, void * data) in disk_stage_outproc() argument 259 err = IOPolledFileWrite(gIOPolledCoreFileVars, data, (IOByteCount) length, NULL); in disk_stage_outproc() 262 data, length, err); in disk_stage_outproc() 266 stage_data->current_offset += length; in disk_stage_outproc() [all …]
|
| /xnu-11215/tools/tests/perf_index/ |
| H A D | test_file_helper.h | 8 int test_file_create(char* path, int thread_id, int num_threads, long long length); 9 int test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size); 10 int test_file_read(char* path, int thread_id, int num_threads, long long length, long long max_file… 11 int test_file_read_cleanup(char* path, int num_threads, long long length); 12 int test_file_write_setup(char* path, int num_threads, long long length); 13 int test_file_write(char* path, int thread_id, int num_threads, long long length, long long max_fil… 14 int test_file_write_cleanup(char* path, int num_threads, long long length);
|
| H A D | test_file_helper.c | 30 test_file_create(char* path, int thread_id, int num_threads, long long length) in test_file_create() argument 37 for (i = 0; i < length; i++) { in test_file_create() 45 for (i = 0; i < length; i++) { in test_file_create() 55 test_file_read_setup(char* path, int num_threads, long long length, long long max_file_size) in test_file_read_setup() argument 67 left = MIN(length, max_file_size / num_threads); in test_file_read_setup() 101 filesize = MIN(length, max_file_size / num_threads); in test_file_read() 107 for (left = length; left > 0;) { in test_file_read() 127 test_file_read_cleanup(char* path, int num_threads, long long length) in test_file_read_cleanup() argument 140 test_file_write_setup(char* path, int num_threads, long long length) in test_file_write_setup() argument 178 for (left = length; left > 0;) { in test_file_write() [all …]
|
| /xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | Serialization.h | 63 size_t length; member 68 return __unsafe_forge_bidi_indexable(void *, element->data.value, element->length); in CESerializedElementGetData() 71 …izedElementSetData(CESerializedElement_t *element, void *__sized_by(length) bytes, size_t length) { in CESerializedElementSetData() argument 73 element->length = length; in CESerializedElementSetData() 172 …Element_t){.type = kCESerializedString, .data.value = (intptr_t)strVal, .length = sizeof(strVal) -… 173 …zedElement_t){.type = kCESerializedKey, .data.value = (intptr_t)strVal, .length = sizeof(strVal) -… 174 …n) (CESerializedElement_t){.type = kCESerializedKey, .data.value = (intptr_t)strVal, .length = len} 175 …(CESerializedElement_t){.type = kCESerializedString, .data.value = (intptr_t)strVal, .length = len} 176 … (CESerializedElement_t){.type = kCESerializedData, .data.value = (intptr_t)dataVal, .length = len}
|
| H A D | QueryHelpers.h | 61 …pcode = kCEOpSelectKey, .parameters = {.stringParameter = {.data = key, .length = sizeof(key) - 1}… 62 …code = CEDynamic(kCEOpSelectKey), .parameters = {.dynamicParameter = {.data = key, .length = len}}} 74 … = kCEOpMatchString, .parameters = {.stringParameter = {.data = string, .length = sizeof(string) -… 75 …= CEDynamic(kCEOpMatchString), .parameters = {.dynamicParameter = {.data = string, .length = len}}} 87 …OpMatchStringPrefix, .parameters = {.stringParameter = {.data = prefix, .length = sizeof(prefix) -… 88 …namic(kCEOpMatchStringPrefix), .parameters = {.dynamicParameter = {.data = prefix, .length = len}}} 148 …pStringValueAllowed, .parameters = {.stringParameter = {.data = string, .length = sizeof(string) -… 149 …amic(kCEOpStringValueAllowed), .parameters = {.dynamicParameter = {.data = string, .length = len}}} 161 …gPrefixValueAllowed, .parameters = {.stringParameter = {.data = string, .length = sizeof(string) -… 174 …opcode = CEDynamic(kCEOpMatchData), .parameters = {.dynamicParameter = {.data = d, .length = len}}} [all …]
|
| /xnu-11215/osfmk/arm/ |
| H A D | caches.c | 63 unsigned length, in flush_dcache() argument 71 while (length > 0) { in flush_dcache() 73 count = length; in flush_dcache() 81 count = length; in flush_dcache() 89 length -= count; in flush_dcache() 97 unsigned length, in clean_dcache() argument 105 while (length > 0) { in clean_dcache() 107 count = length; in clean_dcache() 115 count = length; in clean_dcache() 123 length -= count; in clean_dcache() [all …]
|
| H A D | caches_internal.h | 35 extern void flush_dcache_syscall( vm_offset_t addr, unsigned length); 67 extern void CleanPoC_DcacheRegion(vm_offset_t va, size_t length); 76 extern void CleanPoC_DcacheRegion_Force(vm_offset_t va, size_t length); 78 extern void CleanPoU_DcacheRegion(vm_offset_t va, size_t length); 82 extern void FlushPoC_DcacheRegion(vm_offset_t va, size_t length); 85 extern void InvalidatePoU_IcacheRegion(vm_offset_t va, size_t length);
|
| /xnu-11215/osfmk/kern/ |
| H A D | printf.c | 250 int length; in __doprnt() local 286 length = 0; in __doprnt() 319 length = 10 * length + Ctod(c); in __doprnt() 325 if (length < 0) { in __doprnt() 327 length = -length; in __doprnt() 498 while ((n < prec) && (!(length > 0 && n >= length))) { in __doprnt() 531 if (length == -1) { in __doprnt() 532 length = 16; in __doprnt() 534 while (length--) { in __doprnt() 539 if (length) { in __doprnt() [all …]
|
| /xnu-11215/pexpert/arm/ |
| H A D | pe_consistent_debug.c | 56 PE_consistent_debug_lookup_entry(uint64_t record_id, uint64_t *phys_addr, uint64_t *length) in PE_consistent_debug_lookup_entry() argument 59 assert(length != NULL); in PE_consistent_debug_lookup_entry() 64 *length = consistent_debug_registry->records[i].length; in PE_consistent_debug_lookup_entry() 94 PE_consistent_debug_register(uint64_t record_id, uint64_t physaddr, uint64_t length) in PE_consistent_debug_register() argument 100 allocated_header->length = length; in PE_consistent_debug_register()
|
| /xnu-11215/libkern/os/ |
| H A D | hash.h | 38 os_hash_jenkins_update(const void *data, size_t length, uint32_t hash) in os_hash_jenkins_update() argument 42 for (size_t i = 0; i < length; i++) { in os_hash_jenkins_update() 85 os_hash_jenkins(const void *data, size_t length, uint32_t seed) in os_hash_jenkins() argument 87 return os_hash_jenkins_finish(os_hash_jenkins_update(data, length, seed)); in os_hash_jenkins() 92 os_hash_jenkins(const void *data, size_t length) in os_hash_jenkins() argument 94 return os_hash_jenkins(data, length, 0); in os_hash_jenkins()
|
| /xnu-11215/iokit/IOKit/ |
| H A D | IOMemoryDescriptor.h | 416 IOByteCount * length, 420 IOByteCount * length, 547 mach_vm_size_t length, 609 IOByteCount length, 708 IOByteCount * length); 822 mach_vm_size_t length); 829 mach_vm_size_t length, 921 IOByteCount * length, 925 IOByteCount * length); 1037 mach_vm_size_t length); [all …]
|