Searched refs:newBuf (Results 1 – 1 of 1) sorted by relevance
758 struct _WsbmBufferObject *newBuf; in wsbmBOClone() local761 newBuf = malloc(sizeof(*newBuf)); in wsbmBOClone()762 if (!newBuf) in wsbmBOClone()765 *newBuf = *buf; in wsbmBOClone()766 newBuf->storage = wsbmStorageClone(buf); in wsbmBOClone()767 if (!newBuf->storage) in wsbmBOClone()770 wsbmAtomicSet(&newBuf->refCount, 1); in wsbmBOClone()771 if (!accelCopy || accelCopy(newBuf, buf) != 0) { in wsbmBOClone()775 struct _WsbmBufStorage *newStorage = newBuf->storage; in wsbmBOClone()790 pool->unmap(newBuf->storage); in wsbmBOClone()[all …]