/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()
|
/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 | 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/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/camera/device/1.0/default/ |
D | CameraDevice.cpp | 319 [&](bool success, const hidl_memory& mem) { in CameraHeapMemory() argument 325 mHidlHandle = native_handle_clone(mem.handle()); in CameraHeapMemory() 370 CameraHeapMemory* mem; in sGetMemory() local 372 mem = new CameraHeapMemory(object->mAshmemAllocator, buf_size, num_bufs); in sGetMemory() 374 mem = new CameraHeapMemory(fd, buf_size, num_bufs); in sGetMemory() 376 mem->incStrong(mem); in sGetMemory() 377 hidl_handle hidlHandle = mem->mHidlHandle; in sGetMemory() 379 mem->handle.mId = id; in sGetMemory() 386 object->mMemoryMap[id] = mem; in sGetMemory() 388 mem->handle.mDevice = object; in sGetMemory() [all …]
|
/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/cas/1.1/vts/functional/ |
D | VtsHalCasV1_1TargetTest.cpp | 341 sp<IMemory> mem = dealer->allocate(sizeof(kInBinaryBuffer)); in descrambleTestInputBuffer() local 342 if (nullptr == mem.get()) { in descrambleTestInputBuffer() 346 *inMemory = mem; in descrambleTestInputBuffer() 351 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() 357 uint8_t* ipBuffer = static_cast<uint8_t*>(static_cast<void*>(mem->unsecurePointer())); in descrambleTestInputBuffer() 399 sp<IMemory> mem = dealer->allocate(params.imemSizeActual); in descrambleTestOobInput() local 400 if (nullptr == mem.get()) { in descrambleTestOobInput() 408 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 | 385 sp<IMemory> mem = dealer->allocate(sizeof(kInBinaryBuffer)); in descrambleTestInputBuffer() local 386 if (nullptr == mem.get()) { in descrambleTestInputBuffer() 390 *inMemory = mem; in descrambleTestInputBuffer() 395 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() 401 uint8_t* ipBuffer = static_cast<uint8_t*>(static_cast<void*>(mem->unsecurePointer())); in descrambleTestInputBuffer() 443 sp<IMemory> mem = dealer->allocate(params.imemSizeActual); in descrambleTestOobInput() local 444 if (nullptr == mem.get()) { in descrambleTestOobInput() 452 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestOobInput()
|
/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/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/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()
|
/hardware/interfaces/sensors/common/vts/2_X/ |
D | VtsHalSensorsV2_XTargetTest.h | 203 Return<void> registerDirectChannel(const SharedMemInfo& mem, 235 std::shared_ptr<SensorsTestSharedMemory<SensorTypeVersion, EventType>> mem, 262 Return<void> SensorsHidlTest::registerDirectChannel(const SharedMemInfo& mem, in registerDirectChannel() argument 267 getSensors()->registerDirectChannel(mem, [&](auto result, auto channelHandle) { in registerDirectChannel() 837 std::shared_ptr<SensorsTestSharedMemory<SensorTypeVersion, EventType>> mem, in verifyRegisterDirectChannel() argument 839 char* buffer = mem->getBuffer(); in verifyRegisterDirectChannel() 840 memset(buffer, 0xff, mem->getSize()); in verifyRegisterDirectChannel() 842 registerDirectChannel(mem->getSharedMemInfo(), [&](Result result, int32_t channelHandle) { in verifyRegisterDirectChannel() 848 for (size_t i = 0; i < mem->getSize(); i++) { in verifyRegisterDirectChannel() 906 std::shared_ptr<SensorsTestSharedMemory<SensorTypeVersion, EventType>> mem( in verifyDirectChannel() [all …]
|
/hardware/interfaces/sensors/common/default/2.X/multihal/include/ |
D | SubHalWrapper.h | 79 virtual Return<void> registerDirectChannel(const SharedMemInfo& mem, 125 Return<void> registerDirectChannel(const SharedMemInfo& mem, in registerDirectChannel() argument 127 return mSubHal->registerDirectChannel(mem, _hidl_cb); in registerDirectChannel()
|
/hardware/interfaces/cas/1.0/vts/functional/ |
D | VtsHalCasV1_0TargetTest.cpp | 300 sp<IMemory> mem = dealer->allocate(sizeof(kInBinaryBuffer)); in descrambleTestInputBuffer() local 301 if (nullptr == mem.get()) { in descrambleTestInputBuffer() 305 *inMemory = mem; in descrambleTestInputBuffer() 310 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestInputBuffer() 316 uint8_t* ipBuffer = static_cast<uint8_t*>(static_cast<void*>(mem->unsecurePointer())); in descrambleTestInputBuffer() 362 sp<IMemory> mem = dealer->allocate(params.imemSizeActual); in descrambleTestOobInput() local 363 if (nullptr == mem.get()) { in descrambleTestOobInput() 371 sp<IMemoryHeap> heap = mem->getMemory(&offset, &size); in descrambleTestOobInput()
|