/darwin-on-arm/xnu/osfmk/kdp/ml/arm/ |
H A D | kdp_arm_common.h | 47 extern void kern_collectth_state(thread_t thread, void *buffer, size_t size);
|
H A D | kdp_vm.c | 62 void kern_collectth_state(thread_t thread, void *buffer, size_t size) argument 76 tc = (struct thread_command *) ((uintptr_t) buffer + hoffset); 90 *(arm_state_hdr_t *) ((uintptr_t) buffer + hoffset) = thread_flavor_array[i]; 105 (arm_thread_state_t *) ((uintptr_t) buffer + hoffset); 111 void *tstate = (void *) ((uintptr_t) buffer + hoffset);
|
/darwin-on-arm/xnu/osfmk/kdp/ml/i386/ |
H A D | kdp_x86_common.h | 55 extern void kern_collectth_state(thread_t thread, void *buffer, size_t size);
|
H A D | kdp_vm.c | 60 kern_collectth_state(thread_t thread, void *buffer, size_t size) argument 74 tc = (struct thread_command *) ((uintptr_t)buffer + hoffset); 88 *(x86_state_hdr_t *)((uintptr_t)buffer + hoffset) = 103 x86_thread_state32_t *tstate = (x86_thread_state32_t *) ((uintptr_t)buffer + hoffset); 117 void *tstate = (void *)((uintptr_t)buffer + hoffset);
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/BTree/ |
H A D | BTreeAllocate.c | 133 node.buffer = nil; // clear node.buffer to get header node 250 node.buffer = nil; // invalidate node.buffer to get header node 340 mapNode.buffer = nil; 342 newNode.buffer = nil; 359 } while ( ((BTNodeDescriptor*)mapNode.buffer)->fLink != 0 ); 406 ((BTNodeDescriptor*)mapNode.buffer)->fLink = firstNewMapNodeNum; 417 ((NodeDescPtr)newNode.buffer)->numRecords = 1; 418 ((NodeDescPtr)newNode.buffer) [all...] |
H A D | BTreeNodeOps.c | 234 nodePtr->buffer = nil; 268 //////////////////////// get buffer for new node //////////////////////////// 281 // returnNodePtr->buffer = nil; 289 node = returnNodePtr->buffer; 324 if (nodePtr->buffer != nil) 334 nodePtr->buffer = nil; 366 if (nodePtr->buffer != nil) 376 nodePtr->buffer = nil; 412 if (nodePtr->buffer != nil) // Why call UpdateNode if nil ?!? 422 nodePtr->buffer [all...] |
/darwin-on-arm/xnu/security/ |
H A D | mac_base.c | 1185 /* allocate a scratch buffer the size of the string */ 1192 /* copy the elementlist to the scratch buffer */ 1197 * scratch buffer without losing the allocation address 1203 /* could not allocate interior buffer */ 1207 /* iterate the scratch buffer; NOTE: buffer contents modified! */ 1303 char *elements, *buffer; local 1344 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 1346 buffer, mac.m_buflen, M_WAITOK); 1348 error = copyout(buffer, ma 1359 char *elements, *buffer; local 1411 char *buffer; local 1493 char *elements, *buffer; local 1562 char *elements, *buffer; local 1619 char *buffer; local 1704 char *elements, *buffer; local 1813 char *elements, *buffer; local 1906 char *buffer; local 2019 char *buffer; local 2164 char *elements, *buffer; local [all...] |
H A D | mac_socket.c | 359 char *buffer; local 367 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK); 368 error = copyinstr(CAST_USER_ADDR_T(mac->m_string), buffer, 371 FREE(buffer, M_MACTEMP); 376 error = mac_socket_label_internalize(intlabel, buffer); 377 FREE(buffer, M_MACTEMP); 391 char *buffer, *elements; local 408 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 411 error = mac_socket_label_externalize(intlabel, elements, buffer, 415 error = copyout(buffer, CAST_USER_ADDR_ 428 char *elements, *buffer; local [all...] |
H A D | mac_net.c | 429 char *elements, *buffer; local 453 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); 459 buffer, mac.m_buflen); 464 error = copyout(buffer, CAST_USER_ADDR_T(mac.m_string), 465 strlen(buffer) + 1); 466 FREE(buffer, M_MACTEMP); 477 char *buffer; local 490 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK); 491 error = copyinstr(CAST_USER_ADDR_T(mac.m_string), buffer, 494 FREE(buffer, M_MACTEM [all...] |
/darwin-on-arm/xnu/libkern/kxld/ |
H A D | kxld_array.c | 117 memcpy(dstpool->buffer + offset, srcpool->buffer, srcpool_capacity); 153 bzero(pool->buffer, array->pool_capacity); 183 pool->buffer = kxld_page_alloc(capacity); 184 require(pool->buffer, finish); 185 bzero(pool->buffer, capacity); 201 if (pool->buffer) kxld_page_free(pool->buffer, capacity); 240 memcpy(dstpool->buffer + offset, srcpool->buffer, copysiz [all...] |
/darwin-on-arm/xnu/bsd/kern/ |
H A D | proc_info.c | 91 int proc_info_internal(int callnum, int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 94 int proc_listpids(uint32_t type, uint32_t tyoneinfo, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 95 int proc_pidinfo(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 96 int proc_pidfdinfo(int pid, int flavor,int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 97 int proc_kernmsgbuf(user_addr_t buffer, uint32_t buffersize, int32_t * retval); 98 int proc_setcontrol(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 99 int proc_pidfileportinfo(int pid, int flavor, mach_port_name_t name, user_addr_t buffer, uint32_t buffersize, int32_t *retval); 104 int proc_pidfdlist(proc_t p, user_addr_t buffer, uint32_t buffersize, int32_t *retval); 108 int proc_pidallinfo(proc_t p, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t *retval); 111 int proc_pidlistthreads(proc_t p, user_addr_t buffer, uint32_ 163 proc_info_internal(int callnum, int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument 193 proc_listpids(uint32_t type, uint32_t typeinfo, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument 314 proc_pidfdlist(proc_t p, user_addr_t buffer, uint32_t buffersize, int32_t *retval) argument 398 proc_pidfileportlist(proc_t p, user_addr_t buffer, uint32_t buffersize, int32_t *retval) argument 692 bsd_getthreadname(void *uth, char *buffer) argument 747 proc_pidlistthreads(proc_t p, user_addr_t buffer, uint32_t buffersize, int32_t *retval) argument 781 proc_pidregioninfo(proc_t p, uint64_t arg, user_addr_t buffer, __unused uint32_t buffersize, int32_t *retval) argument 798 proc_pidregionpathinfo(proc_t p, uint64_t arg, user_addr_t buffer, __unused uint32_t buffersize, int32_t *retval) argument 835 proc_pidvnodepathinfo(proc_t p, __unused uint64_t arg, user_addr_t buffer, __unused uint32_t buffersize, int32_t *retval) argument 897 proc_pidpathinfo(proc_t p, __unused uint64_t arg, user_addr_t buffer, uint32_t buffersize, __unused int32_t *retval) argument 952 proc_pidinfo(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument 1217 pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1238 pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1305 pid_socketinfo(socket_t so, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1325 pid_pseminfo(struct psemnode *psem, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1342 pid_pshminfo(struct pshmnode *pshm, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1359 pid_pipeinfo(struct pipe * p, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1375 pid_kqueueinfo(struct kqueue * kq, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1393 pid_atalkinfo(__unused struct atalk * at, __unused struct fileproc *fp, __unused int closeonexec, __unused user_addr_t buffer, __unused uint32_t buffersize, __unused int32_t * retval) argument 1402 proc_pidfdinfo(int pid, int flavor, int fd, user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument 1649 proc_pidfileportinfo(int pid, int flavor, mach_port_name_t name, user_addr_t buffer, uint32_t buffersize, int32_t *retval) argument 1719 proc_kernmsgbuf(user_addr_t buffer, uint32_t buffersize, int32_t * retval) argument 1729 proc_setcontrol(int pid, int flavor, uint64_t arg, user_addr_t buffer, uint32_t buffersize, __unused int32_t * retval) argument [all...] |
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_btreeio.c | 129 block->buffer = (char *)buf_dataptr(bp); 139 if ((((BTNodeDescriptor *)block->buffer)->kind == kBTHeaderNode) && 140 (((BTHeaderRec *)((char *)block->buffer + 14))->nodeSize != buf_count(bp)) && 141 (SWAP_BE16 (((BTHeaderRec *)((char *)block->buffer + 14))->nodeSize) != buf_count(bp))) { 157 } else if (*((u_int16_t *)((char *)block->buffer + (block->blockSize - sizeof (u_int16_t)))) == 0x0e00) { 168 * We mark the buffer invalid so that the next attempt to get the 182 block->buffer = NULL; 218 block.buffer = (char *)buf_dataptr(bp); 260 buf_brelse(bp); /* note: B-tree code will clear blockPtr->blockHeader and blockPtr->buffer */ 288 * Set the B_LOCKED flag and unlock the buffer, causin 623 void * buffer; local [all...] |
H A D | hfs_endian.c | 91 BTNodeDescriptor *srcDesc = src->buffer; 177 srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - ((srcDesc->numRecords + 1) * sizeof (u_int16_t)))); 182 if ((char *)srcOffs > ((char *)src->buffer + src->blockSize) || 183 (char *)srcOffs < ((char *)src->buffer + sizeof(BTNodeDescriptor))) { 243 BTHeaderRec *srcHead = (BTHeaderRec *)((char *)src->buffer + sizeof(BTNodeDescriptor)); 329 srcOffs = (u_int16_t *)((char *)src->buffer + (src->blockSize - ((srcDesc->numRecords + 1) * sizeof (u_int16_t)))); 334 if ((char *)srcOffs > ((char *)src->buffer + src->blockSize) || 335 (char *)srcOffs < ((char *)src->buffer + sizeof(BTNodeDescriptor))) { 400 BTNodeDescriptor *srcDesc = src->buffer; 401 u_int16_t *srcOffs = (u_int16_t *)((char *)src->buffer [all...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IONVRAM.cpp | 455 IOReturn IODTNVRAM::readXPRAM(IOByteCount offset, UInt8 *buffer, argument 460 if ((buffer == 0) || (length == 0) || 464 bcopy(_nvramImage + _xpramPartitionOffset + offset, buffer, length); 469 IOReturn IODTNVRAM::writeXPRAM(IOByteCount offset, UInt8 *buffer, argument 474 if ((buffer == 0) || (length == 0) || 478 bcopy(buffer, _nvramImage + _xpramPartitionOffset + offset, length); 519 IOByteCount offset, UInt8 *buffer, 536 if ((buffer == 0) || (length == 0) || 540 bcopy(_nvramImage + partitionOffset + offset, buffer, length); 546 IOByteCount offset, UInt8 *buffer, 518 readNVRAMPartition(const OSSymbol *partitionID, IOByteCount offset, UInt8 *buffer, IOByteCount length) argument 545 writeNVRAMPartition(const OSSymbol *partitionID, IOByteCount offset, UInt8 *buffer, IOByteCount length) argument 574 savePanicInfo(UInt8 *buffer, IOByteCount length) argument 766 UInt8 *buffer, *tmpBuffer; local 1077 convertObjectToProp(UInt8 *buffer, UInt32 *length, const OSSymbol *propSymbol, OSObject *propObject) argument 1164 generateOWChecksum(UInt8 *buffer) argument 1175 validateOWChecksum(UInt8 *buffer) argument [all...] |
H A D | IOStatistics.cpp | 633 char *buffer, *ptr; local 662 buffer = (char*)kalloc(calculatedSize); 663 if (!buffer) { 668 memset(buffer, 0, calculatedSize); 670 ptr = buffer; 719 assert( (uint32_t)(ptr - buffer) == calculatedSize ); 721 error = SYSCTL_OUT(req, buffer, calculatedSize); 723 kfree(buffer, calculatedSize); 734 char *buffer; local 757 buffer 791 char *buffer; local [all...] |
/darwin-on-arm/xnu/osfmk/console/i386/ |
H A D | serial_console.c | 41 char *buffer; member in struct:__anon877 97 ret = kmem_alloc(kernel_map, (vm_offset_t *) &console_ring.buffer, 101 "failed to allocate ring buffer, error %d\n", ret); 103 console_ring.read_ptr = console_ring.buffer; 104 console_ring.write_ptr = console_ring.buffer; 120 "failed to allocate cpu buffer, error=%d\n", ret); 157 if (console_ring.write_ptr - console_ring.buffer 159 console_ring.write_ptr = console_ring.buffer; 174 if (console_ring.read_ptr - console_ring.buffer 176 console_ring.read_ptr = console_ring.buffer; [all...] |
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | _setjmp.s | 74 movl 4(%esp),%ecx # fetch buffer 87 movl 4(%esp),%ecx # fetch buffer
|
/darwin-on-arm/xnu/osfmk/kdp/ml/x86_64/ |
H A D | kdp_vm.c | 60 kern_collectth_state(thread_t thread, void *buffer, size_t size) argument 74 tc = (struct thread_command *) ((uintptr_t)buffer + hoffset); 88 *(x86_state_hdr_t *)((uintptr_t)buffer + hoffset) = 103 x86_thread_state64_t *tstate = (x86_thread_state64_t *) ((uintptr_t)buffer + hoffset); 142 void *tstate = (void *)((uintptr_t)buffer + hoffset);
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/ |
H A D | VolumeAllocation.c | 75 Issues DKIOCUNMAPs to the device as it fills the internal volume buffer when iterating 144 contains that allocation block into a caller-supplied buffer. 147 Release a bitmap block back into the buffer cache. 245 * and we don't want to overwhelm the kernel debug buffer. If you 291 u_int32_t **buffer, 1255 u_int8_t *buffer; local 1259 buffer = NULL; 1282 buffer = (u_int8_t *)currCache; 1285 byte = *buffer++; 1334 ; buffer 1338 ReadBitmapBlock( ExtendedVCB *vcb, u_int32_t bit, u_int32_t **buffer, uintptr_t *blockRef) argument 1879 u_int32_t *buffer = NULL; local 2266 u_int32_t *buffer = NULL; local 2685 u_int32_t *buffer = NULL; local 3048 u_int32_t *buffer = NULL; local 3590 u_int32_t *buffer = NULL; local 3830 u_int32_t *buffer = NULL; local 3943 u_int32_t *buffer = NULL; local [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | dhcp_options.h | 193 const void * buffer, 217 int oa_size; /* size of buffer */ 245 dhcpoa_init(dhcpoa_t * opt, void * buffer, int size); 248 dhcpoa_init_no_end(dhcpoa_t * opt, void * buffer, int size);
|
/darwin-on-arm/xnu/osfmk/mach/ |
H A D | flipc_debug.h | 47 * Print (using printf) all buffers in the communications buffer that 48 * are not on any endpoint or on the buffer freelist. Only active 52 * communications buffer is in a quiescent state. It is expected that 75 flipc_data_buffer_t buffer) 78 int bitpos = ((((unsigned char *) buffer) - buffer_base) 86 buffer, bitpos, FLIPC_CBPTR(buffer)); 109 /* Go through the freelist, setting bits for each buffer. */ 120 /* Go through all the endpoints, again setting bits for each buffer. */ 149 /* Ok, we should have marked every buffer tha 74 flipcdbg_update_bufferset_bitvec(flipc_comm_buffer_ctl_t cb_ctl, flipc_data_buffer_t buffer) argument [all...] |
/darwin-on-arm/xnu/bsd/dev/random/YarrowCoreLib/src/ |
H A D | sha1mod.c | 71 YSHA1Transform(u_int32_t state[5], const unsigned char buffer[64]) argument 82 memcpy(block, buffer, 64); 84 block = (CHAR64LONG16*)buffer; 150 memcpy(&context->buffer[j], data, (i = 64-j)); 151 YSHA1Transform(context->state, context->buffer); 158 memcpy(&context->buffer[j], &data[i], len - i); 185 memset(context->buffer, 0, 64); 190 YSHA1Transform(context->state, context->buffer); 205 unsigned char digest[20], buffer[16384]; 224 i = fread(buffer, [all...] |
/darwin-on-arm/xnu/iokit/Drivers/platform/drvAppleMacIO/ |
H A D | AppleMacIO.cpp | 176 IOBufferMemoryDescriptor *buffer; local 186 buffer = IOBufferMemoryDescriptor::withCapacity(page_size, kIODirectionOutIn, true); 187 dmaDescriptors = (IODBDMADescriptor*)buffer->getBytesNoCopy(); 214 dmaDescriptorsPhys = (UInt32) (buffer->getPhysicalSegment(0, NULL, 0)); 259 if (buffer) 260 buffer->release();
|
/darwin-on-arm/xnu/iokit/IOKit/ |
H A D | IOPlatformExpert.h | 67 extern UInt32 PESavePanicInfo(UInt8 *buffer, UInt32 length); 176 virtual IOByteCount savePanicInfo(UInt8 *buffer, IOByteCount length); 231 /* virtual */ IOReturn readXPRAM(IOByteCount offset, UInt8 * buffer, 234 /* virtual */ IOReturn writeXPRAM(IOByteCount offset, UInt8 * buffer, 251 IOByteCount offset, UInt8 * buffer, 255 IOByteCount offset, UInt8 * buffer, 258 virtual IOByteCount savePanicInfo(UInt8 *buffer, IOByteCount length);
|
/darwin-on-arm/xnu/bsd/dev/random/ |
H A D | randomdev.c | 125 u_int32_t CalculateCRC(u_int8_t* buffer, size_t length); 201 u_int32_t CalculateCRC(u_int8_t* buffer, size_t length) argument 208 u_int32_t temp = (crc ^ ((u_int32_t) buffer[i])) & 0xFF; 248 // add zeros to fill the internal SHA-1 buffer 321 char buffer [16]; local 341 perr = prngOutput(gPrngRef, (BYTE*) buffer, sizeof (buffer)); 566 read_random(void* buffer, u_int numbytes) argument 585 memmove ((u_int8_t*) buffer + bytes_read, ((u_int8_t*)g_random_data)+ g_bytes_used, bytes_to_read);
|