Searched refs:dataSize (Results 1 - 20 of 20) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIODataQueue.cpp108 Boolean IODataQueue::enqueue(void * data, UInt32 dataSize) argument
112 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
122 entry->size = dataSize;
123 memcpy(&entry->data, data, dataSize);
136 dataQueue->queue->size = dataSize;
144 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
147 memcpy(&dataQueue->queue->data, data, dataSize);
164 entry->size = dataSize;
165 memcpy(&entry->data, data, dataSize);
H A DIOSharedDataQueue.cpp147 Boolean IOSharedDataQueue::dequeue(void *data, UInt32 *dataSize) argument
182 if (dataSize) {
183 if (entrySize <= *dataSize) {
196 if (dataSize) {
197 *dataSize = entrySize;
H A DIOMemoryDescriptor.cpp848 unsigned int dataSize = computeDataSize(/* pages */ 0, /* upls */ 1); local
851 _memoryEntries = OSData::withCapacity(dataSize);
855 else if (!_memoryEntries->initWithCapacity(dataSize))
967 unsigned dataSize = computeDataSize(_pages, /* upls */ count * 2); local
970 _memoryEntries = OSData::withCapacity(dataSize);
974 else if (!_memoryEntries->initWithCapacity(dataSize))
1187 IOReturn IOGeneralMemoryDescriptor::dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) const
1191 if (dataSize < sizeof(IOMDDMACharacteristics))
1232 if (dataSize < sizeof(*isP))
1591 IOMemoryDescriptor::dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) cons
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/Misc/
H A DBTreeWrapper.c39 OSErr SearchBTreeRecord(__unused FileReference refNum, __unused const void* key, __unused u_int32_t hint, __unused void* foundKey, __unused void* data, __unused u_int16_t *dataSize, __unused u_int32_t *newHint) argument
75 result = BTSearchRecord( fcb, &searchIterator, &btRecord, dataSize, &searchIterator );
86 if ( DEBUG_BUILD && !ValidHFSRecord(data, btcb, *dataSize) )
97 OSErr ReplaceBTreeRecord(FileReference refNum, const void* key, u_int32_t hint, void *newData, u_int16_t dataSize, u_int32_t *newHint) argument
110 btRecord.itemSize = dataSize;
120 if ( DEBUG_BUILD && !ValidHFSRecord(newData, btcb, dataSize) )
123 result = BTReplaceRecord( fcb, &iterator, &btRecord, dataSize );
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/headers/
H A DBTreeScanner.h113 u_int32_t * dataSize );
H A DBTreesInternal.h353 extern OSStatus BTGetUserData(FCB *filePtr, void * dataPtr, int dataSize);
355 extern OSStatus BTSetUserData(FCB *filePtr, void * dataPtr, int dataSize);
H A DFileMgrInternal.h220 u_int16_t * dataSize,
228 u_int16_t dataSize,
H A DBTreesPrivate.h449 u_int16_t *dataSize );
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/
H A DIODataQueue.h117 * @discussion This method adds a new data entry of dataSize to the queue. It sets the size parameter of the entry pointed to by the tail value and copies the memory pointed to by the data parameter in place in the queue. Once that is done, it moves the tail to the next available location. When attempting to add a new entry towards the end of the queue and there isn't enough space at the end, it wraps back to the beginning.<br> If the queue is empty when a new entry is added, sendDataAvailableNotification() is called to send a message to the user process that data is now available.
119 * @param dataSize Size of the data pointed to by data.
122 virtual Boolean enqueue(void *data, UInt32 dataSize);
H A DIOSharedDataQueue.h112 * @discussion This function will dequeue the next available entry on the queue. If a data pointer is provided, it will copy the data into the memory region if there is enough space available as specified in the dataSize parameter. If no data pointer is provided, it will simply move the head value past the current entry.
114 * @param dataSize A pointer to the size of the data parameter. On return, this contains the size of the actual entry data - even if the original size was not large enough.
117 virtual Boolean dequeue(void *data, UInt32 *dataSize);
H A DIOMemoryDescriptor.h202 virtual IOReturn dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) const;
785 virtual IOReturn dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) const;
927 virtual IOReturn dmaCommandOperation(DMACommandOps op, void *vData, UInt dataSize) const;
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/hfscommon/BTree/
H A DBTreeScanner.c52 // dataSize Size of data in found record
69 u_int32_t * dataSize )
96 if (dataSize != NULL)
97 *dataSize = dataSizeShort;
H A DBTree.c2027 BTGetUserData(FCB *filePtr, void * dataPtr, int dataSize) argument
2034 if (dataSize > kBTreeHeaderUserBytes)
2050 bcopy(offset, dataPtr, dataSize);
2065 BTSetUserData(FCB *filePtr, void * dataPtr, int dataSize) argument
2072 if (dataSize > kBTreeHeaderUserBytes)
2090 bcopy(dataPtr, offset, dataSize);
H A DBTreeNodeOps.c771 dataSize - size of the data portion of the record
781 u_int16_t *dataSize )
805 //// find dataSize
807 *dataSize = nextOffset - offset;
H A DBTreeTreeOps.c212 u_int16_t dataSize; local
298 err = GetRecordByIndex (btreePtr, nodeRec.buffer, index, &keyPtr, &dataPtr, &dataSize);
/macosx-10.5.8/xnu-1228.15.4/osfmk/console/panic_ui/
H A Dqtif2kraw.c79 long dataSize; /* if known, the size of data for this image descriptor */ member in struct:QTHeader
212 if ( !(data = (char *)malloc(image_header.dataSize))) {
213 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image_header.dataSize);
219 if ( ! fread((void *) data, image_header.dataSize, 1, stream) ) goto errQTimage;
222 pixels = image_header.dataSize;
225 pixels = convert8toGrey( data, image_header.dataSize );
229 image_header.dataSize = pixels;
H A Dgenimage.c169 long dataSize; /* if known, the size of data for this image descriptor */ member in struct:QTHeader
348 if ( !(data = (char *)malloc(image_header.dataSize))) {
349 fprintf(stderr,"Err: Couldn't malloc file data (%ld bytes)... bailing.\n", image_header.dataSize);
355 fread((void *) data, image_header.dataSize, 1, stream);
364 pixels = image_header.dataSize;
369 pixels = convert24toGrey( data, image_header.dataSize);
375 image_header.dataSize = pixels;
381 pixels = convert8toGrey( data, image_header.dataSize );
387 image_header.dataSize = pixels;
393 image_header.dataSize
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/isofs/cd9660/
H A Diso.h421 u_int32_t dataSize; // number of sectors * 2352, little endian member in struct:riff_header
H A Dcd9660_vnops.c898 header->dataSize = OSSwapHostToLittleInt32(sectors * CDXA_SECTOR_SIZE);
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_hotfiles.c513 u_int32_t dataSize; local
612 error = BTScanNextRecord(&scanstate, 0, (void **)&keyp, (void **)&datap, &dataSize);
621 (dataSize != sizeof(HFSPlusCatalogFile))) {

Completed in 109 milliseconds