/darwin-on-arm/xnu/osfmk/profiling/i386/ |
H A D | profile-md.h | 186 #define PROF_CNT_INC(cnt) \ 188 : "=g" ((cnt).low), "=g" ((cnt).high) \ 189 : "0" ((cnt).low), "1" ((cnt).high)) 191 #define PROF_CNT_ADD(cnt,val) \ 193 : "=g,r" ((cnt).low), "=g,r" ((cnt).high) \ 195 "0,0" ((cnt).low), "1,1" ((cnt) 352 prof_cnt_t cnt; /* # of calls to _{,g}prof_mcount */ member in struct:profile_stats [all...] |
/darwin-on-arm/xnu/iokit/Drivers/platform/drvAppleNVRAM/ |
H A D | AppleNVRAM.cpp | 85 UInt32 cnt; local 93 for (cnt = 0; cnt < length; cnt++) { 94 buffer[cnt] = _nvramData[(offset + cnt) << 4]; 99 for (cnt = 0; cnt < length; cnt++) { 102 buffer[cnt] 123 UInt32 cnt; local [all...] |
/darwin-on-arm/xnu/iokit/Examples/drvGenericInterruptController/ |
H A D | GenericInterruptController.cpp | 71 for (cnt = 0; cnt < numVectors; cnt++) { 72 vectors[cnt].interruptLock = IOLockAlloc(); 73 if (vectors[cnt].interruptLock == NULL) { 74 for (cnt = 0; cnt < numVectors; cnt++) { 75 if (vectors[cnt].interruptLock != NULL) 76 IOLockFree(vectors[cnt] [all...] |
/darwin-on-arm/xnu/osfmk/kdp/ml/arm/ |
H A D | kdp_vm.c | 160 unsigned resid, cnt; local 180 cnt = 4096 - (cur_virt_src & 0xFFF); /* Get length left on page */ 181 if (cnt > (4096 - (cur_virt_dst & 0xFFF))) 182 cnt = 4096 - (cur_virt_dst & 0xFFF); 184 if (cnt > resid) 185 cnt = resid; 187 bcopy_phys(cur_virt_src, cur_phys_dst, cnt); /* Copy stuff over */ 189 cur_virt_src += cnt; 190 cur_virt_dst += cnt; 191 resid -= cnt; 253 unsigned resid, cnt; local [all...] |
/darwin-on-arm/xnu/osfmk/kdp/ml/i386/ |
H A D | kdp_x86_common.c | 95 mach_vm_size_t cnt = 0, cnt_src, cnt_dst; local 137 cnt = cnt_dst; 139 cnt = cnt_src; 140 if (cnt > resid) 141 cnt = resid; 144 ml_copy_phys(cur_phys_src, cur_phys_dst, (vm_size_t)cnt); 146 cur_virt_src += cnt; 147 cur_virt_dst += cnt; 148 resid -= cnt; 164 mach_vm_size_t cnt local 213 unsigned resid, cnt, cnt_src, cnt_dst; local 263 unsigned resid, cnt, cnt_src, cnt_dst; local [all...] |
/darwin-on-arm/xnu/bsd/netat/ |
H A D | adsp_RxData.c | 68 register int cnt; local 78 if ((cnt = gbuf_len(mp)) > len) { 80 cnt = len; 82 gbuf_rinc(mp,cnt); 83 len -= cnt; 279 short cnt; local 326 cnt = sp->recvSeq - PktFirstByteSeq; /* # bytes we've seen already */ 328 offset = ((unsigned char *)&f->data[cnt]) - (unsigned char *)gbuf_rptr(mp); 332 len -= cnt; /* # of new data bytes */ 334 cnt [all...] |
H A D | adsp_Control.c | 388 int cnt; local 445 cnt = bsize - diff; /* # of bytes in this block */ 447 cnt = 0; 454 if ((cnt < sp->sendBlocking) && !sp->writeFlush) { 460 if (cnt > ADSP_MAX_DATA_LEN) { /* truncate to one packet */ 461 cnt = ADSP_MAX_DATA_LEN; 487 if ((diff = sp->sendWdwSeq + 1 - sp->sendSeq) <= cnt) { 488 if (diff < cnt) { /* Won't fit exactly */ 490 cnt = diff; 500 tcnt = cnt; [all...] |
H A D | adsp_Write.c | 75 int cnt; /* # of bytes in this write */ local 78 cnt = pb->u.ioParams.reqCount - pb->u.ioParams.actCount; 81 if (cnt == 0 && eom == 0) /* Nothing to do here, complete it */ 119 pb->u.ioParams.actCount += cnt; /* Update count field in param blk */
|
H A D | adsp_Read.c | 71 unsigned short cnt; local 114 cnt = gbuf_msgsize(mp); /* # of data bytes in it. */ 115 if (cnt > (unsigned short)(pb->u.ioParams.reqCount - pb->u.ioParams.actCount)) { 116 cnt = pb->u.ioParams.reqCount - pb->u.ioParams.actCount; 118 if (!(tmp = (gbuf_t *)m_split(mp, cnt, M_DONTWAIT))) { 119 cnt = 0; 129 if (cnt) { 130 pb->u.ioParams.actCount += cnt;
|
H A D | atp_write.c | 441 int cnt, offset, space; local 465 cnt = rcbp->rc_pktcnt; 466 for (i = 0; i < cnt; i++) { 472 for (cnt = 0; cnt < i; cnt++) 473 if (rc_xmt[cnt]) 474 gbuf_freeb(rc_xmt[cnt]); 491 for (i = 0; i < cnt; i++) { 507 if (i == (cnt [all...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IONVRAM.cpp | 604 UInt8 cnt, isum, csum = 0; local 606 for (cnt = 0; cnt < 0x10; cnt++) { 607 isum = csum + partitionHeader[cnt]; 634 UInt32 cnt, propOffset, propType; local 647 cnt = 0; 648 while (cnt < _ofPartitionSize) { 650 if (_ofImage[cnt] == '\0') break; 653 propName = _ofImage + cnt; 764 UInt32 cnt, length, maxLength; local 1166 UInt32 cnt, checksum = 0; local 1177 UInt32 cnt, checksum, sum = 0; local 1193 UInt32 cnt; local 1399 UInt32 cnt, cnt2; local [all...] |
H A D | IOCPU.cpp | 307 long cnt, numCPUs; local 358 cnt = numCPUs; 359 while (cnt--) 361 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt)); 402 for (cnt = 0; cnt < numCPUs; cnt++) 404 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt)); 611 int cnt; local 626 for (cnt 652 int cnt; local [all...] |
H A D | IOInterruptController.cpp | 412 int cnt, interruptType; local 453 for (cnt = 0; cnt < numVectors; cnt++) { 454 vectors[cnt].interruptLock = IOLockAlloc(); 455 if (vectors[cnt].interruptLock == NULL) { 456 for (cnt = 0; cnt < numVectors; cnt++) { 457 if (vectors[cnt] [all...] |
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | copyio.c | 142 vm_size_t cnt; local 214 cnt = NBPDE - user_offset; 216 if (cnt > nbytes) 217 cnt = nbytes; 292 (unsigned)kernel_addr, cnt, 0, 0); 297 error = copyin_user(user_offset, kernel_addr, cnt); 301 error = copyout_user(kernel_addr, user_offset, cnt); 305 error = copyinphys_user(user_offset, kernel_addr, cnt); 309 error = copyoutphys_user(kernel_addr, user_offset, cnt); 313 error = copyinstr_user(user_offset, kernel_addr, cnt, [all...] |
/darwin-on-arm/xnu/libkern/gen/ |
H A D | OSDebug.cpp | 59 extern void kmod_dump_log(vm_offset_t *addr, unsigned int cnt); 73 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local 77 OSBacktrace(bt, cnt); 80 for (i = 3; i < cnt && bt[i]; i++) { 92 #define safe_bt(a) (uintptr_t)(a<cnt ? bt[a] : 0) 103 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local 107 (void) OSBacktrace(bt, cnt); 117 kmod_dump_log((vm_offset_t *) &bt[2], cnt - 2);
|
/darwin-on-arm/xnu/pexpert/i386/ |
H A D | pe_init.c | 276 unsigned long num, den, cnt; local 281 cnt = 2; 282 while (cnt <= den) { 283 if ((num % cnt) || (den % cnt)) { 284 cnt++; 288 num /= cnt; 289 den /= cnt;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | pipe.h | 96 * Separate in, out, cnt are used to simplify calculations. 97 * Buffered write is active when the buffer.cnt field is set. 100 u_int cnt; /* number of chars currently in buffer */ member in struct:pipebuf 114 vm_size_t cnt; /* number of chars in buffer */ member in struct:pipemapping
|
/darwin-on-arm/xnu/libkern/ |
H A D | OSKextLib.cpp | 437 kmod_panic_dump(vm_offset_t * addr, unsigned int cnt) argument 441 OSKext::printKextsInBacktrace(addr, cnt, &kdb_printf, 447 void kmod_dump_log(vm_offset_t *addr, unsigned int cnt); 452 unsigned int cnt) 454 OSKext::printKextsInBacktrace(addr, cnt, &printf, /* lock? */ true); 450 kmod_dump_log( vm_offset_t * addr, unsigned int cnt) argument
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | sys_pipe.c | 372 if (p->pipe_buffer.cnt > 0 && p->pipe_buffer.in <= p->pipe_buffer.out ){ 513 pipe_count = cpipe->pipe_peer->pipe_buffer.cnt; 519 pipe_count = cpipe->pipe_buffer.cnt; 620 cpipe->pipe_buffer.cnt = 0; 738 if (rpipe->pipe_buffer.cnt > 0) { 745 if (size > rpipe->pipe_buffer.cnt) 746 size = rpipe->pipe_buffer.cnt; 763 rpipe->pipe_buffer.cnt -= size; 770 if (rpipe->pipe_buffer.cnt == 0) { 835 } else if (rpipe->pipe_buffer.cnt < rpip [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | if_loop.c | 279 u_int32_t cnt = 0, len = 0; local 286 cnt++; 313 s.packets_in = cnt; 314 s.packets_out = cnt; 387 u_int32_t cnt, len = 0; local 393 &m_tail, &cnt, &len) != 0) 398 &m_tail, &cnt, &len) != 0) 405 if (cnt >= if_bw_measure_size) 409 ts.tv_nsec = (lo_bw_sleep_usec << 10) * cnt; 415 if (cnt > [all...] |
/darwin-on-arm/xnu/osfmk/console/panic_ui/ |
H A D | qtif2kraw.c | 496 int cnt; local 498 cnt = (nomatchrun > 127) ? 127 : nomatchrun; 499 fileArr[filePos++] = cnt; 500 nomatchrun -= cnt; 502 while ( cnt-- ) 530 int cnt; local 532 cnt = (nomatchrun > 127) ? 127 : nomatchrun; 533 fileArr[filePos++] = cnt; 534 nomatchrun -= cnt; 536 while ( cnt [all...] |
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq.c | 107 u_int32_t cnt, u_int32_t size) 110 qlen(q) += cnt; 324 _flushq_flow(class_queue_t *q, u_int32_t flow, u_int32_t *cnt, u_int32_t *len) argument 362 if (cnt != NULL) 363 *cnt = c; 106 _addq_multi(class_queue_t *q, struct mbuf *m_head, struct mbuf *m_tail, u_int32_t cnt, u_int32_t size) argument
|
/darwin-on-arm/xnu/osfmk/vm/ |
H A D | bsd_vm.c | 944 vm_size_t cnt, 959 while (cnt) { 960 size = (cnt < (PAGE_SIZE * MAX_UPL_TRANSFER)) ? cnt : (PAGE_SIZE * MAX_UPL_TRANSFER); /* effective max */ 970 cnt -= size; 1024 vm_size_t cnt) 1030 assert(! (cnt & PAGE_MASK)); 1035 assert((upl_size_t) cnt == cnt); 1040 (upl_size_t) cnt, 941 vnode_pager_cluster_write( vnode_pager_t vnode_object, vm_object_offset_t offset, vm_size_t cnt, vm_object_offset_t * resid_offset, int * io_error, int upl_flags) argument 1019 vnode_pager_cluster_read( vnode_pager_t vnode_object, vm_object_offset_t base_offset, vm_object_offset_t offset, uint32_t io_streaming, vm_size_t cnt) argument 1088 vnode_pager_release_from_cache( int *cnt) argument [all...] |
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp.c | 456 mach_vm_size_t cnt; local 466 cnt = kdp_machine_vm_write((caddr_t)rq->data, (mach_vm_address_t)rq->address, rq->nbytes); 489 mach_vm_size_t cnt; local 499 cnt = kdp_machine_vm_write((caddr_t)rq->data, (mach_vm_address_t)rq->address, (mach_vm_size_t)rq->nbytes); 553 mach_vm_size_t cnt; local 585 cnt = kdp_machine_vm_read((mach_vm_address_t)rq->address, (caddr_t)rp->data, n); 588 rp->hdr.len += cnt; 607 mach_vm_size_t cnt; local 621 cnt = kdp_machine_vm_read((mach_vm_address_t)rq->address, (caddr_t)rp->data, rq->nbytes); 624 rp->hdr.len += cnt; 643 int cnt; local 942 mach_vm_size_t cnt; local 981 mach_vm_size_t cnt; local [all...] |
/darwin-on-arm/xnu/bsd/net/pktsched/ |
H A D | pktsched_priq.c | 257 u_int32_t cnt, len; local 264 pr->flow, &cnt, &len); 265 pr->packets += cnt; 778 u_int32_t cnt = 0, len = 0, qlen; local 792 rio_purgeq(cl->cl_rio, &cl->cl_q, flow, &cnt, &len); 797 red_purgeq(cl->cl_red, &cl->cl_q, flow, &cnt, &len); 802 blue_purgeq(cl->cl_blue, &cl->cl_q, flow, &cnt, &len); 806 sfb_purgeq(cl->cl_sfb, &cl->cl_q, flow, &cnt, &len); 808 _flushq_flow(&cl->cl_q, flow, &cnt, &len); 810 if (cnt > [all...] |