Searched refs:entrySize (Results 1 - 4 of 4) sorted by relevance
/darwin-on-arm/xnu/iokit/Kernel/ |
H A D | IODataQueue.cpp | 60 IODataQueue *IODataQueue::withEntries(UInt32 numEntries, UInt32 entrySize) argument 65 if (!dataQueue->initWithEntries(numEntries, entrySize)) { 100 Boolean IODataQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize) argument 102 return (initWithCapacity((numEntries + 1) * (DATA_QUEUE_ENTRY_HEADER_SIZE + entrySize))); 120 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE; local 126 if ( (tail + entrySize) <= dataQueue->queueSize ) 137 dataQueue->tail += entrySize; 139 else if ( head > entrySize ) // Is there enough room at the beginning? 156 dataQueue->tail = entrySize; 168 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...] |
/darwin-on-arm/xnu/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 33 milliseconds