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

12

/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dadsp_Status.c62 * # 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 Dadsp_Control.c76 * # 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...]
/macosx-10.5.8/xnu-1228.15.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_size_t bytes; local
130 bytes = stob(size);
131 if (bytes <= SMALL_SIZE) {
135 } else if (bytes <= LARGE_SIZE) {
136 bytes
150 vm_size_t bytes; local
173 vm_size_t bytes; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/i386/
H A Dparam.h85 #define NBPG 4096 /* bytes/page */
119 /* Core clicks (NeXT_page_size bytes) to segments and vice versa */
123 /* Core clicks (4096 bytes) to disk blocks */
128 /* clicks to bytes */
131 /* bytes to clicks */
135 #define btodb(bytes, devBlockSize) \
136 ((unsigned)(bytes) / devBlockSize)
140 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
141 ((unsigned)(bytes) >> DEV_BSHIF
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/libkern/c++/
H A DOSData.h40 @abstract A container class to manage an array of bytes.
62 @param inCapacity The initial capacity of the OSData object in bytes.
69 @param bytes A buffer of data.
73 static OSData *withBytes(const void *bytes, unsigned int inLength);
77 @param bytes A reference to a block of data.
81 static OSData *withBytesNoCopy(void *bytes, unsigned int inLength);
94 @param inLength The number of bytes to be copied starting at index 'start'.
110 @param bytes A reference to a block of data
114 virtual bool initWithBytes(const void *bytes, unsigned int inLength);
118 @param bytes
[all...]
/macosx-10.5.8/xnu-1228.15.4/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
236 appendBytes(const void *bytes, unsigned int inLength) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/ppc/
H A Dparam.h43 #define NBPG 4096 /* bytes/page */
47 #define NBSEG 0x40000000 /* bytes/segment (quadrant) */
85 /* pages ("clicks") (NBPG bytes) to disk blocks */
90 /* pages to bytes */
93 /* bytes to pages */
96 #define btodb(bytes, devBlockSize) \
97 ((unsigned)(bytes) / devBlockSize)
101 #define btodb(bytes) /* calculates (bytes / DEV_BSIZE) */ \
102 ((unsigned)(bytes) >> DEV_BSHIF
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/ppc/
H A Dstrlen.s40 ; if ( y & z ) = 0 then all bytes in dataWord are non-zero
43 ; with one exception: 0x01 bytes preceeding the first zero are also
68 lwzu r8,4(r3) ; get the first 4 bytes and increment address
72 beq LLoop ; if r4 is zero, then all bytes are non-zero
74 ; Now we know one of the bytes in r8 is zero,
76 ; We have mapped 0 bytes to 0x80, and nonzero bytes to 0x00,
78 ; 0x01 bytes preceeding the first zero are also mapped to 0x80.
80 ; counting leading zeroes to get the bytes in last word.
87 add r3,r3,r7 ; add in nonzero bytes i
[all...]
H A Dmemcmp.s34 ; Memcmp returns the difference between the first two different bytes,
54 lwz r8,0(r6) ; first 4 bytes of LHS
64 ; differing bytes.
65 ; r8 = LHS bytes
66 ; r7 = RHS bytes
82 lwz r8,0(r6) ; next 4 bytes from LHS
86 xor. r3,r8,r7 ; compare next 4 bytes
88 bne Ldifferent ; these 4 bytes not equal
92 ; compare short strings (0-5 bytes long)
H A Dbcmp.s36 ; bytes.
53 lwz r8,0(r6) ; first 4 bytes of LHS
67 lwz r8,0(r6) ; next 4 bytes from LHS
71 sub. r3,r8,r7 ; compare next 4 bytes
77 ; compare short strings (0-5 bytes long)
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOMultiMemoryDescriptor.cpp174 /* bytes */ withCount * sizeof(IOMemoryDescriptor *) );
370 void * bytes,
375 // the specified buffer. Returns the number of bytes copied.
390 IOByteCount copied = _descriptors[index]->readBytes(offset,bytes,copy);
395 bytes = ((UInt8 *) bytes) + copied;
406 const void * bytes,
411 // the specified buffer. Returns the number of bytes copied.
426 IOByteCount copied = _descriptors[index]->writeBytes(offset,bytes,copy);
431 bytes
369 readBytes( IOByteCount offset, void * bytes, IOByteCount withLength ) argument
405 writeBytes( IOByteCount offset, const void * bytes, IOByteCount withLength ) argument
[all...]
H A DIOBufferMemoryDescriptor.cpp419 * hold capacity bytes. The descriptor's length is initially set to the capacity.
435 * Initialize a new IOBufferMemoryDescriptor preloaded with bytes (copied).
461 * Returns a new IOBufferMemoryDescriptor preloaded with bytes (copied).
586 IOBufferMemoryDescriptor::appendBytes(const void * bytes, vm_size_t withLength) argument
598 bcopy(/* from */ bytes, (void *)(_ranges.v64->address + offset),
601 writeBytes(offset, bytes, actualBytesToCopy);
642 void * bytes = getBytesNoCopy(offset, 0); local
644 if (bytes && lengthOfSegment)
647 return bytes;
H A DIODMACommand.cpp499 IOByteCount bytes; local
502 bytes = poMD->writeBytes(state->fPreparedOffset,
506 bytes = poMD->readBytes(state->fPreparedOffset,
509 DEBG("fCopyMD %s %lx bytes\n", (kWalkSyncIn & op) ? "wrote" : "read", bytes);
510 ret = (bytes == state->fPreparedLength) ? kIOReturnSuccess : kIOReturnUnderrun;
815 IODMACommand::readBytes(UInt64 offset, void *bytes, UInt64 length) argument
817 return (transfer(kIODMACommandTransferOpReadBytes, offset, bytes, length));
821 IODMACommand::writeBytes(UInt64 offset, const void *bytes, UInt64 length) argument
823 return (transfer(kIODMACommandTransferOpWriteBytes, offset, const_cast<void *>(bytes), lengt
[all...]
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIOMultiMemoryDescriptor.h152 @param bytes The caller supplied buffer to copy the data to.
154 @result The number of bytes copied, zero will be returned if the specified offset is beyond the length of the descriptor. */
157 void * bytes,
164 @param bytes The caller supplied buffer to copy the data from.
166 @result The number of bytes copied, zero will be returned if the specified offset is beyond the length of the descriptor. */
169 const void * bytes,
H A DIOBufferMemoryDescriptor.h150 * hold capacity bytes. The descriptor's length is initially set to the
171 @param capacity The number of bytes to allocate.
172 @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.
189 @param capacity The number of bytes to allocate.
203 * hold capacity bytes. The descriptor's length is initially set to the
213 * Initialize a new IOBufferMemoryDescriptor preloaded with bytes (copied).
216 virtual bool initWithBytes(const void * bytes,
224 * Returns a new IOBufferMemoryDescriptor preloaded with bytes (copied).
228 const void * bytes,
282 virtual bool appendBytes(const void *bytes, vm_size_
[all...]
H A DIODMACommand.h188 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
211 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
246 @param alignment Alignment restriction, in bytes, on I/O bus addresses. Defaults to single byte alignment.
333 @param bytes The caller supplied buffer to copy the data from.
335 @result The number of bytes copied, zero will be returned if the specified offset is beyond the prepared length of the IODMACommand. */
337 UInt64 writeBytes(UInt64 offset, const void *bytes, UInt64 length);
343 @param bytes The caller supplied buffer to copy the data to.
345 @result The number of bytes copied, zero will be returned if the specified offset is beyond the prepared length of the IODMACommand. */
347 UInt64 readBytes(UInt64 offset, void *bytes, UInt64 length);
403 @param alignment Alignment restriction, in bytes, o
[all...]
H A DIOMemoryDescriptor.h480 @param bytes The caller supplied buffer to copy the data to.
482 @result The number of bytes copied, zero will be returned if the specified offset is beyond the length of the descriptor. */
485 void * bytes, IOByteCount withLength);
491 @param bytes The caller supplied buffer to copy the data from.
493 @result The number of bytes copied, zero will be returned if the specified offset is beyond the length of the descriptor. */
496 const void * bytes, IOByteCount withLength);
956 void * bytes, IOByteCount withLength);
959 const void * bytes, IOByteCount withLength);
H A DIONVRAM.h118 virtual OSData *unescapeBytesToData(const UInt8 *bytes, UInt32 length);
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Dloose_ends.c92 extern void bcopy_no_overwrite(const char *from, char *to,vm_size_t bytes);
109 vm_size_t bytes)
111 bzero_phys(src64,bytes);
117 vm_size_t bytes)
125 bzero((void *)((uintptr_t)map->prv_CADDR | ((uint32_t)src64 & INTEL_OFFMASK)), bytes);
141 vm_size_t bytes)
146 if ( ((((uint32_t)src64 & (NBPG-1)) + bytes) > NBPG) || ((((uint32_t)dst64 & (NBPG-1)) + bytes) > NBPG) ) {
156 (void *) ((uintptr_t)dst_map->prv_CADDR | ((uint32_t)dst64 & INTEL_OFFMASK)), bytes);
173 vm_size_t bytes) /* nu
107 bzero_phys_nc( addr64_t src64, vm_size_t bytes) argument
115 bzero_phys( addr64_t src64, vm_size_t bytes) argument
138 bcopy_phys( addr64_t src64, addr64_t dst64, vm_size_t bytes) argument
170 ovbcopy( const char *from, char *to, vm_size_t bytes) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dxsumas.s69 subfic r0,r2,4 ; get #bytes in partial word
81 sub r4,r4,r0 ; adjust length for bytes in partial word
83 srw r7,r7,r8 ; get mask for bytes to keep in partial word
133 ; Handle leftover bytes.
175 ; All data bytes checksummed. Wrap up.
193 ; The checksum began on an odd address, so swap bytes.
218 cmpwi cr6,r4,2 ; at least two bytes?
222 blt cr6,Lshort2 ; fewer than two bytes, so skip
224 cmpwi cr6,r4,4 ; two more bytes (after we decrement)?
229 bge cr6,Lshort1 ; loop for 2 more bytes
[all...]
/macosx-10.5.8/xnu-1228.15.4/libkern/i386/
H A DOSAtomic.s42 movzbl %al, %eax #; clear out the high bytes
63 movzbl %al, %eax #; clear out the high bytes
/macosx-10.5.8/xnu-1228.15.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))
/macosx-10.5.8/xnu-1228.15.4/libsa/
H A Dload.c228 Boolean _IOReadBytesFromFile(CFAllocatorRef alloc, const char *path, void **bytes,
230 Boolean _IOWriteBytesToFile(const char *path, const void *bytes, CFIndex length);
383 void * bytes; local
389 if (_IOReadBytesFromFile(alloc, "prelinkstate", &bytes, &length, 0))
392 CFDataAppendBytes(G_prelink_data, (UInt8 *) bytes, length);
393 CFAllocatorDeallocate(alloc, bytes);
396 if (_IOReadBytesFromFile(alloc, "prelinkdependencies", &bytes, &length, 0))
398 CFDataAppendBytes(G_prelink_dependencies, (UInt8 *) bytes, length);
399 CFAllocatorDeallocate(alloc, bytes);
448 const void * bytes; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/profiling/i386/
H A Dprofile-md.c275 printf("Allocated %d bytes for profiling, address 0x%x\n", (int)size, (int)addr);
285 printf("Freed %d bytes for profiling, address 0x%x\n", (int)size, (int)addr);
391 _profile_printf("C thinks struct %s is %ld bytes, asm thinks it is %ld bytes\n",
645 size_t bytes = 0;
678 bytes += sizeof (arc);
693 return bytes;
707 size_t bytes = 0;
730 bytes += sizeof (struct prof_ext);
761 bytes
638 size_t bytes = 0; local
699 size_t bytes = 0; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/libsyscall/
H A Dcreate-syscalls.pl71 # size in bytes of known types (only used for i386)
109 my($name, $args, $bytes) = @_;
122 print $f "#define __SYSCALL_32BIT_ARG_BYTES $bytes\n\n";

Completed in 295 milliseconds

12