Searched refs:bytes (Results 1 - 25 of 75) sorted by relevance

123

/xnu-2782.1.97/osfmk/vm/
H A Dvm_external.c77 * For example, a map N bytes long can record:
79 * 16 bytes = 128 pages = (@ 4KB/page) 512KB
80 * 1024 bytes = 8192 pages = (@ 4KB/page) 32MB
81 * 4096 bytes = 32768 pages = (@ 4KB/page) 128MB
103 * when existence_size <= 4 bytes (i.e., 32 pages).
127 vm_object_size_t bytes; local
130 bytes = stob(size);
131 if (bytes <= SMALL_SIZE) {
136 } else if (bytes <= LARGE_SIZE) {
137 bytes
154 vm_object_size_t bytes; local
178 vm_object_size_t bytes; local
197 vm_object_size_t bytes; local
[all...]
H A DWKdm_new.h81 unsigned int bytes);
/xnu-2782.1.97/libkern/libkern/c++/
H A DOSData.h50 * OSData wraps an array of bytes in a C++ object
54 * OSData represents an array of bytes as a Libkern C++ object.
56 * You can add bytes to them and
113 * @param capacity The initial capacity of the OSData object in bytes.
122 * when necessary, and will grow as needed to accommodate more bytes
136 * @param bytes The buffer of data to copy.
137 * @param numBytes The length of <code>bytes</code>.
145 * The new OSData object will grow as needed to accommodate more bytes
150 const void * bytes,
161 * @param bytes Th
[all...]
/xnu-2782.1.97/bsd/i386/
H A Dparam.h85 #define NBPG 4096 /* bytes/page */
121 /* Core clicks (NeXT_page_size bytes) to segments and vice versa */
125 /* Core clicks (4096 bytes) to disk blocks */
130 /* clicks to bytes */
133 /* bytes to clicks */
137 #define btodb(bytes, devBlockSize) \
138 ((unsigned)(bytes) / devBlockSize)
142 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
143 ((unsigned)(bytes) >> DEV_BSHIF
[all...]
/xnu-2782.1.97/osfmk/x86_64/
H A Dloose_ends.c97 extern void bcopy_no_overwrite(const char *from, char *to,vm_size_t bytes);
168 uint32_t bytes)
170 bzero_phys(src64,bytes);
176 uint32_t bytes)
178 bzero(PHYSMAP_PTOV(src64), bytes); local
190 vm_size_t bytes)
193 if (((((uint32_t)src64 & (NBPG-1)) + bytes) > NBPG) ||
194 ((((uint32_t)dst64 & (NBPG-1)) + bytes) > NBPG) ) {
197 bcopy(PHYSMAP_PTOV(src64), PHYSMAP_PTOV(dst64), bytes); local
207 vm_size_t bytes,
166 bzero_phys_nc( addr64_t src64, uint32_t bytes) argument
174 bzero_phys( addr64_t src64, uint32_t bytes) argument
187 bcopy_phys( addr64_t src64, addr64_t dst64, vm_size_t bytes) argument
205 apply_func_phys( addr64_t dst64, vm_size_t bytes, int (*func)(void * buffer, vm_size_t bytes, void * arg), void * arg) argument
225 ovbcopy( const char *from, char *to, vm_size_t bytes) argument
[all...]
/xnu-2782.1.97/bsd/net/
H A Dflowhash.c93 const u_int8_t *bytes = (u_int8_t *)(void *)(uintptr_t)(p + i); local
101 (((u_int32_t)bytes[0]) << 24) |
102 (((u_int32_t)bytes[1]) << 16) |
103 (((u_int32_t)bytes[2]) << 8) |
104 ((u_int32_t)bytes[3]);
107 (((u_int32_t)bytes[3]) << 24) |
108 (((u_int32_t)bytes[2]) << 16) |
109 (((u_int32_t)bytes[1]) << 8) |
110 ((u_int32_t)bytes[0]);
119 const u_int8_t *bytes local
[all...]
/xnu-2782.1.97/libkern/c++/
H A DOSData.cpp88 bool OSData::initWithBytes(const void *bytes, unsigned int inLength) argument
90 if ((inLength && !bytes) || !initWithCapacity(inLength))
93 if (bytes != data)
94 bcopy(bytes, data, inLength);
100 bool OSData::initWithBytesNoCopy(void *bytes, unsigned int inLength) argument
107 data = bytes;
140 OSData *OSData::withBytes(const void *bytes, unsigned int inLength) argument
144 if (me && !me->initWithBytes(bytes, inLength)) {
151 OSData *OSData::withBytesNoCopy(void *bytes, unsigned int inLength) argument
155 if (me && !me->initWithBytesNoCopy(bytes, inLengt
249 appendBytes(const void *bytes, unsigned int inLength) argument
[all...]
/xnu-2782.1.97/bsd/net/classq/
H A Dclassq.h102 u_int64_t bytes; member in struct:pktcntr
117 u_int64_t qsize; /* Approx. queue size (in number of bytes) */
126 #define qsize(q) (q)->qsize /* Approx. bytes in queue */
140 (_cntr)->bytes += (_len); \
145 (_cntr)->bytes = 0; \
H A Dclassq_sfb.c70 * bytes: false
188 /* Minimum nuber of bytes in queue to get flow controlled */
618 "hinterval=%d sec, sfb_bins=%d bytes, eff_rate=%llu bps"
697 cbin->bytes = 0;
872 VERIFY(bin->pkts > 0 && bin->bytes >= (u_int32_t)pkt->len);
874 bin->bytes -= pkt->len;
882 bin->bytes <= sp->sfb_fc_threshold ||
897 VERIFY(bin->pkts > 0 && bin->bytes >= (u_int64_t)pkt->len);
899 bin->bytes -= pkt->len;
911 VERIFY(bin->pkts > 0 && bin->bytes >
1393 sfb_purgeq(struct sfb *sp, class_queue_t *q, u_int32_t flow, u_int32_t *packets, u_int32_t *bytes) argument
[all...]
H A Dif_classq.h57 u_int32_t bytes; /* (out) purged bytes */ member in struct:cqrq_purge_sc
70 u_int32_t bytes; /* (out) bytes enqueued */ member in struct:cqrq_stat_sc
103 u_int32_t depth; /* depth in bytes */
307 (_bytes) = _req.bytes; \
334 (*(_bytes)) = _req.bytes; \
H A Dclassq_blue.c338 u_int32_t *packets, u_int32_t *bytes)
353 if (bytes != NULL)
354 *bytes = len;
337 blue_purgeq(struct blue *bp, class_queue_t *q, u_int32_t flow, u_int32_t *packets, u_int32_t *bytes) argument
/xnu-2782.1.97/iokit/IOKit/
H A DIOBufferMemoryDescriptor.h131 * hold capacity bytes. The descriptor's length is initially set to the
158 @param capacity The number of bytes to allocate.
159 @param alignment The minimum required alignment of the buffer in bytes - 1 is the default for no required alignment. For example, pass 256 to get memory allocated at an address with bits 0-7 zero.
180 @param capacity The number of bytes to allocate.
194 * hold capacity bytes. The descriptor's length is initially set to the
202 virtual bool initWithBytes(const void * bytes,
211 * Returns a new IOBufferMemoryDescriptor preloaded with bytes (copied).
215 const void * bytes,
269 virtual bool appendBytes(const void *bytes, vm_size_t withLength);
/xnu-2782.1.97/libkern/x86_64/
H A DOSAtomic.s45 movzbq %al, %rax #; clear out the high bytes
67 movzbq %al, %rax #; clear out the high bytes
/xnu-2782.1.97/osfmk/i386/
H A Dphys.c209 __private_extern__ int ml_copy_phys(addr64_t src64, addr64_t dst64, vm_size_t bytes) { argument
258 if (((((uint32_t)src64 & (I386_PGBYTES-1)) + bytes) > I386_PGBYTES) || ((((uint32_t)dst64 & (I386_PGBYTES-1)) + bytes) > I386_PGBYTES) ) {
268 switch (bytes) {
280 err = _bcopy(src, dst, bytes);
H A Dmisc_protos.h91 extern int apply_func_phys(addr64_t src64, vm_size_t bytes, int (*func)(void * buffer, vm_size_t bytes, void * arg), void * arg);
H A Dpmap_internal.h130 previous implementation the structure of the pv_entries (each 16 bytes in size) was
872 PMAP_ZINFO_PALLOC(pmap_t pmap, vm_size_t bytes) argument
878 pmap_ledger_credit(pmap, task_ledgers.tkm_private, bytes);
882 OSAddAtomic64(bytes, (int64_t *)&zinfo[pt_fake_zone_index].alloc);
886 PMAP_ZINFO_PFREE(pmap_t pmap, vm_size_t bytes) argument
892 pmap_ledger_debit(pmap, task_ledgers.tkm_private, bytes);
896 OSAddAtomic64(bytes, (int64_t *)&zinfo[pt_fake_zone_index].free);
900 PMAP_ZINFO_SALLOC(pmap_t pmap, vm_size_t bytes) argument
902 pmap_ledger_credit(pmap, task_ledgers.tkm_shared, bytes);
906 PMAP_ZINFO_SFREE(pmap_t pmap, vm_size_t bytes) argument
[all...]
/xnu-2782.1.97/tools/tests/libMicro/apple/
H A Dlmbench_bw_unix.c88 size_t xfer; /* bytes to read/write per "packet" */
89 size_t bytes; /* bytes to read/write in one iteration */ member in struct:__anon1235
141 " [-s <total bytes>]\n"
188 state->bytes = opts;
249 size_t todo = state->bytes;
/xnu-2782.1.97/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp383 * hold capacity bytes. The descriptor's length is initially set to the capacity.
400 * Initialize a new IOBufferMemoryDescriptor preloaded with bytes (copied).
426 * Returns a new IOBufferMemoryDescriptor preloaded with bytes (copied).
583 IOBufferMemoryDescriptor::appendBytes(const void * bytes, vm_size_t withLength) argument
595 bcopy(/* from */ bytes, (void *)(_ranges.v64->address + offset),
598 writeBytes(offset, bytes, actualBytesToCopy);
640 void * bytes = getBytesNoCopy(offset, 0); local
642 if (bytes && lengthOfSegment)
645 return bytes;
H A DIOLib.cpp780 iopa_alloc(iopa_t * a, iopa_proc_t alloc, vm_size_t bytes, uint32_t balign) argument
796 if (!bytes) bytes = 1;
797 count = (bytes + gIOPageAllocChunkBytes - 1) / gIOPageAllocChunkBytes;
807 a->bytecount += bytes;
827 if (addr) a->bytecount += bytes;
837 iopa_free(iopa_t * a, uintptr_t addr, vm_size_t bytes) argument
843 if (!bytes) bytes = 1;
851 count = (bytes
[all...]
/xnu-2782.1.97/osfmk/kern/
H A Dkalloc.c111 KALLOC_ZINFO_SALLOC(vm_size_t bytes) argument
117 ledger_debit(thr->t_ledger, task_ledgers.tkm_shared, bytes);
121 zinfo[kalloc_fake_zone_index].alloc += bytes;
125 KALLOC_ZINFO_SFREE(vm_size_t bytes) argument
131 ledger_credit(thr->t_ledger, task_ledgers.tkm_shared, bytes);
135 zinfo[kalloc_fake_zone_index].free += bytes;
367 * Ensure that zones up to size 8192 bytes exist.
598 * the MALLOC was retaining in the first 4 bytes of
/xnu-2782.1.97/bsd/hfs/hfscommon/headers/
H A DBTreesPrivate.h470 #define MoveRecordsLeft(src,dst,bytes) bcopy((src),(dst),(bytes))
476 #define MoveRecordsRight(src,dst,bytes) bcopy((src),(dst),(bytes))
/xnu-2782.1.97/libsyscall/xcodescripts/
H A Dcreate-syscalls.pl61 # size in bytes of known types (only used for i386)
107 bytes => 0,
117 bytes => 0,
127 bytes => 0,
224 bytes => $argbytes,
331 print $f "#define __SYSCALL_32BIT_ARG_BYTES $$symbol{bytes}\n";
/xnu-2782.1.97/osfmk/kdp/
H A Dkdp_internal.h165 * to trap into the debugger. Must be 4 bytes or less in the current
172 uint8_t *bytes,
/xnu-2782.1.97/tools/tests/memorystatus/
H A Dmemorystatus.c214 void *bytes = NULL; local
228 bytes = malloc(bufLen);
229 if (bytes == NULL) {
233 if (read(fd, bytes, bufLen) != bufLen) {
237 data = CFDataCreateWithBytesNoCopy(kCFAllocatorDefault, (const UInt8 *) bytes, bufLen, kCFAllocatorNull);
251 if (bytes != NULL) {
252 free(bytes);
401 /* The limit is retrieved in bytes, but set in MB, so rescale */
/xnu-2782.1.97/bsd/net/altq/
H A Dif_altq.h143 (_bytes) = _req.bytes; \

Completed in 80 milliseconds

123