Searched refs:entrySize (Results 1 - 4 of 4) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/ |
H A D | IODataQueue.cpp | 60 IODataQueue *IODataQueue::withEntries(UInt32 numEntries, UInt32 entrySize) argument 65 if (!dataQueue->initWithEntries(numEntries, entrySize)) { 92 Boolean IODataQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize) argument 94 return (initWithCapacity((numEntries + 1) * (DATA_QUEUE_ENTRY_HEADER_SIZE + entrySize))); 112 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local 118 if ( (tail + entrySize) <= dataQueue->queueSize ) 129 dataQueue->tail += entrySize; 131 else if ( head > entrySize ) // Is there enough room at the beginning? 148 dataQueue->tail = entrySize; 160 if ( (head - tail) > entrySize ) [all...] |
H A D | IOSharedDataQueue.cpp | 56 IOSharedDataQueue *IOSharedDataQueue::withEntries(UInt32 numEntries, UInt32 entrySize) argument 61 if (!dataQueue->initWithEntries(numEntries, entrySize)) { 151 UInt32 entrySize = 0; local 170 entrySize = entry->size; 171 newHeadOffset = entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE; 175 entrySize = entry->size; 176 newHeadOffset = headOffset + entrySize + DATA_QUEUE_ENTRY_HEADER_SIZE; 183 if (entrySize <= *dataSize) { 184 memcpy(data, &(entry->data), entrySize); 197 *dataSize = entrySize; [all...] |
/macosx-10.5.8/xnu-1228.15.4/iokit/IOKit/ |
H A D | IODataQueue.h | 88 * @discussion This method will create a new IODataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. If the initWithEntries() fails, the new instance is released and zero is returned. 90 * @param entrySize Size of each entry. 93 static IODataQueue *withEntries(UInt32 numEntries, UInt32 entrySize); 107 * @discussion This method will initialize an IODataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. 109 * @param entrySize Size of each entry. 112 virtual Boolean initWithEntries(UInt32 numEntries, UInt32 entrySize); [all...] |
H A D | IOSharedDataQueue.h | 77 * @discussion This method will create a new IOSharedDataQueue instance with enough capacity for numEntries of entrySize. It does account for the IODataQueueEntry overhead for each entry. Note that the numEntries and entrySize are simply used to determine the data region size. They do not actually restrict the size of number of entries that can be added to the queue.<br> This method allocates a new IODataQueue instance and then calls initWithEntries() with the given numEntries and entrySize parameters. If the initWithEntries() fails, the new instance is released and zero is returned. 79 * @param entrySize Size of each entry. 82 static IOSharedDataQueue *withEntries(UInt32 numEntries, UInt32 entrySize);
|
Completed in 55 milliseconds