Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/drivers/hdf_core/framework/model/audio/core/src/
Daudio_parse.c125 uint32_t index; in GetAudioRegGroupNameIndex() local
131 for (index = 0; index < AUDIO_GROUP_MAX; ++index) { in GetAudioRegGroupNameIndex()
132 … if ((g_audioRegGroupName[index] != NULL) && (strcmp(name, g_audioRegGroupName[index]) == 0)) { in GetAudioRegGroupNameIndex()
137 return index; in GetAudioRegGroupNameIndex()
144 int32_t index; in GetRegArray() local
152 index = group->groupIndex; in GetRegArray()
153 if (index >= AUDIO_GROUP_MAX) { in GetRegArray()
154 ADM_LOG_ERR("Input indexMax=%d error", index); in GetRegArray()
158 num = parser->GetElemNum(regNode, g_audioRegGroupName[index]); in GetRegArray()
160 ADM_LOG_ERR("parser %s element num failed", g_audioRegGroupName[index]); in GetRegArray()
[all …]
/drivers/peripheral/sensor/chipset/ppg/
Dppg_cs1262_fw.c64 uint16_t index = 0; in validateTab() local
72 for (index = 0; index < valiSize - 2; index++) { in validateTab()
73 checksum += regTab[index]; in validateTab()
79 index = (valiSize / REG_TAB_INDEX_HALF) - 1; in validateTab()
80 return (checksum == ((uint16_t *)regTab)[index]) ? HDF_SUCCESS : HDF_FAILURE; in validateTab()
87 for (uint8_t index = 0; index < HDF_ARRAY_SIZE(g_ppgModeTab); index++) { in Cs1262Loadfw() local
88 if (g_ppgModeTab[index].mode == mode) { in Cs1262Loadfw()
89 … ret = validateTab((uint8_t *)(g_ppgModeTab[index].regTab), sizeof(*g_ppgModeTab[index].regTab)); in Cs1262Loadfw()
94 *configTab = g_ppgModeTab[index].regTab; in Cs1262Loadfw()
Dppg_cs1262_spi.c168 for (uint16_t index = 0; index < dataLen; index++) { in Cs1262ReadRegs() local
169 *(dataBuf + index) = ReverseEndianInt16(*(dataBuf + index)); in Cs1262ReadRegs()
194 for (uint16_t index = 0; index < dataLen; index++) { in Cs1262WriteRegs() local
195 *(dataBuf + index) = ReverseEndianInt16(*(dataBuf + index)); in Cs1262WriteRegs()
269 for (uint16_t index = 0; index < groupLen; index++) { in Cs1262WriteGroup() local
270 if (regGroup[index].regLen == 1) { in Cs1262WriteGroup()
271 ret = Cs1262WriteReg(regGroup[index].regAddr, regGroup[index].regVal); in Cs1262WriteGroup()
273 …ret = Cs1262WriteRegs(regGroup[index].regAddr, regGroup[index].regValGroup, regGroup[index].regLen… in Cs1262WriteGroup()
277 HDF_LOGE("%s: failed, index = %u", __func__, index); in Cs1262WriteGroup()
/drivers/peripheral/codec/hal/passthrough/adapter/src/
Dcomponent_common.cpp360 int32_t index = 0; in SplitParamGettingPortDefinitionVideo() local
363 paramOut[index++].key = KEY_INPUT_BUFFER_COUNT; in SplitParamGettingPortDefinitionVideo()
365 paramOut[index++].key = KEY_OUTPUT_BUFFER_COUNT; in SplitParamGettingPortDefinitionVideo()
367 paramOut[index++].key = KEY_BUFFERSIZE; in SplitParamGettingPortDefinitionVideo()
368 paramOut[index++].key = KEY_MIMETYPE; in SplitParamGettingPortDefinitionVideo()
369 paramOut[index++].key = KEY_VIDEO_WIDTH; in SplitParamGettingPortDefinitionVideo()
370 paramOut[index++].key = KEY_VIDEO_HEIGHT; in SplitParamGettingPortDefinitionVideo()
371 paramOut[index++].key = KEY_VIDEO_STRIDE; in SplitParamGettingPortDefinitionVideo()
372 paramOut[index++].key = KEY_BITRATE; in SplitParamGettingPortDefinitionVideo()
373 paramOut[index++].key = KEY_VIDEO_FRAME_RATE; in SplitParamGettingPortDefinitionVideo()
[all …]
/drivers/hdf_core/framework/test/unittest/pm/
Dhdf_pm_driver_test.c33 #define CHECK_VALUE(index, cnt) \ argument
34 (g_pmTestType[(index)].resumeCnt == (cnt) && g_pmTestType[(index)].suspendCnt == (cnt))
238 uint32_t index; in HdfPmClearTestCnt() local
240 for (index = 0; index <= PM_TEST_DRIVER; index++) { in HdfPmClearTestCnt()
241 g_pmTestType[index].resumeCnt = 0; in HdfPmClearTestCnt()
242 g_pmTestType[index].suspendCnt = 0; in HdfPmClearTestCnt()
246 static void HdfPmRegisterTestListener(int32_t index) in HdfPmRegisterTestListener() argument
251 g_pmTestType[index].serviceName = g_serviceName[index]; in HdfPmRegisterTestListener()
252 g_pmTestType[index].obj = DevSvcManagerClntGetDeviceObject(g_pmTestType[index].serviceName); in HdfPmRegisterTestListener()
253 if (g_pmTestType[index].obj == NULL) { in HdfPmRegisterTestListener()
[all …]
/drivers/hdf_core/framework/model/audio/common/src/
Daudio_codec_base.c201 const struct AudioSapmCtrlConfig *sapmCompItem, uint16_t index) in SapmCtrlToSapmComp() argument
208 sapmComponents[index].componentName = in SapmCtrlToSapmComp()
209 g_audioSapmCompNameList[sapmCompItem[index].compNameIndex]; in SapmCtrlToSapmComp()
210 sapmComponents[index].reg = sapmCompItem[index].reg; in SapmCtrlToSapmComp()
211 sapmComponents[index].sapmType = sapmCompItem[index].sapmType; in SapmCtrlToSapmComp()
212 sapmComponents[index].mask = sapmCompItem[index].mask; in SapmCtrlToSapmComp()
213 sapmComponents[index].shift = sapmCompItem[index].shift; in SapmCtrlToSapmComp()
214 sapmComponents[index].invert = sapmCompItem[index].invert; in SapmCtrlToSapmComp()
215 sapmComponents[index].kcontrolsNum = sapmCompItem[index].kcontrolsNum; in SapmCtrlToSapmComp()
223 uint16_t index; in CodecSetSapmKcontrolInfo() local
[all …]
Daudio_dai_base.c78 uint16_t index; in DaiSetConfigInfoOfControls() local
110 for (index = 0; index < data->numControls; index++) { in DaiSetConfigInfoOfControls()
111 data->controls[index].iface = item[index].iface; in DaiSetConfigInfoOfControls()
112 if (item[index].arrayIndex >= AUDIO_CTRL_LIST_MAX) { in DaiSetConfigInfoOfControls()
118 data->controls[index].name = g_audioDaiControlsList[item[index].arrayIndex]; in DaiSetConfigInfoOfControls()
119 data->controls[index].Info = AudioInfoCtrlOps; in DaiSetConfigInfoOfControls()
120 … data->controls[index].privateValue = (unsigned long)(uintptr_t)(void*)(&patRegCfgItemTmp[index]); in DaiSetConfigInfoOfControls()
121 data->controls[index].Get = AudioCpuDaiGetCtrlOps; in DaiSetConfigInfoOfControls()
122 data->controls[index].Set = AudioCpuDaiSetCtrlOps; in DaiSetConfigInfoOfControls()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
Dv4l2_buffer.cpp91 itr->second[buf.index] = frameSpec; in V4L2QueueBuffer()
92 CAMERA_LOGD("insert frameMap fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer()
95 frameMap.insert(std::make_pair(buf.index, frameSpec)); in V4L2QueueBuffer()
97 CAMERA_LOGD("insert fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer()
107 buf.index = (uint32_t)frameSpec->buffer_->GetIndex(); in MakeInqueueBuffer()
148 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
149 buf.m.planes[0].m.mem_offset = adapterBufferMap_[buf.index].offset; in SetMmapInqueueBuffer()
152 buf.length = adapterBufferMap_[buf.index].length; in SetMmapInqueueBuffer()
153 buf.m.offset = adapterBufferMap_[buf.index].offset; in SetMmapInqueueBuffer()
163 buf.m.planes[0].length = adapterBufferMap_[buf.index].length; in SetDmaInqueueBuffer()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Dpin_virtual.c25 uint32_t index; member
39 static int32_t VirtualPinSetPull(struct PinCntlr *cntlr, uint32_t index, enum PinPullType pullType) in VirtualPinSetPull() argument
48 if (index >= cntlr->pinCount) { in VirtualPinSetPull()
49 HDF_LOGE("VirtualPinSetPull: invalid index:%u!", index); in VirtualPinSetPull()
54 virtual->desc[index].pullType = pullType; in VirtualPinSetPull()
58 static int32_t VirtualPinGetPull(struct PinCntlr *cntlr, uint32_t index, enum PinPullType *pullType) in VirtualPinGetPull() argument
67 if (index >= cntlr->pinCount) { in VirtualPinGetPull()
68 HDF_LOGE("VirtualPinGetPull: invalid index:%u!", index); in VirtualPinGetPull()
73 *pullType = virtual->desc[index].pullType; in VirtualPinGetPull()
77 static int32_t VirtualPinSetStrength(struct PinCntlr *cntlr, uint32_t index, uint32_t strength) in VirtualPinSetStrength() argument
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
Dhdf_dot_config_file.py18 def __init__(self, index, line): argument
19 self.index = index
43 def _update_cache(self, item, index, line): argument
44 self.cache[item] = ConfigItem(index, line)
48 index = self.cache.get(item).index
50 return index, line
51 for index, line in enumerate(self.lines):
55 self._update_cache(item, index, line_)
56 return index, line_
69 index, line = self._find(item)
[all …]
Dhdf_lite_mk_file.py40 for index, line in enumerate(self.lines):
43 self.target_line_index = index
47 self.end_line_index = index
50 vendor_lines.append(index)
54 for index in other_vendors:
55 if not hdf_utils.is_commented_line(self.lines[index], '#'):
56 self.lines[index] = '# %s' % self.lines[index]
Dhdf_lite_kconfig_file.py37 for index, line in enumerate(self.lines):
40 self.target_index = index
43 vendors.append(index)
47 for index in other_vendors:
48 if not hdf_utils.is_commented_line(self.lines[index], '#'):
49 self.lines[index] = '# %s' % self.lines[index]
/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/src/mmc/
Dmmc_block_lite.c171 uint16_t index; in MmcBlockAdd() local
177 index = mmcDevice->cntlr->index; in MmcBlockAdd()
178 if (index >= FF_VOLUMES) { in MmcBlockAdd()
182 g_diskDrv.drv[index] = &g_diskioMmcOps; in MmcBlockAdd()
183 g_diskDrv.lun[index] = (uint8_t)index; in MmcBlockAdd()
184 g_diskDrv.priv[index] = (void *)mb; in MmcBlockAdd()
185 VolToPart[index].di = (uint8_t)index; in MmcBlockAdd()
186 VolToPart[index].pd = (uint8_t)index; in MmcBlockAdd()
209 uint16_t index; in MmcBlockRemove() local
215 index = mmcDevice->cntlr->index; in MmcBlockRemove()
[all …]
/drivers/hdf_core/framework/model/camera/device_manager/src/
Dcamera_device_manager.c27 static bool FindAvailableIndex(uint32_t *index) in FindAvailableIndex() argument
32 *index = i; in FindAvailableIndex()
39 static bool AddCameraDeviceToTable(uint32_t index, struct CameraDevice *cameraDevice) in AddCameraDeviceToTable() argument
41 if (index >= CAMERA_MAX_NUM) { in AddCameraDeviceToTable()
45 if (g_cameraDeviceTable[index] != NULL) { in AddCameraDeviceToTable()
46 HDF_LOGE("%s: error: g_cameraDeviceTable[%{public}d] is already exist!", __func__, index); in AddCameraDeviceToTable()
49 g_cameraDeviceTable[index] = cameraDevice; in AddCameraDeviceToTable()
79 uint32_t index = 0; in CameraDeviceCreate() local
95 if (FindAvailableIndex(&index)) { in CameraDeviceCreate()
96 AddCameraDeviceToTable(index, camDevice); in CameraDeviceCreate()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_namespace.cpp43 AutoPtr<ASTNamespace> ASTNamespace::GetNamespace(size_t index) in GetNamespace() argument
45 if (index >= innerNamespaces_.size()) { in GetNamespace()
49 return innerNamespaces_[index]; in GetNamespace()
61 AutoPtr<ASTInterfaceType> ASTNamespace::GetInterface(size_t index) in GetInterface() argument
63 if (index >= interfaces_.size()) { in GetInterface()
67 return interfaces_[index]; in GetInterface()
79 AutoPtr<ASTSequenceableType> ASTNamespace::GetSequenceable(size_t index) in GetSequenceable() argument
81 if (index >= sequenceables_.size()) { in GetSequenceable()
85 return sequenceables_[index]; in GetSequenceable()
Dast.cpp40 size_t index = idlFilePath_.rfind('\\'); in SetIdlFile() local
42 size_t index = idlFilePath_.rfind('/'); in SetIdlFile() local
50 name_ = StringHelper::SubStr(idlFilePath_, (index == std::string::npos) ? 0 : (index + 1), end); in SetIdlFile()
55 size_t index = fullName.rfind('.'); in SetFullName() local
56 if (index != std::string::npos) { in SetFullName()
57 packageName_ = StringHelper::SubStr(fullName, 0, index); in SetFullName()
58 name_ = StringHelper::SubStr(fullName, index + 1); in SetFullName()
75 size_t index = 0; in ParseNamespace() local
76 while ((index = nspaceStr.find('.', begin)) != std::string::npos) { in ParseNamespace()
77 std::string ns = StringHelper::SubStr(nspaceStr, begin, index); in ParseNamespace()
[all …]
/drivers/peripheral/distributed_camera/hdi_service/include/utils/
Ddcamera_base.h28 bool operator == (const DCameraBase& index) const
30 return this->deviceId_ == index.deviceId_ && this->dhId_ == index.dhId_;
33 bool operator < (const DCameraBase& index) const
35 return (this->deviceId_ + this->dhId_) < (index.deviceId_ + index.dhId_);
/drivers/peripheral/display/hal/default_standard/src/display_device/composer/
Dhdi_composer.h52 HdiComposition *GetPreCompostion(uint32_t index) in GetPreCompostion() argument
54 if (index >= preComp_.size()) { in GetPreCompostion()
55 DISPLAY_LOGE("the index is overflow index %{public}d", index); in GetPreCompostion()
58 return preComp_[index].get(); in GetPreCompostion()
61 HdiComposition *GetPostCompostion(uint32_t index) in GetPostCompostion() argument
63 if (index >= postComp_.size()) { in GetPostCompostion()
64 DISPLAY_LOGE("the index is overflow index %{public}d", index); in GetPostCompostion()
67 return postComp_[index].get(); in GetPostCompostion()
/drivers/peripheral/codec/hal/passthrough/src/
Dcodec_capability_parser.c142 int32_t index = 0; in GetGroupExInfos() local
158 info = &(exInfoGroup->exInfo[index++]); in GetGroupExInfos()
175 int32_t index; in LoadCodecExInfoFromHcs() local
191 for (index = 0; index < CODEC_CAPABLITY_GROUP_NUM; index++) { in LoadCodecExInfoFromHcs()
192 if (GetGroupExInfosNumber(node, codecGroupsNodeName[index], &codecNum) == HDF_SUCCESS) { in LoadCodecExInfoFromHcs()
193 codecExInfoGroup = codecExInfoGroups[index]; in LoadCodecExInfoFromHcs()
209 for (index = 0; index < CODEC_CAPABLITY_GROUP_NUM; index++) { in LoadCodecExInfoFromHcs()
210 … if (GetGroupExInfos(node, codecGroupsNodeName[index], codecExInfoGroups[index]) != HDF_SUCCESS) { in LoadCodecExInfoFromHcs()
211 HDF_LOGE("%{public}s, GetGroupExInfos failed index: %{public}d!", __func__, index); in LoadCodecExInfoFromHcs()
227 int32_t index; in ClearExInfoGroup() local
[all …]
/drivers/hdf_core/framework/model/sensor/driver/common/src/
Dsensor_config_parser.c25 uint32_t index; in GetSensorRegGroupNameIndex() local
31 for (index = 0; index < SENSOR_GROUP_MAX; ++index) { in GetSensorRegGroupNameIndex()
32 … if ((g_sensorRegGroupName[index] != NULL) && (strcmp(name, g_sensorRegGroupName[index]) == 0)) { in GetSensorRegGroupNameIndex()
37 return index; in GetSensorRegGroupNameIndex()
42 int32_t index; in ReleaseSensorAllRegConfig() local
48 for (index = 0; index < SENSOR_GROUP_MAX; ++index) { in ReleaseSensorAllRegConfig()
49 if (config->regCfgGroup[index] != NULL) { in ReleaseSensorAllRegConfig()
50 if (config->regCfgGroup[index]->regCfgItem != NULL) { in ReleaseSensorAllRegConfig()
51 OsalMemFree(config->regCfgGroup[index]->regCfgItem); in ReleaseSensorAllRegConfig()
52 config->regCfgGroup[index]->regCfgItem = NULL; in ReleaseSensorAllRegConfig()
[all …]
/drivers/peripheral/user_auth/test/unittest/co_auth/
Dco_auth_funcs_test.cpp47 uint64_t index = 0; variable
48 EXPECT_EQ(RegisterExecutor(&info, &index), RESULT_NEED_INIT);
54 uint64_t index = 3226; variable
55 EXPECT_EQ(UnregisterExecutorToPool(index), RESULT_NEED_INIT);
60 EXPECT_EQ(RegisterExecutor(&info, &index), RESULT_SUCCESS);
61 EXPECT_EQ(UnregisterExecutorToPool(index), RESULT_SUCCESS);
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_deal_log_format.c32 size_t index = 0; in deal_format() local
50 ret = strncpy_s(&dest[index], size - index, ptr, ptr_cur - ptr + 1); in deal_format()
55 index += (ptr_cur - ptr + 1); in deal_format()
63 ret = strcat_s(&dest[index], size - index, ptr); in deal_format()
/drivers/hdf_core/framework/model/network/ethernet/src/
Deth_chip_driver.c37 int32_t index; in HdfEthRegChipDriver() local
46 for (index = 0; index < MAX_CHIPDRIVER_COUNT; index++) { in HdfEthRegChipDriver()
47 if (g_ethChipDriverFactory[index] == NULL) { in HdfEthRegChipDriver()
48 g_ethChipDriverFactory[index] = obj; in HdfEthRegChipDriver()
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_component_service.cpp70 int32_t CodecComponentService::GetParameter(uint32_t index, const std::vector<int8_t> &inParamStruc… in GetParameter() argument
73 CODEC_LOGI("index [%{public}x]", index); in GetParameter()
75 return node_->GetParameter(static_cast<enum OMX_INDEXTYPE>(index), outParamStruct.data()); in GetParameter()
78 int32_t CodecComponentService::SetParameter(uint32_t index, const std::vector<int8_t> &paramStruct) in SetParameter() argument
80 CODEC_LOGI("index [%{public}x]", index); in SetParameter()
81 return node_->SetParameter(static_cast<enum OMX_INDEXTYPE>(index), paramStruct.data()); in SetParameter()
84 int32_t CodecComponentService::GetConfig(uint32_t index, const std::vector<int8_t> &inCfgStruct, in GetConfig() argument
87 CODEC_LOGI("index [%{public}x]", index); in GetConfig()
89 return node_->GetConfig(static_cast<enum OMX_INDEXTYPE>(index), outCfgStruct.data()); in GetConfig()
92 int32_t CodecComponentService::SetConfig(uint32_t index, const std::vector<int8_t> &cfgStruct) in SetConfig() argument
[all …]
/drivers/peripheral/sensor/hal/src/
Dsensor_dump.c54 int32_t index = -1; in SensorShowList() local
72 for (index = 0; index < sensorList->sensorSum; index++) { in SensorShowList()
89 sensorList->sensorInfoEntry[index].sensorName, in SensorShowList()
90 sensorList->sensorInfoEntry[index].sensorId, in SensorShowList()
91 sensorStatus[sensorList->sensorInfoEntry[index].sensorId], in SensorShowList()
92 sensorList->sensorInfoEntry[index].maxRange, in SensorShowList()
93 sensorList->sensorInfoEntry[index].accuracy, in SensorShowList()
94 sensorList->sensorInfoEntry[index].power, in SensorShowList()
95 sensorList->sensorInfoEntry[index].minDelay, in SensorShowList()
96 sensorList->sensorInfoEntry[index].maxDelay); in SensorShowList()

12345678910>>...15