Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 1 of 1) sorted by relevance

/device/qemu/drivers/virtio/
Dvirtrng.c209 char *newbuf = buffer; in VirtrngRead() local
213 newbuf = OsalMemAlloc(bytes); in VirtrngRead()
214 if (newbuf == NULL) { in VirtrngRead()
223 len = VirtrngIO(newbuf, bytes); in VirtrngRead()
225 if (newbuf != buffer) { in VirtrngRead()
226 if ((len > 0) && (LOS_ArchCopyToUser(buffer, newbuf, len)) != 0) { in VirtrngRead()
231 (void)OsalMemFree(newbuf); in VirtrngRead()