/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3Mem.cpp | 106 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument 115 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal() 117 index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal() 121 if (0 == mMemInfo[index].handle) { in cacheOpsInternal() 122 LOGE("Buffer at %d not registered", index); in cacheOpsInternal() 129 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal() 130 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal() 131 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal() 156 int QCamera3Memory::getFd(uint32_t index) in getFd() argument 160 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getFd() [all …]
|
D | QCamera3StreamMem.cpp | 123 int QCamera3StreamMem::getFd(uint32_t index) in getFd() argument 127 if (index < mMaxHeapBuffers) in getFd() 128 return mHeapMem.getFd(index); in getFd() 130 return mGrallocMem.getFd(index); in getFd() 143 ssize_t QCamera3StreamMem::getSize(uint32_t index) in getSize() argument 147 if (index < mMaxHeapBuffers) in getSize() 148 return mHeapMem.getSize(index); in getSize() 150 return mGrallocMem.getSize(index); in getSize() 165 int QCamera3StreamMem::invalidateCache(uint32_t index) in invalidateCache() argument 169 if (index < mMaxHeapBuffers) in invalidateCache() [all …]
|
D | QCamera3Mem.h | 52 int cleanCache(uint32_t index) in cleanCache() argument 54 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache() 56 int invalidateCache(uint32_t index) in invalidateCache() argument 58 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache() 60 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument 62 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache() 64 int getFd(uint32_t index); 65 ssize_t getSize(uint32_t index); 68 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0; 70 virtual void *getPtr(uint32_t index) = 0; [all …]
|
D | QCamera3StreamMem.h | 56 int getFd(uint32_t index); 57 ssize_t getSize(uint32_t index); 58 int invalidateCache(uint32_t index); 59 int cleanInvalidateCache(uint32_t index); 60 int cleanCache(uint32_t index); 62 mm_camera_buf_def_t &bufDef, uint32_t index, 64 void *getPtr(uint32_t index); 66 bool valid(uint32_t index); 70 int unregisterBuffer(uint32_t index); 72 void *getBufferHandle(uint32_t index); [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | overlay.h | 92 void validate(int index); 111 static void setUse(int index); 112 static void resetUse(int index); 113 static bool isUsed(int index); 114 static bool isNotUsed(int index); 117 static void setAllocation(int index); 118 static void resetAllocation(int index); 119 static bool isAllocated(int index); 120 static bool isNotAllocated(int index); 153 inline void Overlay::validate(int index) { in validate() argument [all …]
|
D | overlay.cpp | 103 int index = (int)dest; in nextPipe() local 106 mPipeBook[index].mDisplay = dpy; in nextPipe() 107 if(not mPipeBook[index].valid()) { in nextPipe() 108 mPipeBook[index].mPipe = new GenericPipe(dpy); in nextPipe() 124 int index = (int)dest; in commit() local 125 validate(index); in commit() 127 if(mPipeBook[index].mPipe->commit()) { in commit() 132 int dpy = mPipeBook[index].mDisplay; in commit() 142 int index = (int)dest; in queueBuffer() local 144 validate(index); in queueBuffer() [all …]
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/parser/ |
D | viddec_pm_tags.c | 131 uint32_t index=0, t_index=0; in viddec_pm_add_tags_to_pendinglist() local 139 index++; in viddec_pm_add_tags_to_pendinglist() 143 while( (index < list->num_items) && (list->data[index].edpos <= (uint32_t)list->total_bytes)) in viddec_pm_add_tags_to_pendinglist() 145 pend->pending_tags[t_index] = list->sc_ibuf[index].id; in viddec_pm_add_tags_to_pendinglist() 146 index++;t_index++; in viddec_pm_add_tags_to_pendinglist() 148 if( (index < list->num_items) && (list->data[index].stpos < (uint32_t)list->total_bytes)) in viddec_pm_add_tags_to_pendinglist() 150 pend->pending_tags[t_index] = list->sc_ibuf[index].id; in viddec_pm_add_tags_to_pendinglist() 155 …g_tag_item(viddec_emitter *emit, vidded_pm_pending_tags_t *pend, uint32_t index, uint32_t using_ne… in viddec_pm_emit_pending_tag_item() argument 157 viddec_emit_assoc_tag(emit, pend->pending_tags[index], using_next); in viddec_pm_emit_pending_tag_item() 158 pend->pending_tags[index] = INVALID_ENTRY; in viddec_pm_emit_pending_tag_item() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/buffers/ |
D | BufferCache.cpp | 37 ssize_t index = mBufferPool.indexOfKey(handle); in addMapper() local 38 if (index >= 0) { in addMapper() 44 index = mBufferPool.add(handle, mapper); in addMapper() 45 if (index < 0) { in addMapper() 46 ELOGTRACE("failed to add mapper. err = %d", index); in addMapper() 55 ssize_t index; in removeMapper() local 62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper() 63 if (index < 0) { in removeMapper() 64 WLOGTRACE("failed to remove mapper. err = %d", index); in removeMapper() 73 ssize_t index = mBufferPool.indexOfKey(handle); in getMapper() local [all …]
|
/hardware/intel/img/hwcomposer/merrifield/common/buffers/ |
D | BufferCache.cpp | 37 ssize_t index = mBufferPool.indexOfKey(handle); in addMapper() local 38 if (index >= 0) { in addMapper() 44 index = mBufferPool.add(handle, mapper); in addMapper() 45 if (index < 0) { in addMapper() 46 ETRACE("failed to add mapper. err = %d", (int)index); in addMapper() 55 ssize_t index; in removeMapper() local 62 index = mBufferPool.removeItem(mapper->getKey()); in removeMapper() 63 if (index < 0) { in removeMapper() 64 WTRACE("failed to remove mapper. err = %d", (int)index); in removeMapper() 73 ssize_t index = mBufferPool.indexOfKey(handle); in getMapper() local [all …]
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/mp2/parser/ |
D | viddec_mpeg2_frame_attr.c | 13 unsigned int index = 0; in viddec_mpeg2_print_attr() local 25 for (index = 0; index < attr->mpeg2.number_of_frame_center_offsets; index++) in viddec_mpeg2_print_attr() 27 MPEG2_FA_DEB("\tPan_Scan_Offset_%d= %dx%d\n", index, in viddec_mpeg2_print_attr() 28 attr->mpeg2.frame_center_offset[index].horz, in viddec_mpeg2_print_attr() 29 attr->mpeg2.frame_center_offset[index].vert); in viddec_mpeg2_print_attr() 39 unsigned int index = 0; in viddec_mpeg2_set_default_values() local 42 for (index = 0; index < MPEG2_MAX_VID_OFFSETS ; index++) in viddec_mpeg2_set_default_values() 44 attrs->mpeg2.frame_center_offset[index].horz = 0; in viddec_mpeg2_set_default_values() 45 attrs->mpeg2.frame_center_offset[index].vert = 0; in viddec_mpeg2_set_default_values() 101 unsigned int index = 0; in viddec_mpeg2_translate_attr() local [all …]
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
D | alsa_ucm.c | 110 int verb_index, list_size, index = 0; in snd_use_case_get_list() local 126 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_get_list() 128 ALOGV("Index:%d Verb:%s", index, in snd_use_case_get_list() 129 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_get_list() 130 index++; in snd_use_case_get_list() 134 return index; in snd_use_case_get_list() 144 verb_list[index].use_case_name, in snd_use_case_get_list() 145 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list() 146 index++; in snd_use_case_get_list() 148 verb_index = index; in snd_use_case_get_list() [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/ |
D | IPACM_Config.h | 153 inline void increaseFltRuleCount(int index, ipa_ip_type iptype, int increment) in increaseFltRuleCount() argument 155 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0)) in increaseFltRuleCount() 157 IPACMERR("Index is out of range: %d.\n", index); in increaseFltRuleCount() 162 flt_rule_count_v4[index] += increment; in increaseFltRuleCount() 163 IPACMDBG_H("Now num of v4 flt rules on client %d is %d.\n", index, flt_rule_count_v4[index]); in increaseFltRuleCount() 167 flt_rule_count_v6[index] += increment; in increaseFltRuleCount() 168 IPACMDBG_H("Now num of v6 flt rules on client %d is %d.\n", index, flt_rule_count_v6[index]); in increaseFltRuleCount() 173 inline void decreaseFltRuleCount(int index, ipa_ip_type iptype, int decrement) in decreaseFltRuleCount() argument 175 if((index >= IPA_CLIENT_CONS - IPA_CLIENT_PROD) || (index < 0)) in decreaseFltRuleCount() 177 IPACMERR("Index is out of range: %d.\n", index); in decreaseFltRuleCount() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | Obd2SensorStore.cpp | 36 void Obd2SensorStore::BitmaskInVector::set(size_t index, bool value) { in set() argument 37 const size_t byteIndex = index / 8; in set() 38 const size_t bitIndex = index % 8; in set() 44 bool Obd2SensorStore::BitmaskInVector::get(size_t index) const { in get() 45 const size_t byteIndex = index / 8; in get() 46 const size_t bitIndex = index % 8; in get() 65 StatusCode Obd2SensorStore::setIntegerSensor(DiagnosticIntegerSensorIndex index, int32_t value) { in setIntegerSensor() argument 66 return setIntegerSensor(toInt(index), value); in setIntegerSensor() 68 StatusCode Obd2SensorStore::setFloatSensor(DiagnosticFloatSensorIndex index, float value) { in setFloatSensor() argument 69 return setFloatSensor(toInt(index), value); in setFloatSensor() [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlay.h | 160 void validate(int index); 201 static void setUse(int index); 202 static void resetUse(int index); 203 static bool isUsed(int index); 204 static bool isNotUsed(int index); 207 static void setAllocation(int index); 208 static void resetAllocation(int index); 209 static bool isAllocated(int index); 210 static bool isNotAllocated(int index); 255 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlay.h | 155 void validate(int index); 193 static void setUse(int index); 194 static void resetUse(int index); 195 static bool isUsed(int index); 196 static bool isNotUsed(int index); 199 static void setAllocation(int index); 200 static void resetAllocation(int index); 201 static bool isAllocated(int index); 202 static bool isNotAllocated(int index); 247 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
D | QCameraMem.h | 91 int cleanCache(uint32_t index) in cleanCache() argument 93 return cacheOps(index, ION_IOC_CLEAN_CACHES); in cleanCache() 95 int invalidateCache(uint32_t index) in invalidateCache() argument 97 return cacheOps(index, ION_IOC_INV_CACHES); in invalidateCache() 99 int cleanInvalidateCache(uint32_t index) in cleanInvalidateCache() argument 101 return cacheOps(index, ION_IOC_CLEAN_INV_CACHES); in cleanInvalidateCache() 103 int getFd(uint32_t index) const; 104 ssize_t getSize(uint32_t index) const; 112 virtual int cacheOps(uint32_t index, unsigned int cmd) = 0; 114 virtual camera_memory_t *getMemory(uint32_t index, [all …]
|
D | QCameraMem.cpp | 118 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument 130 if (index >= mBufferCount) { in cacheOpsInternal() 131 LOGE("index %d out of bound [0, %d)", index, mBufferCount); in cacheOpsInternal() 138 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal() 139 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal() 142 mMemInfo[index].size; in cacheOpsInternal() 149 mMemInfo[index].main_ion_fd); in cacheOpsInternal() 150 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal() 168 int QCameraMemory::getFd(uint32_t index) const in getFd() 170 if (index >= mBufferCount) in getFd() [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlay.h | 166 void validate(int index); 215 static void setUse(int index); 216 static void resetUse(int index); 217 static bool isUsed(int index); 218 static bool isNotUsed(int index); 221 static void setAllocation(int index); 222 static void resetAllocation(int index); 223 static bool isAllocated(int index); 224 static bool isNotAllocated(int index); 274 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/qcom/display/msm8909/liboverlay/ |
D | overlay.h | 164 void validate(int index); 207 static void setUse(int index); 208 static void resetUse(int index); 209 static bool isUsed(int index); 210 static bool isNotUsed(int index); 213 static void setAllocation(int index); 214 static void resetAllocation(int index); 215 static bool isAllocated(int index); 216 static bool isNotAllocated(int index); 259 inline void Overlay::validate(int index) { in validate() argument [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VehiclePropConfigIndex_test.cpp | 45 VehiclePropConfigIndex index(configs); in TEST_F() local 47 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::HVAC_FAN_SPEED))); in TEST_F() 48 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_MAKE))); in TEST_F() 49 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_FUEL_CAPACITY))); in TEST_F() 51 ASSERT_FALSE(index.hasConfig(toInt(VehicleProperty::INVALID))); in TEST_F() 55 VehiclePropConfigIndex index(configs); in TEST_F() local 57 std::vector<VehiclePropConfig> actualConfigs = index.getAllConfigs(); in TEST_F() 66 VehiclePropConfigIndex index(configs); in TEST_F() local 67 auto actualConfig = index.getConfig(toInt(VehicleProperty::HVAC_FAN_SPEED)); in TEST_F()
|
/hardware/qcom/display/msm8998/sdm/libs/core/ |
D | display_hdmi.cpp | 163 uint32_t best_index = 0, index; in GetBestConfig() local 171 for (index = 0; index < num_modes; index++) { in GetBestConfig() 172 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 176 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 177 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 181 if (index < num_modes) { in GetBestConfig() 182 best_index = UINT32(index); in GetBestConfig() 183 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 184 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 189 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/display/msm8996/sdm/libs/core/ |
D | display_hdmi.cpp | 171 uint32_t best_index = 0, index; in GetBestConfig() local 179 for (index = 0; index < num_modes; index++) { in GetBestConfig() 180 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 184 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 185 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 189 if (index < num_modes) { in GetBestConfig() 190 best_index = UINT32(index); in GetBestConfig() 191 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 192 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 197 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/qcom/display/sdm845/sdm/libs/core/ |
D | display_hdmi.cpp | 169 uint32_t best_index = 0, index; in GetBestConfig() local 177 for (index = 0; index < num_modes; index++) { in GetBestConfig() 178 hw_intf_->GetDisplayAttributes(index, &attrib[index]); in GetBestConfig() 182 for (index = 0; index < num_modes; index ++) { in GetBestConfig() 183 if (attrib[index].s3d_config[s3d_mode]) { in GetBestConfig() 187 if (index < num_modes) { in GetBestConfig() 188 best_index = UINT32(index); in GetBestConfig() 189 for (size_t index = best_index + 1; index < num_modes; index ++) { in GetBestConfig() local 190 if (!attrib[index].s3d_config[s3d_mode]) in GetBestConfig() 195 if (attrib[index].y_pixels > attrib[best_index].y_pixels) { in GetBestConfig() [all …]
|
/hardware/intel/img/hwcomposer/merrifield/common/planes/ |
D | DisplayPlaneManager.cpp | 125 void DisplayPlaneManager::putPlane(int index, uint32_t& mask) in putPlane() argument 127 if (index < 0 || index >= 32) in putPlane() 130 int bit = (1 << index); in putPlane() 133 WTRACE("bit %d was set", index); in putPlane() 140 int DisplayPlaneManager::getPlane(uint32_t& mask, int index) in getPlane() argument 142 if (!mask || index < 0 || index > mTotalPlaneCount) in getPlane() 145 int bit = (1 << index); in getPlane() 148 return index; in getPlane() 154 DisplayPlane* DisplayPlaneManager::getPlane(int type, int index) in getPlane() argument 163 int freePlaneIndex = getPlane(mReclaimedPlanes[type], index); in getPlane() [all …]
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/planes/ |
D | DisplayPlaneManager.cpp | 125 void DisplayPlaneManager::putPlane(int index, uint32_t& mask) in putPlane() argument 127 if (index < 0 || index >= 32) in putPlane() 130 int bit = (1 << index); in putPlane() 133 WLOGTRACE("bit %d was set", index); in putPlane() 140 int DisplayPlaneManager::getPlane(uint32_t& mask, int index) in getPlane() argument 142 if (!mask || index < 0 || index > mTotalPlaneCount) in getPlane() 145 int bit = (1 << index); in getPlane() 148 return index; in getPlane() 154 DisplayPlane* DisplayPlaneManager::getPlane(int type, int index) in getPlane() argument 163 int freePlaneIndex = getPlane(mReclaimedPlanes[type], index); in getPlane() [all …]
|