Lines Matching refs:wrappingBuffer

84 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer,  in fillWrappingBuffer()  argument
87 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()
88 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()
93 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
95 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer()
96 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
97 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()
99 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
100 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
103 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()
104 wrappingBuffer->numFrames[0] = 0; in fillWrappingBuffer()
108 fifo_frames_t FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable() argument
112 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
116 fifo_frames_t FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable() argument
120 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
125 WrappingBuffer wrappingBuffer; in read() local
129 getFullDataAvailable(&wrappingBuffer); in read()
135 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in read()
141 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in read()
156 WrappingBuffer wrappingBuffer; in write() local
160 getEmptyRoomAvailable(&wrappingBuffer); in write()
166 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in write()
172 memcpy(wrappingBuffer.data[partIndex], source, numBytes); in write()