/hardware/qcom/display/msm8084/liboverlay/ |
D | overlayMdpRot.cpp | 144 OvMem mem; in open_i() local 146 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 148 if(!mem.open(numbufs, bufsz, mRotImgInfo.secure)){ in open_i() 150 mem.close(); in open_i() 154 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 155 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 157 mRotDataInfo.dst.memory_id = mem.getFD(); in open_i() 159 mMem.mem = mem; in open_i() 233 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 247 mMem.mem.dump(); in dump()
|
D | overlayMdssRot.cpp | 147 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 160 OvMem mem; in open_i() local 161 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 164 if(!mem.open(numbufs, bufsz, isSecure)){ in open_i() 166 mem.close(); in open_i() 170 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 171 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 173 mRotData.dst_data.memory_id = mem.getFD(); in open_i() 175 mMem.mem = mem; in open_i() 242 mMem.mem.dump(); in dump()
|
D | overlayRotator.h | 54 bool valid() { return mem.valid(); } in valid() 55 uint32_t size() const { return mem.bufSz(); } in size() 63 OvMem mem; member
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlayMdpRot.cpp | 163 OvMem mem; in open_i() local 165 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 167 if(!mem.open(numbufs, bufsz, mRotImgInfo.secure)){ in open_i() 169 mem.close(); in open_i() 173 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 174 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 176 mRotDataInfo.dst.memory_id = mem.getFD(); in open_i() 178 mMem.mem = mem; in open_i() 252 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 266 mMem.mem.dump(); in dump()
|
D | overlayMdssRot.cpp | 171 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 184 OvMem mem; in open_i() local 185 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 188 if(!mem.open(numbufs, bufsz, isSecure)){ in open_i() 190 mem.close(); in open_i() 194 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 195 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 197 mRotData.dst_data.memory_id = mem.getFD(); in open_i() 199 mMem.mem = mem; in open_i() 266 mMem.mem.dump(); in dump()
|
D | overlayRotator.h | 54 bool valid() { return mem.valid(); } in valid() 55 uint32_t size() const { return mem.bufSz(); } in size() 63 OvMem mem; member
|
/hardware/interfaces/tests/memory/1.0/default/ |
D | MemoryTest.cpp | 38 Return<void> Memory::haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) { in haveSomeMemory() argument 39 _hidl_cb(mem); in haveSomeMemory() 69 Return<void> Memory::set(const hidl_memory& mem) { in set() argument 70 sp<HidlMemory> hidlMem = HidlMemory::getInstance(mem); in set()
|
D | MemoryTest.h | 46 Return<void> haveSomeMemory(const hidl_memory& mem, haveSomeMemory_cb _hidl_cb) override; 52 Return<void> set(const ::android::hardware::hidl_memory& mem) override;
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlayMdpRot.cpp | 171 OvMem mem; in open_i() local 173 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 175 if(!mem.open(numbufs, bufsz, mRotImgInfo.secure)){ in open_i() 177 mem.close(); in open_i() 181 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 182 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 184 mRotDataInfo.dst.memory_id = mem.getFD(); in open_i() 186 mMem.mem = mem; in open_i() 272 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 280 mMem.mem.dump(); in dump()
|
D | overlayMdssRot.cpp | 212 (mMem.mCurrIndex + 1) % mMem.mem.numBufs(); in queueBuffer() 219 OvMem mem; in open_i() local 220 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 223 if(!mem.open(numbufs, bufsz, isSecure)){ in open_i() 225 mem.close(); in open_i() 229 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 230 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 232 mRotData.dst_data.memory_id = mem.getFD(); in open_i() 234 mMem.mem = mem; in open_i() 303 mMem.mem.dump(); in dump()
|
D | overlayRotator.h | 53 bool valid() { return mem.valid(); } in valid() 54 uint32_t size() const { return mem.bufSz(); } in size() 63 OvMem mem; member
|
D | overlayRotator.cpp | 104 if(mem.close() == false) { in close() 145 uint32_t numRotBufs = mem.numBufs(); in setPrevBufReleaseFd()
|
/hardware/interfaces/camera/device/1.0/default/ |
D | CameraDevice.cpp | 322 [&](bool success, const hidl_memory& mem) { in CameraHeapMemory() argument 328 mHidlHandle = native_handle_clone(mem.handle()); in CameraHeapMemory() 373 CameraHeapMemory* mem; in sGetMemory() local 375 mem = new CameraHeapMemory(object->mAshmemAllocator, buf_size, num_bufs); in sGetMemory() 377 mem = new CameraHeapMemory(fd, buf_size, num_bufs); in sGetMemory() 379 mem->incStrong(mem); in sGetMemory() 380 hidl_handle hidlHandle = mem->mHidlHandle; in sGetMemory() 382 mem->handle.mId = id; in sGetMemory() 389 object->mMemoryMap[id] = mem; in sGetMemory() 391 mem->handle.mDevice = object; in sGetMemory() [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlayMdssRot.cpp | 165 OvMem mem; in open_i() local 166 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 169 if(!mem.open(numbufs, bufsz, isSecure)){ in open_i() 171 mem.close(); in open_i() 175 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 176 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 178 mRotData.dst_data.memory_id = mem.getFD(); in open_i() 180 mMem.curr().m = mem; in open_i()
|
D | overlayMdpRot.cpp | 159 OvMem mem; in open_i() local 161 OVASSERT(MAP_FAILED == mem.addr(), "MAP failed in open_i"); in open_i() 163 if(!mem.open(numbufs, bufsz, mRotImgInfo.secure)){ in open_i() 165 mem.close(); in open_i() 169 OVASSERT(MAP_FAILED != mem.addr(), "MAP failed"); in open_i() 170 OVASSERT(mem.getFD() != -1, "getFd is -1"); in open_i() 172 mRotDataInfo.dst.memory_id = mem.getFD(); in open_i() 174 mMem.curr().m = mem; in open_i()
|
/hardware/interfaces/tests/memory/1.0/ |
D | IMemoryTest.hal | 23 haveSomeMemory(memory mem) generates(memory mem); 26 set(memory mem);
|
/hardware/interfaces/tests/memory/2.0/ |
D | IMemoryInterface.hal | 5 bitwiseNot(memory mem); 7 getTestMem() generates(memory mem);
|
/hardware/libhardware/modules/camera/3_4/arc/ |
D | exif_utils.cpp | 388 ExifMem* mem = exif_mem_new_default(); in AddVariableLengthEntry() local 389 if (!mem) { in AddVariableLengthEntry() 393 std::unique_ptr<ExifEntry> entry(exif_entry_new_mem(mem)); in AddVariableLengthEntry() 396 exif_mem_unref(mem); in AddVariableLengthEntry() 399 void* tmpBuffer = exif_mem_alloc(mem, size); in AddVariableLengthEntry() 402 exif_mem_unref(mem); in AddVariableLengthEntry() 413 exif_mem_unref(mem); in AddVariableLengthEntry()
|
/hardware/interfaces/sensors/2.0/vts/functional/ |
D | VtsHalSensorsV2_0TargetTest.cpp | 156 Return<void> registerDirectChannel(const SharedMemInfo& mem, 189 void verifyRegisterDirectChannel(std::shared_ptr<SensorsTestSharedMemory> mem, 215 Return<void> SensorsHidlTest::registerDirectChannel(const SharedMemInfo& mem, in registerDirectChannel() argument 220 getSensors()->registerDirectChannel(mem, [&](auto result, auto channelHandle) { in registerDirectChannel() 958 void SensorsHidlTest::verifyRegisterDirectChannel(std::shared_ptr<SensorsTestSharedMemory> mem, in verifyRegisterDirectChannel() argument 962 char* buffer = mem->getBuffer(); in verifyRegisterDirectChannel() 963 memset(buffer, 0xff, mem->getSize()); in verifyRegisterDirectChannel() 965 registerDirectChannel(mem->getSharedMemInfo(), [&](Result result, int32_t channelHandle) { in verifyRegisterDirectChannel() 971 for (size_t i = 0; i < mem->getSize(); i++) { in verifyRegisterDirectChannel() 1023 std::shared_ptr<SensorsTestSharedMemory> mem( in verifyDirectChannel() local [all …]
|
/hardware/interfaces/cas/1.1/vts/functional/ |
D | VtsHalCasV1_1TargetTest.cpp | 353 sp<IMemory> mem = dealer->allocate(sizeof(kInBinaryBuffer)); in descrambleTestInputBuffer() local 354 if (nullptr == mem.get()) { in descrambleTestInputBuffer() 358 *inMemory = mem; in descrambleTestInputBuffer() 363 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() 369 uint8_t* ipBuffer = static_cast<uint8_t*>(static_cast<void*>(mem->pointer())); in descrambleTestInputBuffer() 411 sp<IMemory> mem = dealer->allocate(params.imemSizeActual); in descrambleTestOobInput() local 412 if (nullptr == mem.get()) { in descrambleTestOobInput() 420 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestOobInput()
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipanat/src/ |
D | ipa_nat_drvi.c | 167 int CreateNatDevice(struct ipa_ioc_nat_alloc_mem *mem) in CreateNatDevice() argument 171 ret = ioctl(ipv4_nat_cache.ipa_fd, IPA_IOC_ALLOC_NAT_MEM, mem); in CreateNatDevice() 645 struct ipa_ioc_nat_alloc_mem mem; in ipa_nati_add_ipv4_tbl() local 652 memset(&mem, 0, sizeof(mem)); in ipa_nati_add_ipv4_tbl() 654 &mem, in ipa_nati_add_ipv4_tbl() 666 ret = ipa_nati_update_cache(&mem, in ipa_nati_add_ipv4_tbl() 696 struct ipa_ioc_nat_alloc_mem *mem, in ipa_nati_alloc_table() argument 704 strlcpy(mem->dev_name, NAT_DEV_NAME, IPA_RESOURCE_NAME_MAX); in ipa_nati_alloc_table() 722 mem->size = (IPA_NAT_TABLE_ENTRY_SIZE * total_entries); in ipa_nati_alloc_table() 723 IPADBG("Nat Table size: %zu\n", mem->size); in ipa_nati_alloc_table() [all …]
|
/hardware/interfaces/cas/1.2/vts/functional/ |
D | VtsHalCasV1_2TargetTest.cpp | 397 sp<IMemory> mem = dealer->allocate(sizeof(kInBinaryBuffer)); in descrambleTestInputBuffer() local 398 if (nullptr == mem.get()) { in descrambleTestInputBuffer() 402 *inMemory = mem; in descrambleTestInputBuffer() 407 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() 413 uint8_t* ipBuffer = static_cast<uint8_t*>(static_cast<void*>(mem->unsecurePointer())); in descrambleTestInputBuffer() 455 sp<IMemory> mem = dealer->allocate(params.imemSizeActual); in descrambleTestOobInput() local 456 if (nullptr == mem.get()) { in descrambleTestOobInput() 464 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestOobInput()
|
/hardware/qcom/sm8150/data/ipacfg-mgr/ipanat/src/ |
D | ipa_nat_drvi.c | 205 int CreateNatDevice(struct ipa_ioc_nat_alloc_mem *mem) in CreateNatDevice() argument 209 ret = ioctl(ipv4_nat_cache.ipa_fd, IPA_IOC_ALLOC_NAT_MEM, mem); in CreateNatDevice() 689 struct ipa_ioc_nat_alloc_mem mem; in ipa_nati_add_ipv4_tbl() local 696 memset(&mem, 0, sizeof(mem)); in ipa_nati_add_ipv4_tbl() 698 &mem, in ipa_nati_add_ipv4_tbl() 710 ret = ipa_nati_update_cache(&mem, in ipa_nati_add_ipv4_tbl() 746 struct ipa_ioc_nat_alloc_mem *mem, in ipa_nati_alloc_table() argument 754 strlcpy(mem->dev_name, NAT_DEV_NAME, IPA_RESOURCE_NAME_MAX); in ipa_nati_alloc_table() 772 mem->size = (IPA_NAT_TABLE_ENTRY_SIZE * total_entries); in ipa_nati_alloc_table() 773 IPADBG("Nat Table size: %zu\n", mem->size); in ipa_nati_alloc_table() [all …]
|
/hardware/qcom/sdm845/data/ipacfg-mgr/ipanat/src/ |
D | ipa_nat_drvi.c | 204 int CreateNatDevice(struct ipa_ioc_nat_alloc_mem *mem) in CreateNatDevice() argument 208 ret = ioctl(ipv4_nat_cache.ipa_fd, IPA_IOC_ALLOC_NAT_MEM, mem); in CreateNatDevice() 688 struct ipa_ioc_nat_alloc_mem mem; in ipa_nati_add_ipv4_tbl() local 695 memset(&mem, 0, sizeof(mem)); in ipa_nati_add_ipv4_tbl() 697 &mem, in ipa_nati_add_ipv4_tbl() 709 ret = ipa_nati_update_cache(&mem, in ipa_nati_add_ipv4_tbl() 745 struct ipa_ioc_nat_alloc_mem *mem, in ipa_nati_alloc_table() argument 753 strlcpy(mem->dev_name, NAT_DEV_NAME, IPA_RESOURCE_NAME_MAX); in ipa_nati_alloc_table() 771 mem->size = (IPA_NAT_TABLE_ENTRY_SIZE * total_entries); in ipa_nati_alloc_table() 772 IPADBG("Nat Table size: %zu\n", mem->size); in ipa_nati_alloc_table() [all …]
|
/hardware/interfaces/soundtrigger/2.1/default/ |
D | SoundTriggerHw.cpp | 66 std::pair<bool, sp<IMemory>> moveVectorToMemory(hidl_vec<uint8_t>* v, hidl_memory* mem) { in moveVectorToMemory() argument 79 if (success) *mem = m; in moveVectorToMemory() 82 memory = hardware::mapMemory(*mem); in moveVectorToMemory()
|