Lines Matching defs:ptr
1208 void* ptr = writeInplace(len);
1209 if (!ptr) return NO_MEMORY;
1211 outBlob->init(-1, ptr, len, false);
1223 void* ptr = ::mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
1224 if (ptr == MAP_FAILED) {
1237 outBlob->init(fd, ptr, len, mutableCopy);
1243 ::munmap(ptr, len);
1778 binder_uintptr_t ptr;
1779 ret = readAligned(&ptr);
1781 *pArg = ptr;
2187 const void* ptr = readInplace(len);
2188 if (!ptr) return BAD_VALUE;
2190 outBlob->init(-1, const_cast<void*>(ptr), len, false);
2199 void* ptr = ::mmap(NULL, len, isMutable ? PROT_READ | PROT_WRITE : PROT_READ,
2201 if (ptr == MAP_FAILED) return NO_MEMORY;
2203 outBlob->init(fd, ptr, len, isMutable);