/xnu-2782.1.97/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_size); 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_file_size); 14 int test_file_write_cleanup(char* path, int num_threads, long long length);
|
H A D | perf_index.h | 4 #define DECL_SETUP int setup(int num_threads, long long length, int test_argc, const void** test_argv) 5 #define DECL_TEST int execute(int thread_id, int num_threads, long long length, int test_argc, const void** test_argv) 6 #define DECL_CLEANUP int cleanup(int num_threads, long long length)
|
H A D | perfindex-fault.c | 9 return test_fault_helper(thread_id, num_threads, length, TESTFAULT);
|
H A D | perfindex-zfod.c | 9 return test_fault_helper(thread_id, num_threads, length, TESTZFOD);
|
H A D | perfindex-syscall.c | 7 for(i=0; i<length; i++) {
|
H A D | test_fault_helper.h | 10 int test_fault_helper(int thread_id, int num_threads, long long length, testtype_t testtype);
|
H A D | perfindex-file_read.c | 18 return test_file_read_setup(tempdir, num_threads, length, 0L); 22 return test_file_read(tempdir, thread_id, num_threads, length, 0L); 28 retval = test_file_read_cleanup(tempdir, num_threads, length);
|
H A D | perfindex-file_write.c | 19 return test_file_write_setup(tempdir, num_threads, length); 24 return test_file_write(tempdir, thread_id, num_threads, length, 0L); 30 retval = test_file_write_cleanup(tempdir, num_threads, length);
|
H A D | perfindex-ram_file_read.c | 19 return test_file_read_setup(ramdisk_path, num_threads, length, 0L); 23 return test_file_read(ramdisk_path, thread_id, num_threads, length, 0L); 29 retval = test_file_read_cleanup(ramdisk_path, num_threads, length);
|
H A D | perfindex-ram_file_write.c | 19 return test_file_write_setup(ramdisk_path, num_threads, length); 23 return test_file_write(ramdisk_path, thread_id, num_threads, length, 0L); 29 retval = test_file_write_cleanup(ramdisk_path, num_threads, length);
|
H A D | perfindex-cpu.c | 10 for(i=0; i<length; i++) {
|
/xnu-2782.1.97/libsyscall/wrappers/string/ |
H A D | strcpy.c | 29 const size_t length = strlen(src); local 32 memcpy(dst, src, length+1);
|
H A D | memcpy.c | 51 void * memcpy(void *dst0, const void *src0, size_t length) argument 57 if (length == 0 || dst == src) /* nothing to do */ 76 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) 77 t = length; 80 length -= t; 86 t = length / wsize; 88 t = length & wmask; 96 src += length; 97 dst += length; 100 if ((t ^ (uintptr_t)dst) & wmask || length < [all...] |
H A D | memset.c | 41 bzero(void *dst0, size_t length) argument 43 return (void)memset(dst0, 0, length); 52 memset(void *dst0, int c0, size_t length) argument 60 * If not enough words, just fill bytes. A length >= 2 words 67 * dst dst+length-1 72 if (length < 3 * wsize) { 73 while (length != 0) { 75 --length; 92 length -= t; 99 t = length / wsiz [all...] |
/xnu-2782.1.97/libsyscall/mach/ |
H A D | string.c | 47 _mach_hex(char **buffer, int *length, unsigned long long n) argument 60 while (width > 0 && length > 0) { 62 (*length)--; 69 _mach_vsnprintf(char *buffer, int length, const char *fmt, va_list ap) argument 71 int width, max = length; 75 length--; 76 while (length > 0 && *fmt) { 82 length--; 93 while (width > 0 && length > 0) { 96 length 112 _mach_snprintf(char *buffer, int length, const char *fmt, ...) argument [all...] |
H A D | string.h | 42 int _mach_snprintf(char *buffer, int length, const char *fmt, ...); 43 int _mach_vsnprintf(char *buffer, int length, const char *fmt, va_list ap); 47 void *memcpy(void *dst0, const void *src0, size_t length);
|
/xnu-2782.1.97/iokit/IOKit/ |
H A D | IODeviceMemory.h | 53 @field length Length of the range. 58 IOPhysicalLength length; member in struct:IODeviceMemory::InitElement 64 @discussion This method creates IODeviceMemory instances for each physical range passed in an IODeviceMemory::InitElement array. Each element consists of a physical address, length and tag value for the IODeviceMemory. The instances are returned as a created OSArray. 75 @discussion This method creates an IODeviceMemory instance for one physical range passed as a physical address and length. It just calls IOMemoryDescriptor::withPhysicalAddress. 77 @param withLength The length of memory. 82 IOPhysicalLength length ); 86 @discussion This method creates an IODeviceMemory instance for a subset of an existing IODeviceMemory range, passed as a physical address offset and length. It just calls IOMemoryDescriptor::withSubRange. 89 @param length The length of the subrange. 95 IOPhysicalLength length ); [all...] |
/xnu-2782.1.97/libkern/kxld/ |
H A D | kxld_demangle.h | 43 * @param length The length of the buffer. 49 const char * kxld_demangle(const char *str, char **buffer, size_t *length)
|
H A D | kxld_demangle.c | 47 kxld_demangle(const char *str, char **buffer __unused, size_t *length __unused) 60 if (!buffer || !length) goto finish; 65 demangled = __cxa_demangle(str+1, *buffer, length, &status);
|
/xnu-2782.1.97/bsd/libkern/ |
H A D | memchr.c | 33 memchr(const void *bigptr, int ch, size_t length) argument 37 for (n = 0; n < length; n++)
|
/xnu-2782.1.97/bsd/hfs/hfscommon/Unicode/ |
H A D | UnicodeWrappers.c | 60 static void GetFilenameExtension( ItemCount length, ConstUniCharArrayPtr unicodeStr, char* extStr ); 63 static u_int32_t HexStringToInteger( u_int32_t length, const u_int8_t *hexStr ); 70 GetFilenameExtension(ItemCount length, ConstUniCharArrayPtr unicodeStr, char * extStr) argument 80 if ( length < 3 ) 83 if ( length < (kMaxFileExtensionChars + 2) ) 84 maxExtChars = length - 2; /* save room for prefix + dot */ 88 i = length; 125 CountFilenameExtensionChars( const unsigned char * filename, u_int32_t length ) 133 if ( length < 3 ) 136 if ( length < (kMaxFileExtensionChar 170 GetEmbeddedFileID(const unsigned char * filename, u_int32_t length, u_int32_t *prefixLength) argument 217 HexStringToInteger(u_int32_t length, const u_int8_t *hexStr) argument 257 u_int8_t length, length2; local [all...] |
/xnu-2782.1.97/iokit/Kernel/ |
H A D | IOSubMemoryDescriptor.cpp | 48 IOByteCount length, 53 if (self && !self->initSubRange(of, offset, length, (IODirection) options)) { 61 IOByteCount offset, IOByteCount length, 64 if( parent && ((offset + length) > parent->getLength())) 94 _length = length; 112 IOSubMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount * length, IOOptionBits options) argument 119 if( length) 120 *length = 0; 127 if( address && length) 128 *length 46 withSubRange(IOMemoryDescriptor * of, IOByteCount offset, IOByteCount length, IOOptionBits options) argument 60 initSubRange( IOMemoryDescriptor * parent, IOByteCount offset, IOByteCount length, IODirection direction ) argument [all...] |
H A D | IOPMPowerSourceList.cpp | 42 length = 0; 69 length++; 104 return length; 122 length--; 130 length--; 154 length--;
|
/xnu-2782.1.97/iokit/IOKit/nvram/ |
H A D | IONVRAMController.h | 44 IOByteCount length) = 0; 46 IOByteCount length) = 0;
|
/xnu-2782.1.97/osfmk/i386/ |
H A D | mtrr.h | 57 uint64_t length, 61 uint64_t length,
|