/darwin-on-arm/xnu/osfmk/vm/ |
H A D | vm_external.c | 77 * 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...] |
/darwin-on-arm/xnu/bsd/netat/ |
H A D | adsp_Status.c | 62 * # of bytes avail in local send queue 67 int bytes; local 69 bytes = calcSendQ(sp); 70 bytes = sp->sbuflen - bytes; 72 if (bytes < 0) 74 return bytes; 82 int bytes = 0; local 87 bytes += gbuf_msgsize(mp); 92 bytes 118 short bytes; local [all...] |
H A D | adsp_Control.c | 76 * # of bytes in avail in local receive queue 81 int bytes; local 83 bytes = calcRecvQ(sp); 84 bytes = sp->rbuflen - bytes; /* get what is left */ 86 if ((bytes <= 16)) { /* %%% this should be zero */ 91 return ((bytes+bytes+bytes) >> 2) + 1; /* %%% */ 98 int bytes local [all...] |
/darwin-on-arm/xnu/libkern/libkern/c++/ |
H A D | OSData.h | 50 * 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...] |
/darwin-on-arm/xnu/bsd/arm/ |
H A D | param.h | 61 #define NBPG 4096 /* bytes/page */ 97 /* Core clicks (NeXT_page_size bytes) to segments and vice versa */ 101 /* Core clicks (4096 bytes) to disk blocks */ 106 /* clicks to bytes */ 109 /* bytes to clicks */ 113 #define btodb(bytes, devBlockSize) \ 114 ((unsigned)(bytes) / devBlockSize) 118 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 119 ((unsigned)(bytes) >> DEV_BSHIF [all...] |
/darwin-on-arm/xnu/bsd/i386/ |
H A D | param.h | 85 #define NBPG 4096 /* bytes/page */ 125 /* Core clicks (NeXT_page_size bytes) to segments and vice versa */ 129 /* Core clicks (4096 bytes) to disk blocks */ 134 /* clicks to bytes */ 137 /* bytes to clicks */ 141 #define btodb(bytes, devBlockSize) \ 142 ((unsigned)(bytes) / devBlockSize) 146 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 147 ((unsigned)(bytes) >> DEV_BSHIF [all...] |
/darwin-on-arm/xnu/osfmk/arm/ |
H A D | param.h | 61 #define NBPG 4096 /* bytes/page */ 97 /* Core clicks (NeXT_page_size bytes) to segments and vice versa */ 101 /* Core clicks (4096 bytes) to disk blocks */ 106 /* clicks to bytes */ 109 /* bytes to clicks */ 113 #define btodb(bytes, devBlockSize) \ 114 ((unsigned)(bytes) / devBlockSize) 118 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \ 119 ((unsigned)(bytes) >> DEV_BSHIF [all...] |
H A D | machine_routines.c | 195 void ovbcopy(void *from, void *to, vm_size_t bytes) argument 197 bcopy(from, to, bytes); 205 void bzero_phys(addr64_t src64, uint32_t bytes) argument 208 bzero(phys_to_virt((uint32_t) src64), bytes); local 210 bzero(phys_to_virt((uint64_t) src64), bytes); 220 void bcopy_phys(addr64_t src64, addr64_t dst64, vm_size_t bytes) argument 223 bcopy(phys_to_virt((uint32_t) src64), phys_to_virt((uint32_t) dst64), bytes); local 225 bcopy(phys_to_virt((uint64_t) src64), phys_to_virt((uint64_t) dst64), bytes);
|
/darwin-on-arm/xnu/osfmk/x86_64/ |
H A D | loose_ends.c | 93 extern void bcopy_no_overwrite(const char *from, char *to,vm_size_t bytes); 164 uint32_t bytes) 166 bzero_phys(src64,bytes); 172 uint32_t bytes) 174 bzero(PHYSMAP_PTOV(src64), bytes); local 186 vm_size_t bytes) 189 if (((((uint32_t)src64 & (NBPG-1)) + bytes) > NBPG) || 190 ((((uint32_t)dst64 & (NBPG-1)) + bytes) > NBPG) ) { 193 bcopy(PHYSMAP_PTOV(src64), PHYSMAP_PTOV(dst64), bytes); local 203 vm_size_t bytes, 162 bzero_phys_nc( addr64_t src64, uint32_t bytes) argument 170 bzero_phys( addr64_t src64, uint32_t bytes) argument 183 bcopy_phys( addr64_t src64, addr64_t dst64, vm_size_t bytes) argument 201 apply_func_phys( addr64_t dst64, vm_size_t bytes, int (*func)(void * buffer, vm_size_t bytes, void * arg), void * arg) argument 221 ovbcopy( const char *from, char *to, vm_size_t bytes) argument [all...] |
/darwin-on-arm/xnu/bsd/net/ |
H A D | flowhash.c | 95 const u_int8_t *bytes = (u_int8_t *)(void *)(uintptr_t)(p + i); local 103 (((u_int32_t)bytes[0]) << 24) | 104 (((u_int32_t)bytes[1]) << 16) | 105 (((u_int32_t)bytes[2]) << 8) | 106 ((u_int32_t)bytes[3]); 109 (((u_int32_t)bytes[3]) << 24) | 110 (((u_int32_t)bytes[2]) << 16) | 111 (((u_int32_t)bytes[1]) << 8) | 112 ((u_int32_t)bytes[0]); 121 const u_int8_t *bytes local [all...] |
/darwin-on-arm/xnu/libkern/c++/ |
H A D | OSData.cpp | 94 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...] |
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IOBufferMemoryDescriptor.cpp | 169 iopa_alloc(vm_size_t bytes, uint32_t balign) argument 185 if (!bytes) bytes = 1; 186 count = (bytes + kIOPageAllocChunkBytes - 1) / kIOPageAllocChunkBytes; 196 gIOPageAllocBytes += bytes; 211 if (addr) gIOPageAllocBytes += bytes; 219 IOStatisticsAlloc(kIOStatisticsMallocAligned, bytes); 221 debug_iomalloc_size += bytes; 229 iopa_free(uintptr_t addr, vm_size_t bytes) argument 235 if (!bytes) byte 800 appendBytes(const void * bytes, vm_size_t withLength) argument 857 void * bytes = getBytesNoCopy(offset, 0); local [all...] |
/darwin-on-arm/xnu/osfmk/i386/ |
H A D | loose_ends.c | 93 extern void bcopy_no_overwrite(const char *from, char *to,vm_size_t bytes); 112 uint32_t bytes) 114 bzero_phys(src64,bytes); 120 uint32_t bytes) 128 bzero((void *)((uintptr_t)map->prv_CADDR | ((uint32_t)src64 & INTEL_OFFMASK)), bytes); 144 vm_size_t bytes) 149 if ( ((((uint32_t)src64 & (NBPG-1)) + bytes) > NBPG) || ((((uint32_t)dst64 & (NBPG-1)) + bytes) > NBPG) ) { 159 (void *) ((uintptr_t)dst_map->prv_CADDR | ((uint32_t)dst64 & INTEL_OFFMASK)), bytes); 174 vm_size_t bytes, 110 bzero_phys_nc( addr64_t src64, uint32_t bytes) argument 118 bzero_phys( addr64_t src64, uint32_t bytes) argument 141 bcopy_phys( addr64_t src64, addr64_t dst64, vm_size_t bytes) argument 172 apply_func_phys( addr64_t dst64, vm_size_t bytes, int (*func)(void * buffer, vm_size_t bytes, void * arg), void * arg) argument 205 ovbcopy( const char *from, char *to, vm_size_t bytes) argument [all...] |
H A D | phys.c | 235 __private_extern__ void ml_copy_phys(addr64_t src64, addr64_t dst64, vm_size_t bytes) { argument 283 if (((((uint32_t)src64 & (I386_PGBYTES-1)) + bytes) > I386_PGBYTES) || ((((uint32_t)dst64 & (I386_PGBYTES-1)) + bytes) > I386_PGBYTES) ) { 287 switch (bytes) { 302 bcopy(src, dst, bytes);
|
H A D | misc_protos.h | 111 extern int apply_func_phys(addr64_t src64, vm_size_t bytes, int (*func)(void * buffer, vm_size_t bytes, void * arg), void * arg);
|
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq.h | 102 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 D | classq_blue.c | 322 u_int32_t *packets, u_int32_t *bytes) 337 if (bytes != NULL) 338 *bytes = len; 321 blue_purgeq(struct blue *bp, class_queue_t *q, u_int32_t flow, u_int32_t *packets, u_int32_t *bytes) argument
|
/darwin-on-arm/xnu/iokit/IOKit/ |
H A D | IOBufferMemoryDescriptor.h | 131 * 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);
|
/darwin-on-arm/xnu/libkern/x86_64/ |
H A D | OSAtomic.s | 45 movzbq %al, %rax #; clear out the high bytes 67 movzbq %al, %rax #; clear out the high bytes
|
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | lmbench_bw_unix.c | 88 size_t xfer; /* bytes to read/write per "packet" */ 89 size_t bytes; /* bytes to read/write in one iteration */ member in struct:__anon1359 141 " [-s <total bytes>]\n" 188 state->bytes = opts; 249 size_t todo = state->bytes;
|
/darwin-on-arm/xnu/libsyscall/xcodescripts/ |
H A D | create-syscalls.pl | 61 # size in bytes of known types (only used for i386) 104 bytes => 0, 114 bytes => 0, 124 bytes => 0, 219 bytes => $argbytes, 323 print $f "#define __SYSCALL_32BIT_ARG_BYTES $$symbol{bytes}\n";
|
/darwin-on-arm/xnu/osfmk/kern/ |
H A D | kalloc.c | 112 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
|
/darwin-on-arm/xnu/libkern/i386/ |
H A D | OSAtomic.s | 44 movzbl %al, %eax #; clear out the high bytes 65 movzbl %al, %eax #; clear out the high bytes
|
/darwin-on-arm/xnu/bsd/hfs/hfscommon/headers/ |
H A D | BTreesPrivate.h | 470 #define MoveRecordsLeft(src,dst,bytes) bcopy((src),(dst),(bytes)) 476 #define MoveRecordsRight(src,dst,bytes) bcopy((src),(dst),(bytes))
|
/darwin-on-arm/xnu/osfmk/kdp/ |
H A D | kdp_internal.h | 165 * to trap into the debugger. Must be 4 bytes or less in the current 172 uint8_t *bytes,
|