Home
last modified time | relevance | path

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

/device/google/contexthub/sensorhal/
Ddirectchannel.cpp56 mBase = ::mmap(NULL, mem->size, PROT_WRITE, MAP_SHARED, mAshmemFd, 0); in AshmemDirectChannel()
57 if (mBase == nullptr) { in AshmemDirectChannel()
62 mBuffer = std::unique_ptr<LockfreeBuffer>(new LockfreeBuffer(mBase, mSize)); in AshmemDirectChannel()
69 if (mBase) { in ~AshmemDirectChannel()
71 ::munmap(mBase, mSize); in ~AshmemDirectChannel()
72 mBase = nullptr; in ~AshmemDirectChannel()
291 GRALLOC_USAGE_SW_WRITE_OFTEN, 0, 0, mem->size, 1, &mBase); in GrallocDirectChannel()
297 if (mBase == nullptr) { in GrallocDirectChannel()
304 mBuffer = std::make_unique<LockfreeBuffer>(mBase, mSize); in GrallocDirectChannel()
315 if (mBase) { in ~GrallocDirectChannel()
[all …]
Ddirectchannel.h32 DirectChannelBase() : mError(NO_INIT), mSize(0), mBase(nullptr) { } in DirectChannelBase()
45 void* mBase; variable