Lines Matching refs:entrySize
60 IODataQueue *IODataQueue::withEntries(UInt32 numEntries, UInt32 entrySize)
65 if (!dataQueue->initWithEntries(numEntries, entrySize)) {
92 Boolean IODataQueue::initWithEntries(UInt32 numEntries, UInt32 entrySize)
94 return (initWithCapacity((numEntries + 1) * (DATA_QUEUE_ENTRY_HEADER_SIZE + entrySize)));
112 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
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 )
166 dataQueue->tail += entrySize;