Lines Matching refs:iovec

182     audio_utils_iovec iovec[2];  in write()  local
183 ssize_t availToWrite = obtain(iovec, count, timeout); in write()
185 memcpy((char *) mFifo.mBuffer + iovec[0].mOffset * mFifo.mFrameSize, buffer, in write()
186 iovec[0].mLength * mFifo.mFrameSize); in write()
187 if (iovec[1].mLength > 0) { in write()
188 memcpy((char *) mFifo.mBuffer + iovec[1].mOffset * mFifo.mFrameSize, in write()
189 (char *) buffer + (iovec[0].mLength * mFifo.mFrameSize), in write()
190 iovec[1].mLength * mFifo.mFrameSize); in write()
198 ssize_t audio_utils_fifo_writer::obtain(audio_utils_iovec iovec[2], size_t count, in obtain()
293 if (iovec != NULL) { in obtain()
294 iovec[0].mOffset = rearOffset; in obtain()
295 iovec[0].mLength = part1; in obtain()
296 iovec[1].mOffset = 0; in obtain()
297 iovec[1].mLength = part2; in obtain()
439 audio_utils_iovec iovec[2]; in read() local
440 ssize_t availToRead = obtain(iovec, count, timeout, lost); in read()
442 memcpy(buffer, (char *) mFifo.mBuffer + iovec[0].mOffset * mFifo.mFrameSize, in read()
443 iovec[0].mLength * mFifo.mFrameSize); in read()
444 if (iovec[1].mLength > 0) { in read()
445 memcpy((char *) buffer + (iovec[0].mLength * mFifo.mFrameSize), in read()
446 (char *) mFifo.mBuffer + iovec[1].mOffset * mFifo.mFrameSize, in read()
447 iovec[1].mLength * mFifo.mFrameSize); in read()
454 ssize_t audio_utils_fifo_reader::obtain(audio_utils_iovec iovec[2], size_t count, in obtain()
458 return obtain(iovec, count, timeout, NULL /*lost*/); in obtain()
514 ssize_t audio_utils_fifo_reader::obtain(audio_utils_iovec iovec[2], size_t count, in obtain()
604 if (iovec != NULL) { in obtain()
605 iovec[0].mOffset = frontOffset; in obtain()
606 iovec[0].mLength = part1; in obtain()
607 iovec[1].mOffset = 0; in obtain()
608 iovec[1].mLength = part2; in obtain()
627 audio_utils_iovec iovec[2]; in flush() local
628 ssize_t ret = obtain(iovec, SIZE_MAX /*count*/, NULL /*timeout*/, lost); in flush()