• Home
  • Raw
  • Download

Lines Matching refs:wrappingBuffer

74 void FifoBuffer::fillWrappingBuffer(WrappingBuffer *wrappingBuffer,  in fillWrappingBuffer()  argument
77 wrappingBuffer->data[1] = nullptr; in fillWrappingBuffer()
78 wrappingBuffer->numFrames[1] = 0; in fillWrappingBuffer()
84 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
86 wrappingBuffer->numFrames[0] = firstFrames; in fillWrappingBuffer()
87 wrappingBuffer->data[1] = &mStorage[0]; in fillWrappingBuffer()
88 wrappingBuffer->numFrames[1] = framesAvailable - firstFrames; in fillWrappingBuffer()
90 wrappingBuffer->data[0] = source; in fillWrappingBuffer()
91 wrappingBuffer->numFrames[0] = framesAvailable; in fillWrappingBuffer()
94 wrappingBuffer->data[0] = nullptr; in fillWrappingBuffer()
95 wrappingBuffer->numFrames[0] = 0; in fillWrappingBuffer()
99 fifo_frames_t FifoBuffer::getFullDataAvailable(WrappingBuffer *wrappingBuffer) { in getFullDataAvailable() argument
104 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getFullDataAvailable()
108 fifo_frames_t FifoBuffer::getEmptyRoomAvailable(WrappingBuffer *wrappingBuffer) { in getEmptyRoomAvailable() argument
113 fillWrappingBuffer(wrappingBuffer, framesAvailable, startIndex); in getEmptyRoomAvailable()
118 WrappingBuffer wrappingBuffer; in read() local
122 getFullDataAvailable(&wrappingBuffer); in read()
128 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in read()
134 memcpy(destination, wrappingBuffer.data[partIndex], numBytes); in read()
149 WrappingBuffer wrappingBuffer; in write() local
153 getEmptyRoomAvailable(&wrappingBuffer); in write()
159 fifo_frames_t framesAvailable = wrappingBuffer.numFrames[partIndex]; in write()
165 memcpy(wrappingBuffer.data[partIndex], source, numBytes); in write()