Lines Matching refs:m_buf
33 m_buf(NULL), in QemuPipeStream()
43 m_buf(NULL), in QemuPipeStream()
55 if (m_buf != NULL) { in ~QemuPipeStream()
56 free(m_buf); in ~QemuPipeStream()
78 if (!m_buf) { in allocBuffer()
79 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer()
82 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer()
84 m_buf = p; in allocBuffer()
88 free(m_buf); in allocBuffer()
89 m_buf = NULL; in allocBuffer()
94 return m_buf + kWriteOffset; in allocBuffer()
100 return writeFully(m_buf + kWriteOffset, size); in commitBuffer()
138 memcpy(userReadBuf, m_buf + (m_read - m_readLeft), bufferedReadSize); in commitBufferAndReadFully()
148 writeFully(m_buf + kWriteOffset, writeSize); in commitBufferAndReadFully()
161 actual = qemu_pipe_read(m_sock, m_buf, maxRead); in commitBufferAndReadFully()
178 m_buf + (m_read - m_readLeft), in commitBufferAndReadFully()
185 actual = qemu_pipe_read(m_sock, m_buf, kReadSize); in commitBufferAndReadFully()