/macosx-10.5.8/xnu-1228.15.4/osfmk/profiling/i386/ |
H A D | profile-md.h | 175 #define PROF_CNT_INC(cnt) \ 177 : "=g" ((cnt).low), "=g" ((cnt).high) \ 178 : "0" ((cnt).low), "1" ((cnt).high)) 180 #define PROF_CNT_ADD(cnt,val) \ 182 : "=g,r" ((cnt).low), "=g,r" ((cnt).high) \ 184 "0,0" ((cnt).low), "1,1" ((cnt) 333 prof_cnt_t cnt; /* # of calls to _{,g}prof_mcount */ member in struct:profile_stats [all...] |
/macosx-10.5.8/xnu-1228.15.4/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...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/profiling/ppc/ |
H A D | profile-md.h | 93 #define PROF_CNT_INC(cnt) ((++((cnt).low) == 0) ? ++((cnt).high) : 0) 94 #define PROF_CNT_ADD(cnt,val) (((((cnt).low + (val)) < (val)) ? ((cnt).high++) : 0), ((cnt).low += (val))) 95 #define PROF_CNT_LADD(cnt,val) (PROF_CNT_ADD(cnt,(val).low), (cnt) [all...] |
/macosx-10.5.8/xnu-1228.15.4/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...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/ppc/ |
H A D | kdp_vm.c | 125 unsigned resid, cnt; local 147 cnt = 4096 - (cur_virt_src & 0xFFF); /* Get length left on page */ 148 if (cnt > (4096 - (cur_virt_dst & 0xFFF))) 149 cnt = 4096 - (cur_virt_dst & 0xFFF); 151 if (cnt > resid) cnt = resid; 153 bcopy_phys(cur_virt_src, cur_phys_dst, cnt); /* Copy stuff over */ 155 cur_virt_src += cnt; 156 cur_virt_dst += cnt; 157 resid -= cnt; 213 unsigned resid, cnt, cnt_src, cnt_dst; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/pexpert/ppc/ |
H A D | pe_clock_speed.c | 117 long cnt, diff, raw_cpu_freq, raw_bus_freq, tmp_bus_freq, local 145 for (cnt = 0; cnt < num_speeds; cnt++) { 146 bus_freq_num = speed_list[cnt * 2]; 147 bus_freq_den = speed_list[cnt * 2 + 1]; 153 if (cnt != num_speeds) continue;
|
H A D | pe_init.c | 248 unsigned long num, den, cnt; local 253 cnt = 2; 254 while (cnt <= den) { 255 if ((num % cnt) || (den % cnt)) { 256 cnt++; 260 num /= cnt; 261 den /= cnt;
|
/macosx-10.5.8/xnu-1228.15.4/libkern/gen/ |
H A D | OSDebug.cpp | 50 extern void kmod_dump_log(vm_offset_t *addr, unsigned int cnt); 62 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local 66 OSBacktrace(bt, cnt); 69 for (i = 3; i < cnt && bt[i]; i++) { 81 #define safe_bt(a) (int)(a<cnt ? bt[a] : 0) 92 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local 96 (void) OSBacktrace(bt, cnt); 106 kmod_dump_log((vm_offset_t *) &bt[2], cnt - 2);
|
/macosx-10.5.8/xnu-1228.15.4/libsa/ |
H A D | sort.c | 172 register unsigned int cnt, i, j, l; local 196 CREATE(l, nmemb, i, j, t, p, size, cnt, tmp); 204 COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2); 205 COPY(base + nmemb * size, base + size, cnt, size, tmp1, tmp2); 207 SELECT(i, j, nmemb, t, p, size, k, cnt, tmp1, tmp2);
|
/macosx-10.5.8/xnu-1228.15.4/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...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IONVRAM.cpp | 584 UInt8 cnt, isum, csum = 0; local 586 for (cnt = 0; cnt < 0x10; cnt++) { 587 isum = csum + partitionHeader[cnt]; 614 UInt32 cnt, propOffset, propType; local 627 cnt = 0; 628 while (cnt < _ofPartitionSize) { 630 if (_ofImage[cnt] == '\0') break; 633 propName = _ofImage + cnt; 744 UInt32 cnt, length, maxLength; local 1146 UInt32 cnt, checksum = 0; local 1157 UInt32 cnt, checksum, sum = 0; local 1173 UInt32 cnt; local 1381 UInt32 cnt, cnt2; local [all...] |
H A D | IOCPU.cpp | 296 long cnt, numCPUs; local 332 cnt = numCPUs; 333 while (cnt--) 335 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt)); 370 for (cnt = 0; cnt < numCPUs; cnt++) 372 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt)); 579 int cnt; local 594 for (cnt 620 int cnt; local [all...] |
H A D | IOInterruptController.cpp | 430 int cnt, interruptType; local 471 for (cnt = 0; cnt < numVectors; cnt++) { 472 vectors[cnt].interruptLock = IOLockAlloc(); 473 if (vectors[cnt].interruptLock == NULL) { 474 for (cnt = 0; cnt < numVectors; cnt++) { 475 if (vectors[cnt] [all...] |
H A D | IOCopyMapper.cpp | 206 unsigned int zone, zoneSize, z, cnt; local 261 for (cnt = 0; cnt < pages; cnt++) { 262 ActiveDARTEntry *activeDART = &fMappings[ret + cnt];
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ml/i386/ |
H A D | kdp_vm.c | 116 unsigned cnt = 0; local 146 cnt = PAGE_SIZE - (cur_phys_src & PAGE_MASK); 147 if (cnt > (PAGE_SIZE - (cur_phys_dst & PAGE_MASK))) 148 cnt = PAGE_SIZE - (cur_phys_dst & PAGE_MASK); 149 if (cnt > resid) 150 cnt = resid; 153 bcopy_phys(cur_phys_src, cur_phys_dst, cnt); 155 cur_virt_src += cnt; 156 cur_virt_dst += cnt; 157 resid -= cnt; 173 unsigned resid, cnt, cnt_src, cnt_dst; local [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | pipe.h | 94 * Separate in, out, cnt are used to simplify calculations. 95 * Buffered write is active when the buffer.cnt field is set. 98 u_int cnt; /* number of chars currently in buffer */ member in struct:pipebuf 113 vm_size_t cnt; /* number of chars in buffer */ member in struct:pipemapping
|
/macosx-10.5.8/xnu-1228.15.4/pexpert/i386/ |
H A D | pe_init.c | 233 unsigned long num, den, cnt; local 238 cnt = 2; 239 while (cnt <= den) { 240 if ((num % cnt) || (den % cnt)) { 241 cnt++; 245 num /= cnt; 246 den /= cnt;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | sys_pipe.c | 452 pipe_count = cpipe->pipe_peer->pipe_buffer.cnt; 458 pipe_count = cpipe->pipe_buffer.cnt; 558 cpipe->pipe_buffer.cnt = 0; 674 if (rpipe->pipe_buffer.cnt > 0) { 676 if (size > rpipe->pipe_buffer.cnt) 677 size = rpipe->pipe_buffer.cnt; 694 rpipe->pipe_buffer.cnt -= size; 701 if (rpipe->pipe_buffer.cnt == 0) { 710 } else if ((size = rpipe->pipe_map.cnt) && 726 rpipe->pipe_map.cnt [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | loose_ends.c | 89 extern void invalidate_icache64(addr64_t addr, unsigned cnt, int phys); 516 int cnt = PAGE_SIZE/sizeof(unsigned int); local 525 for (i = 0, addr = (unsigned int *)map->prv_CADDR; i < cnt ; i++ ) 764 vm_size_t cnt; local 833 cnt = NBPDE - user_offset; 835 if (cnt > nbytes) 836 cnt = nbytes; 910 (unsigned)kernel_addr, cnt, 0, 0); 915 error = copyin_user(user_offset, kernel_addr, cnt); 919 error = copyout_user(kernel_addr, user_offset, cnt); [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ffs/ |
H A D | ffs_subr.c | 133 ffs_fragacct(fs, fragmap, fraglist, cnt) 137 int cnt; 152 fraglist[siz] += cnt;
|
/macosx-10.5.8/xnu-1228.15.4/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...] |