Lines Matching refs:m_buf
37 m_buf(NULL), in QemuPipeStream()
47 m_buf(NULL), in QemuPipeStream()
59 if (m_buf != NULL) { in ~QemuPipeStream()
60 free(m_buf); in ~QemuPipeStream()
82 if (!m_buf) { in allocBuffer()
83 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
86 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
88 m_buf = p; in allocBuffer()
92 free(m_buf); in allocBuffer()
93 m_buf = NULL; in allocBuffer()
98 return m_buf + kWriteOffset; in allocBuffer()
104 return writeFully(m_buf + kWriteOffset, size); in commitBuffer()
142 memcpy(userReadBuf, m_buf + (m_read - m_readLeft), bufferedReadSize); in commitBufferAndReadFully()
152 writeFully(m_buf + kWriteOffset, writeSize); in commitBufferAndReadFully()
165 actual = qemu_pipe_read(m_sock, m_buf, maxRead); in commitBufferAndReadFully()
182 m_buf + (m_read - m_readLeft), in commitBufferAndReadFully()
189 actual = qemu_pipe_read(m_sock, m_buf, kReadSize); in commitBufferAndReadFully()