Lines Matching refs:cmd
194 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in allocBuffer() local
195 if (m_allocSize + minSize > cmd->cmdSize) { in allocBuffer()
199 if (m_cmdPos + cmd->cmdSize + minSize > m_bufSize) { in allocBuffer()
210 m_cmdPos += cmd->cmdSize; in allocBuffer()
249 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in allocBuffer() local
250 cmd->op = 0U; in allocBuffer()
251 cmd->cmdSize = sizeof(*cmd) + sizeof(__u32); in allocBuffer()
276 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[m_cmdPos]); in writeFully() local
278 if (m_flushPos < sizeof(*cmd)) { in writeFully()
285 if (m_flushPos + len > cmd->cmdSize) { in writeFully()
288 __func__, len, m_cmdPos, m_flushPos, cmd->cmdSize); in writeFully()
381 VirtioGpuCmd *cmd = reinterpret_cast<VirtioGpuCmd *>(&m_buf[pos]); in commitAll() local
384 if (pos + cmd->cmdSize > m_bufSize) { in commitAll()
386 "error, exiting.", __func__, pos, cmd->cmdSize, m_bufSize); in commitAll()
391 if (cmd->op == 0) { in commitAll()
392 *(uint32_t *)cmd->buf = m_cmdResp_rh; in commitAll()
397 .size = cmd->cmdSize, in commitAll()
398 .command = reinterpret_cast<__u64>(cmd), in commitAll()
409 pos += cmd->cmdSize; in commitAll()