/drivers/peripheral/clearplay/hdi_service/common/ |
H A D | base64_utils.cpp | 77 for (size_t index = 0; index < CHAR_ARRAY_LENGTH_FOUR; ++index) { in MakeCharFour() 78 charArrayFour[index] = table[index]; in MakeCharFour() 93 for (size_t index = 0; index < CHAR_ARRAY_LENGTH_THREE; ++index) { in MakeCharTree() 94 charArrayThree[index] = table[index]; in MakeCharTree() 105 size_t index = 0; Encode() local 149 size_t index = 0; Decode() local [all...] |
/drivers/hdf_core/framework/test/unittest/pm/ |
H A D | hdf_pm_driver_test.c | 33 #define CHECK_VALUE(index, cnt) \ 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 274 HdfPmBakListener(int32_t index) HdfPmBakListener() argument 283 HdfPmTestAcquire(uint32_t index) HdfPmTestAcquire() argument 288 HdfPmTestRelease(uint32_t index) HdfPmTestRelease() argument 293 HdfPmTestAcquireSync(uint32_t index) HdfPmTestAcquireSync() argument 298 HdfPmTestReleaseSync(uint32_t index) HdfPmTestReleaseSync() argument 305 uint32_t index; HdfPmTestBegin() local 319 uint32_t index; HdfPmTestEnd() local 334 uint32_t index; HdfPmTestOneDriver() local 358 uint32_t index; HdfPmTestTwoDriver() local 385 uint32_t index; HdfPmTestThreeDriver() local 431 uint32_t index; HdfPmTestThreeDriverSeqHundred() local 572 uint32_t index; HdfPmDriverDispatch() local [all...] |
/drivers/hdf_core/framework/model/audio/core/src/ |
H A D | audio_parse.c | 125 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 > in GetRegArray() 185 int32_t index; ParseAudioRegItem() local 228 int32_t index; ParseAudioEnumRegItem() local 272 int32_t index; ParseAudioSapmItem() local 314 int32_t index; ParseAudioCtrlItem() local 351 int32_t index; ParseAudioAddrItem() local 381 ParseAudioRegGroup(const struct DeviceResourceIface *parser, const struct DeviceResourceNode *regCfgNode, struct AudioRegCfgGroupNode **groupNode, uint32_t index) ParseAudioRegGroup() argument 437 int32_t index; ReleaseAudioAllRegConfig() local 577 uint16_t index; AudioGetRegConfig() local [all...] |
/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_codec_base.c | 201 const struct AudioSapmCtrlConfig *sapmCompItem, uint16_t index) in SapmCtrlToSapmComp() 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] in SapmCtrlToSapmComp() 200 SapmCtrlToSapmComp(struct AudioSapmComponent *sapmComponents, const struct AudioSapmCtrlConfig *sapmCompItem, uint16_t index) SapmCtrlToSapmComp() argument 223 uint16_t index; CodecSetSapmKcontrolInfo() local 275 uint16_t index; CodecSetSapmConfigInfo() local 326 uint16_t index = 0; CodecSetKcontrolInfo() local 428 uint32_t index; CodecSetCtlFunc() local 736 uint32_t index; CodecDeviceInitRegConfig() local 772 uint16_t index; CodecDaiDeviceStartupRegConfig() local [all...] |
H A D | audio_dai_base.c | 78 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() 113 AUDIO_DRIVER_LOG_ERR("Array super index."); in DaiSetConfigInfoOfControls() 118 data->controls[index].name = g_audioDaiControlsList[item[index] in DaiSetConfigInfoOfControls() [all...] |
/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/src/mmc/ |
H A D | mmc_block_lite.c | 171 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() 209 uint16_t index; MmcBlockRemove() local [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_dot_config_file.py | 18 def __init__(self, index, line): 19 self.index = index 43 def _update_cache(self, item, index, line): 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 [all...] |
H A D | hdf_lite_kconfig_file.py | 37 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/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
H A D | v4l2_buffer.cpp | 129 uint64_t id = (uint64_t)buf.index; in SetAndPushBuffer() 158 queuedBuffers_.push(buf.index); in SetAndPushBuffer() 194 itr->second[buf.index] = frameSpec; in V4L2QueueBuffer() 195 CAMERA_LOGI("insert frameMap fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer() 198 frameMap.insert(std::make_pair(buf.index, frameSpec)); in V4L2QueueBuffer() 200 CAMERA_LOGI("insert fd = %{public}d buf.index = %{public}d\n", fd, buf.index); in V4L2QueueBuffer() 210 buf.index = (uint32_t)frameSpec->buffer_->GetIndex(); in MakeInqueueBuffer() 251 buf.m.planes[0].length = adapterBufferMap_[buf.index] in SetMmapInqueueBuffer() 397 int32_t index = (uint32_t)frameSpec->buffer_->GetIndex(); SetAdapterBuffer() local 451 int32_t index = (uint32_t)frameSpec->buffer_->GetIndex(); SetDmabufOn() local [all...] |
/drivers/hdf_core/framework/model/camera/device_manager/src/ |
H A D | camera_device_manager.c | 27 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() 42 HDF_LOGE("%s: error: index out of range!", __func__); 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() 151 int32_t index; CameraDeviceDriverFactoryRegister() local [all...] |
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | pin_virtual.c | 25 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() 77 VirtualPinSetStrength(struct PinCntlr *cntlr, uint32_t index, uint32_t strength) VirtualPinSetStrength() argument 96 VirtualPinGetStrength(struct PinCntlr *cntlr, uint32_t index, uint32_t *strength) VirtualPinGetStrength() argument 115 VirtualPinSetFunc(struct PinCntlr *cntlr, uint32_t index, const char *funcName) VirtualPinSetFunc() argument 144 VirtualPinGetFunc(struct PinCntlr *cntlr, uint32_t index, const char **funcName) VirtualPinGetFunc() argument 222 VirtualPinParsePinNode(const struct DeviceResourceNode *node, struct VirtualPinCntlr *virtual, int32_t index) VirtualPinParsePinNode() argument 313 int32_t index = 0; VirtualPinInit() local [all...] |
/drivers/peripheral/distributed_camera/hdi_service/include/utils/ |
H A D | dcamera_base.h | 28 bool operator == (const DCameraBase& index) const in operator ==() 30 return this->deviceId_ == index.deviceId_ && this->dhId_ == index.dhId_; in operator ==() 33 bool operator < (const DCameraBase& index) const in operator <() 35 return (this->deviceId_ + this->dhId_) < (index.deviceId_ + index.dhId_); in operator <()
|
/drivers/hdf_core/framework/tools/hdi-gen/ast/ |
H A D | ast_namespace.cpp | 43 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()
|
H A D | ast.cpp | 40 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 in ParseNamespace() 116 GetNamespace(size_t index) GetNamespace() argument 196 GetTypeDefintion(size_t index) GetTypeDefintion() argument [all...] |
/drivers/hdf_core/framework/model/sensor/driver/common/src/ |
H A D | sensor_config_parser.c | 25 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_MA in ReleaseSensorAllRegConfig() 65 uint32_t index; ParseSensorRegItem() local 160 uint32_t index; ParseSensorRegConfig() local 464 uint32_t index; ParseSensorDirection() local [all...] |
/drivers/peripheral/sensor/chipset/ppg/ |
H A D | ppg_cs1262_fw.c | 64 uint16_t index = 0;
in validateTab() local 72 for (index = 0; index < valiSize - 2; index++) {
in validateTab() 73 checksum += regTab[index];
in validateTab() 77 * needs to be divided by 2 when calculating the real checksum's 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_SIZ in Cs1262Loadfw() [all...] |
H A D | ppg_cs1262_spi.c | 168 for (uint16_t index = 0; index < dataLen; index++) { in Cs1262ReadRegs() 169 *(dataBuf + index) = ReverseEndianInt16(*(dataBuf + index)); in Cs1262ReadRegs() 194 for (uint16_t index = 0; index < dataLen; index++) { in Cs1262WriteRegs() 195 *(dataBuf + index) = ReverseEndianInt16(*(dataBuf + index)); in Cs1262WriteRegs() [all...] |
/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | co_auth_funcs_test.cpp | 47 uint64_t index = 0; in HWTEST_F() local 48 EXPECT_EQ(RegisterExecutor(&info, &index), RESULT_NEED_INIT); in HWTEST_F() 54 uint64_t index = 3226; in HWTEST_F() local 55 EXPECT_EQ(UnregisterExecutorToPool(index), RESULT_NEED_INIT); in HWTEST_F() 60 EXPECT_EQ(RegisterExecutor(&info, &index), RESULT_SUCCESS); in HWTEST_F() 61 EXPECT_EQ(UnregisterExecutorToPool(index), RESULT_SUCCESS); in HWTEST_F()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/composer/ |
H A D | hdi_composer.h | 52 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 in GetPostCompostion() [all...] |
/drivers/peripheral/sensor/hal/src/ |
H A D | sensor_dump.c | 54 int32_t index = -1; in SensorShowList() local 72 for (index = 0; index < sensorList->sensorSum; index++) { in SensorShowList() 90 sensorList->sensorInfoEntry[index].sensorName, in SensorShowList() 91 sensorList->sensorInfoEntry[index].sensorId, in SensorShowList() 92 sensorStatus[sensorList->sensorInfoEntry[index].sensorId], in SensorShowList() 93 sensorList->sensorInfoEntry[index].maxRange, in SensorShowList() 94 sensorList->sensorInfoEntry[index].accuracy, in SensorShowList() 95 sensorList->sensorInfoEntry[index] in SensorShowList() [all...] |
/drivers/hdf_core/adapter/khdf/linux/osal/src/ |
H A D | osal_deal_log_format.c | 32 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/ |
H A D | eth_chip_driver.c | 37 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/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_chipdriver_manager.c | 43 int32_t index; in HdfWlanRegChipDriver() local 52 for (index = 0; index < MAX_CHIPDRIVER_COUNT; index++) { in HdfWlanRegChipDriver() 53 if (g_wlanChipDriverManagerFactory[index] == NULL) { in HdfWlanRegChipDriver() 54 g_wlanChipDriverManagerFactory[index] = obj; in HdfWlanRegChipDriver()
|
/drivers/hdf_core/framework/support/platform/src/pin/ |
H A D | pin_core.c | 180 uint16_t index; in GetPinIndex() local 183 for (index = 0; index < cntlr->pinCount; index++) { in GetPinIndex() 184 if (cntlr->pins[index].pinName == NULL) { in GetPinIndex() 185 HDF_LOGE("GetPinIndex: cntlr->pin[index].pinName is null!"); in GetPinIndex() 188 ret = strcmp(cntlr->pins[index].pinName, desc->pinName); in GetPinIndex() 190 HDF_LOGI("GetPinIndex: get pin index:%hu success!", index); in GetPinIndex() 191 return (int32_t)index; in GetPinIndex() 206 uint32_t index; PinCntlrSetPinPull() local 246 uint32_t index; PinCntlrGetPinPull() local 292 uint32_t index; PinCntlrSetPinStrength() local 324 uint32_t index; PinCntlrGetPinStrength() local 362 uint32_t index; PinCntlrSetPinFunc() local 399 uint32_t index; PinCntlrGetPinFunc() local [all...] |
/drivers/hdf_core/framework/support/platform/include/pin/ |
H A D | pin_core.h | 46 int32_t (*SetPinPull)(struct PinCntlr *cntlr, uint32_t index, enum PinPullType pullType); 47 int32_t (*GetPinPull)(struct PinCntlr *cntlr, uint32_t index, enum PinPullType *pullType); 48 int32_t (*SetPinStrength)(struct PinCntlr *cntlr, uint32_t index, uint32_t strength); 49 int32_t (*GetPinStrength)(struct PinCntlr *cntlr, uint32_t index, uint32_t *strength); 50 int32_t (*SetPinFunc)(struct PinCntlr *cntlr, uint32_t index, const char *funcName); 51 int32_t (*GetPinFunc)(struct PinCntlr *cntlr, uint32_t index, const char **funcName);
|