Searched refs:cnt (Results 1 - 25 of 677) sorted by last modified time

1234567891011>>

/macosx-10.10/xnu-2782.1.97/osfmk/default_pager/
H A Ddp_backing_store.c234 dp_size_t cnt,
2902 * A "cnt" of 0 means that the caller just wants to check if the page at
2906 * A "cnt" of -1 means that the caller wants to bring back from the backing
2913 dp_size_t cnt,
2946 if (cnt == (dp_size_t) -1)
2985 if (cnt == 0) {
3022 if (cnt == 0) {
3062 assert(cnt != 0);
3063 cnt = VM_SUPER_CLUSTER;
3065 cluster_length = (vm_size_t) cnt;
2910 pvs_cluster_read( vstruct_t vs, dp_offset_t vs_offset, dp_size_t cnt, void *fault_info) argument
3352 vs_cluster_write( vstruct_t vs, upl_t internal_upl, upl_offset_t offset, upl_size_t cnt, boolean_t dp_internal, int flags) argument
3984 vs_cluster_transfer( vstruct_t vs, dp_offset_t offset, dp_size_t cnt, upl_t upl) argument
[all...]
/macosx-10.10/xnu-2782.1.97/libkern/c++/
H A DOSKext.cpp9718 unsigned int cnt,
9755 if (!summaryIsInBacktrace(summary, addr, cnt)) {
9783 unsigned int cnt)
9787 for (i = 0; i < cnt; i++) {
9716 printKextsInBacktrace( vm_offset_t * addr, unsigned int cnt, int (* printf_func)(const char *fmt, ...), bool lockFlag, bool doUnslide) argument
9780 summaryIsInBacktrace( OSKextLoadedKextSummary * summary, vm_offset_t * addr, unsigned int cnt) argument
/macosx-10.10/xnu-2782.1.97/libkern/gen/
H A DOSDebug.cpp53 extern void kmod_dump_log(vm_offset_t *addr, unsigned int cnt, boolean_t doUnslide);
67 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local
71 OSBacktrace(bt, cnt);
74 for (i = 3; i < cnt && bt[i]; i++) {
86 #define safe_bt(a) (uintptr_t)(a<cnt ? bt[a] : 0)
97 const unsigned cnt = sizeof(bt) / sizeof(bt[0]); local
101 (void) OSBacktrace(bt, cnt);
114 kmod_dump_log((vm_offset_t *) &bt[2], cnt - 2, TRUE);
/macosx-10.10/xnu-2782.1.97/iokit/Kernel/
H A DIOCPU.cpp348 long cnt, numCPUs; local
401 cnt = numCPUs;
402 while (cnt--)
404 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt));
445 for (cnt = 0; cnt < numCPUs; cnt++)
447 target = OSDynamicCast(IOCPU, gIOCPUs->getObject(cnt));
654 int cnt; local
669 for (cnt
695 int cnt; local
[all...]
H A DIONVRAM.cpp625 UInt8 cnt, isum, csum = 0; local
627 for (cnt = 0; cnt < 0x10; cnt++) {
628 isum = csum + partitionHeader[cnt];
638 UInt32 cnt; local
650 cnt = 0;
651 while (cnt < _ofPartitionSize) {
653 if (_ofImage[cnt] == '\0') break;
656 propName = _ofImage + cnt;
1041 UInt32 cnt, checksum = 0; local
1052 UInt32 cnt, checksum, sum = 0; local
1068 UInt32 cnt; local
1159 UInt32 cnt, cnt2; local
[all...]
H A DIOPMrootDomain.cpp7033 unsigned cnt; local
7036 for (cnt = 0; cnt < channelList->nchannels; cnt++) {
7037 if ( (channelList->channels[cnt].channel_id == kSleepCntChID) ||
7038 (channelList->channels[cnt].channel_id == kDarkWkCntChID) ||
7039 (channelList->channels[cnt].channel_id == kUserWkCntChID) ) {
7058 unsigned cnt; local
7063 for (cnt = 0; cnt < channelLis
8596 int cnt = 0; local
[all...]
H A DIOPlatformExpert.cpp273 long cnt;
278 for (cnt = 0; cnt < 10000; cnt++) {
H A DIOReporter.cpp491 int cnt; local
532 for (cnt = 0; cnt < _channelDimension; cnt++) {
534 _elements[_nElements + cnt].channel_id = channel_id;
535 _elements[_nElements + cnt].provider_id = _driver_id;
536 _elements[_nElements + cnt].channel_type = _channelType;
537 _elements[_nElements + cnt].channel_type.element_idx = cnt;
539 //IOREPORTER_DEBUG_ELEMENT(_swapNElements + cnt);
960 int cnt, cnt2; local
997 unsigned int cnt, chCnt; local
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/netinet/
H A Dtcp_input.c4501 tcp_dooptions(tp, cp, cnt, th, to, input_ifscope)
4507 int cnt;
4515 for (; cnt > 0; cnt -= optlen, cp += optlen) {
4522 if (cnt < 2)
4525 if (optlen < 2 || optlen > cnt)
4612 int cnt = off + th->th_urp - 1; local
4614 while (cnt >= 0) {
4615 if (m->m_len > cnt) {
4616 char *cp = mtod(m, caddr_t) + cnt;
[all...]
H A Dip_icmp.c737 int opt, cnt; local
756 for (cnt = optlen; cnt > 0; cnt -= len, cp += len) {
763 if (cnt < IPOPT_OLEN + sizeof(*cp))
767 len > cnt)
781 cnt = opts->m_len % 4;
782 if (cnt) {
783 for (; cnt < 4; cnt
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/net/
H A Dkpi_interface.c1995 int cnt = 0; local
2020 ++cnt;
2025 if (cnt == 0) {
2030 MALLOC(*list, ifnet_t *, sizeof (ifnet_t) * (cnt + 1),
2036 bzero(*list, sizeof (ifnet_t) * (cnt + 1));
2037 *count = cnt;
2043 (*list)[--cnt] = ifl->ifl_ifp;
H A Dkpi_interface.h736 @param cnt Pointer to a storage for the number of packets dequeued.
742 u_int32_t *cnt, u_int32_t *len);
1298 @param cnt Pointer to a storage for the number of packets dequeued.
1310 mbuf_t *first_packet, mbuf_t *last_packet, u_int32_t *cnt, u_int32_t *len);
1327 @param cnt Pointer to a storage for the number of packets dequeued.
1340 mbuf_t *last_packet, u_int32_t *cnt, u_int32_t *len);
H A Dpktap.c368 __unused const struct ifnet_demux_desc *dmx, __unused u_int32_t cnt)
367 pktap_add_proto(__unused ifnet_t ifp, protocol_family_t pf, __unused const struct ifnet_demux_desc *dmx, __unused u_int32_t cnt) argument
H A Ddlil.c2992 struct mbuf **tail, u_int32_t *cnt, u_int32_t *len)
3003 rc = ifclassq_dequeue(&ifp->if_snd, limit, head, tail, cnt, len);
3010 u_int32_t limit, struct mbuf **head, struct mbuf **tail, u_int32_t *cnt,
3022 tail, cnt, len);
3260 u_int32_t cnt, ifnet_model_t mode)
3262 return (dlil_input_packet_list_common(ifp, m, cnt, mode, TRUE));
3267 u_int32_t cnt, ifnet_model_t mode, boolean_t ext)
3281 if (ext && mode == IFNET_MODEL_INPUT_POLL_ON && cnt > 1 &&
3283 poll_thresh = cnt;
4477 u_int16_t *cnt; local
2991 ifnet_dequeue_multi(struct ifnet *ifp, u_int32_t limit, struct mbuf **head, struct mbuf **tail, u_int32_t *cnt, u_int32_t *len) argument
3009 ifnet_dequeue_service_class_multi(struct ifnet *ifp, mbuf_svc_class_t sc, u_int32_t limit, struct mbuf **head, struct mbuf **tail, u_int32_t *cnt, u_int32_t *len) argument
3259 dlil_input_packet_list_extended(struct ifnet *ifp, struct mbuf *m, u_int32_t cnt, ifnet_model_t mode) argument
3266 dlil_input_packet_list_common(struct ifnet *ifp_param, struct mbuf *m, u_int32_t cnt, ifnet_model_t mode, boolean_t ext) argument
5821 ifp_if_input_poll(struct ifnet *ifp, u_int32_t flags, u_int32_t max_cnt, struct mbuf **m_head, struct mbuf **m_tail, u_int32_t *cnt, u_int32_t *len) argument
[all...]
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dsys_pipe.c373 if (p->pipe_buffer.cnt > 0 && p->pipe_buffer.in <= p->pipe_buffer.out ){
512 pipe_count = cpipe->pipe_peer->pipe_buffer.cnt;
518 pipe_count = cpipe->pipe_buffer.cnt;
619 cpipe->pipe_buffer.cnt = 0;
737 if (rpipe->pipe_buffer.cnt > 0) {
744 if (size > rpipe->pipe_buffer.cnt)
745 size = rpipe->pipe_buffer.cnt;
762 rpipe->pipe_buffer.cnt -= size;
769 if (rpipe->pipe_buffer.cnt == 0) {
834 } else if (rpipe->pipe_buffer.cnt < rpip
[all...]
H A Duipc_socket2.c2370 u_int32_t cnt = 1; local
2379 cnt += (m->m_ext.ext_size >> MSIZESHIFT);
2381 OSAddAtomic(cnt, &total_sbmb_cnt);
2391 int cnt = -1; local
2400 cnt -= (m->m_ext.ext_size >> MSIZESHIFT);
2402 OSAddAtomic(cnt, &total_sbmb_cnt);
H A Dsys_generic.c2037 if ((evq->ee_eventmask & EV_RE) && pipep->pipe_buffer.cnt) {
2039 evq->ee_req.er_rcnt = pipep->pipe_buffer.cnt;
2042 (MAX(pipep->pipe_buffer.size,PIPE_SIZE) - pipep->pipe_buffer.cnt) >= PIPE_BUF) {
2049 evq->ee_req.er_wcnt = MAX(pipep->pipe_buffer.size, PIPE_SIZE) - pipep->pipe_buffer.cnt;
2120 - byte cnt >= receive low water mark
2126 - byte cnt avail >= send low water mark
H A Duipc_syscalls.c1399 if (uap->cnt == 0 || uap->cnt > UIO_MAXIOV) {
1403 user_msg = _MALLOC(uap->cnt * sizeof(struct user_msghdr_x),
1410 uiop = _MALLOC(uap->cnt * sizeof(struct uio *),
1421 umsgp = _MALLOC(uap->cnt * size_of_msghdr,
1428 error = copyin(uap->msgp, umsgp, uap->cnt * size_of_msghdr);
1435 UIO_WRITE, uap->cnt, user_msg, uiop);
1444 if (uio_array_is_valid(uiop, uap->cnt) == 0) {
1452 for (i = 0; i < uap->cnt; i++) {
1492 len_before = uio_array_resid(uiop, uap->cnt);
[all...]
/macosx-10.10/objc4-646/runtime/
H A Dobjc-runtime-old.mm282 int cnt, num;
294 cnt = 0;
296 while (cnt < bufferLen &&
299 buffer[cnt++] = cls;
/macosx-10.10/libdispatch-442.1.4/src/
H A Dqueue.c1848 int cnt; local
1849 if (!dc || (cnt = dc->dc_cache_cnt -
1856 } while (--cnt && (dc = next_dc));
H A Dsource.c4201 unsigned int cnt = 1000; // do not stall out serial queues local
4218 if (DISPATCH_OBJECT_SUSPENDED(ds) || (--cnt == 0)) {
4669 mach_msg_type_number_t cnt = MACH_PORT_RECEIVE_STATUS_COUNT; local
4673 name, MACH_PORT_RECEIVE_STATUS, (void*)&status, &cnt)); local
/macosx-10.10/PowerManagement-494.1.2/pmconfigd/
H A DPMAssertions.c1579 if (stats->cnt++ == 0) {
1587 if (stats && (stats->cnt) && (assertion->state & kAssertionStateAddsToProcStats)) {
1588 if (--stats->cnt == 0) {
2030 CFIndex j, cnt; local
2035 cnt = CFDictionaryGetCount(gProcessDict);
2036 procs = malloc(cnt*(sizeof(procs)));
2039 memset(procs, 0, cnt*(sizeof(procs)));
2041 for (j = 0; (j < cnt) && (procs[j] != NULL); j++) {
2061 cnt = CFDictionaryGetCount(gProcessDict);
2062 procs = malloc(cnt*(sizeo
[all...]
/macosx-10.10/PowerManagement-494.1.2/pmset/
H A Dpmset.c2797 CFIndex cnt = 0; local
2825 cnt = isA_CFArray(log) ? CFArrayGetCount(log) : 0;
2826 for (int i=0; i < cnt; i++) {
2888 if (cnt) CFRelease(log);
5880 int chosen = -1, cnt = 0; local
5889 snprintf(key, sizeof(key), "%s%d", KPMASLWakeReqAppNamePrefix, cnt);
5893 snprintf(key, sizeof(key), "%s%d", kPMASLWakeReqTimeDeltaPrefix, cnt);
5897 snprintf(key, sizeof(key), "%s%d", kPMASLWakeReqTypePrefix, cnt);
5901 snprintf(key, sizeof(key), "%s%d", kPMASLWakeReqClientInfoPrefix, cnt);
5905 (cnt
5917 int cnt = 0; local
7066 int i = 0, cnt = 0; local
7103 static int cnt = 0; local
7281 __block int cnt = 0; local
7444 size_t cnt; local
[all...]
/macosx-10.10/IOKitUser-1050.1.21/
H A DIOKitLib.c1632 static __inline__ void checkPtrRange(void *ptr, IOByteCount cnt) argument
1635 checkEnd = ((uint8_t *) ptr)[cnt];
/macosx-10.10/cups-408/cups/scheduler/
H A Dmain.c33 extern int launch_activate_socket(const char *name, int **fds, size_t *cnt);

Completed in 523 milliseconds

1234567891011>>