Lines Matching refs:toXfer
356 size_t toXfer = todo > kTransferBufferSize ? kTransferBufferSize : todo; in transferToHost() local
358 if (toXfer > (kTransferBufferSize - m_writtenPos)) { in transferToHost()
362 memcpy(virtioPtr + m_writtenPos, readPtr, toXfer); in transferToHost()
368 xfer.box.w = toXfer; in transferToHost()
379 done += toXfer; in transferToHost()
380 readPtr += toXfer; in transferToHost()
381 todo -= toXfer; in transferToHost()
382 m_writtenPos += toXfer; in transferToHost()
402 size_t toXfer = todo > kTransferBufferSize ? kTransferBufferSize : todo; in transferFromHost() local
408 xfer.box.w = toXfer; in transferFromHost()
421 memcpy(readPtr, virtioPtr, toXfer); in transferFromHost()
423 done += toXfer; in transferFromHost()
424 readPtr += toXfer; in transferFromHost()
425 todo -= toXfer; in transferFromHost()