Lines Matching refs:m_buf
75 m_buf(nullptr), in VirtioGpuStream()
104 free(m_buf); in ~VirtioGpuStream()
186 if (m_buf) { in allocBuffer()
192 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in allocBuffer()
203 free(m_buf); in allocBuffer()
204 m_buf = nullptr; in allocBuffer()
221 if (!m_buf) { in allocBuffer()
222 m_buf = static_cast<unsigned char *>(malloc(allocSize)); in allocBuffer()
224 unsigned char *p = static_cast<unsigned char *>(realloc(m_buf, allocSize)); in allocBuffer()
226 free(m_buf); in allocBuffer()
228 m_buf = p; in allocBuffer()
230 if (!m_buf) { in allocBuffer()
247 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in allocBuffer()
251 return m_buf + m_cmdPos; in allocBuffer()
274 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in writeFully()
296 memcpy(&m_buf[m_flushPos], buf, len); in writeFully()
379 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[pos]); in commitAll()