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

123

/xnu-2422.115.4/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.h223 /* EMIT... macros emit bytes or words into the intermediate arrays
253 unsigned int bytes);
/xnu-2422.115.4/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
97 * @param capacity The initial capacity of the OSData object in bytes.
106 * when necessary, and will grow as needed to accommodate more bytes
120 * @param bytes The buffer of data to copy.
121 * @param numBytes The length of <code>bytes</code>.
129 * The new OSData object will grow as needed to accommodate more bytes
134 const void * bytes,
145 * @param bytes Th
[all...]
/xnu-2422.115.4/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-2422.115.4/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-2422.115.4/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...]
H A Dntstat.h374 void nstat_route_tx(struct rtentry *rte, u_int32_t packets, u_int32_t bytes, u_int32_t flags);
375 void nstat_route_rx(struct rtentry *rte, u_int32_t packets, u_int32_t bytes, u_int32_t flags);
/xnu-2422.115.4/libkern/c++/
H A DOSData.cpp94 bool OSData::initWithBytes(const void *bytes, unsigned int inLength) argument
96 if ((inLength && !bytes) || !initWithCapacity(inLength))
99 if (bytes != data)
100 bcopy(bytes, data, inLength);
106 bool OSData::initWithBytesNoCopy(void *bytes, unsigned int inLength) argument
113 data = bytes;
146 OSData *OSData::withBytes(const void *bytes, unsigned int inLength) argument
150 if (me && !me->initWithBytes(bytes, inLength)) {
157 OSData *OSData::withBytesNoCopy(void *bytes, unsigned int inLength) argument
161 if (me && !me->initWithBytesNoCopy(bytes, inLengt
250 appendBytes(const void *bytes, unsigned int inLength) argument
[all...]
/xnu-2422.115.4/bsd/net/classq/
H A Dclassq.h102 u_int64_t bytes; member in struct:pktcntr
116 u_int32_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 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 */
306 (_bytes) = _req.bytes; \
333 (*(_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-2422.115.4/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-2422.115.4/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-2422.115.4/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.h128 previous implementation the structure of the pv_entries (each 16 bytes in size) was
867 PMAP_ZINFO_PALLOC(pmap_t pmap, vm_size_t bytes) argument
873 pmap_ledger_credit(pmap, task_ledgers.tkm_private, bytes);
877 OSAddAtomic64(bytes, (int64_t *)&zinfo[pt_fake_zone_index].alloc);
881 PMAP_ZINFO_PFREE(pmap_t pmap, vm_size_t bytes) argument
887 pmap_ledger_debit(pmap, task_ledgers.tkm_private, bytes);
891 OSAddAtomic64(bytes, (int64_t *)&zinfo[pt_fake_zone_index].free);
895 PMAP_ZINFO_SALLOC(pmap_t pmap, vm_size_t bytes) argument
897 pmap_ledger_credit(pmap, task_ledgers.tkm_shared, bytes);
901 PMAP_ZINFO_SFREE(pmap_t pmap, vm_size_t bytes) argument
[all...]
/xnu-2422.115.4/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:__anon1211
141 " [-s <total bytes>]\n"
188 state->bytes = opts;
249 size_t todo = state->bytes;
/xnu-2422.115.4/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,
223 bytes => $argbytes,
327 print $f "#define __SYSCALL_32BIT_ARG_BYTES $$symbol{bytes}\n";
/xnu-2422.115.4/osfmk/kern/
H A Dkalloc.c112 KALLOC_ZINFO_SALLOC(vm_size_t bytes) argument
118 ledger_debit(thr->t_ledger, task_ledgers.tkm_shared, bytes);
122 zinfo[kalloc_fake_zone_index].alloc += bytes;
126 KALLOC_ZINFO_SFREE(vm_size_t bytes) argument
132 ledger_credit(thr->t_ledger, task_ledgers.tkm_shared, bytes);
136 zinfo[kalloc_fake_zone_index].free += bytes;
368 * Ensure that zones up to size 8192 bytes exist.
599 * the MALLOC was retaining in the first 4 bytes of
/xnu-2422.115.4/iokit/Kernel/
H A DIOBufferMemoryDescriptor.cpp435 * hold capacity bytes. The descriptor's length is initially set to the capacity.
452 * Initialize a new IOBufferMemoryDescriptor preloaded with bytes (copied).
478 * Returns a new IOBufferMemoryDescriptor preloaded with bytes (copied).
635 IOBufferMemoryDescriptor::appendBytes(const void * bytes, vm_size_t withLength) argument
647 bcopy(/* from */ bytes, (void *)(_ranges.v64->address + offset),
650 writeBytes(offset, bytes, actualBytesToCopy);
692 void * bytes = getBytesNoCopy(offset, 0); local
694 if (bytes && lengthOfSegment)
697 return bytes;
H A DIOLib.cpp783 iopa_alloc(iopa_t * a, iopa_proc_t alloc, vm_size_t bytes, uint32_t balign) argument
799 if (!bytes) bytes = 1;
800 count = (bytes + kIOPageAllocChunkBytes - 1) / kIOPageAllocChunkBytes;
810 a->bytecount += bytes;
830 if (addr) a->bytecount += bytes;
840 iopa_free(iopa_t * a, uintptr_t addr, vm_size_t bytes) argument
846 if (!bytes) bytes = 1;
854 count = (bytes
[all...]
/xnu-2422.115.4/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-2422.115.4/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-2422.115.4/bsd/net/altq/
H A Dif_altq.h143 (_bytes) = _req.bytes; \
/xnu-2422.115.4/libkern/kxld/
H A Dkxld_sym.c861 long bytes = 0; local
868 bytes = strlen(sym->name) + 1;
869 require_action((u_long)bytes <= strsize - *stroff, finish,
884 *stroff += bytes;
902 long bytes = 0; local
909 bytes = strlen(sym->name) + 1;
910 require_action((u_long)bytes <= strsize - *stroff, finish,
925 *stroff += bytes;

Completed in 91 milliseconds

123