Lines Matching refs:cb
83 for (cb_handle_30_t* cb : cbs) { in allocate()
84 freeCb(std::unique_ptr<cb_handle_30_t>(cb)); in allocate()
260 cb_handle_30_t* cb; in allocateImpl2() local
267 &cb); in allocateImpl2()
269 cbs->push_back(cb); in allocateImpl2()
320 cb_handle_30_t** cb) { in allocateCb() argument
389 *cb = handle.release(); in allocateCb()
412 void freeCb(std::unique_ptr<cb_handle_30_t> cb) { in freeCb() argument
413 if (cb->hostHandleRefcountFdIndex >= 0) { in freeCb()
414 ::close(cb->fds[cb->hostHandleRefcountFdIndex]); in freeCb()
417 if (cb->bufferFdIndex >= 0) { in freeCb()
418 GoldfishAddressSpaceBlock::memoryUnmap(cb->getBufferPtr(), cb->mmapedSize); in freeCb()
419 GoldfishAddressSpaceHostMemoryAllocator::closeHandle(cb->fds[cb->bufferFdIndex]); in freeCb()