/base/security/huks/utils/list/ |
H A D | hks_double_list.c | 22 void InitializeDoubleList(struct DoubleList *node) in InitializeDoubleList() argument 24 if (node == NULL) { in InitializeDoubleList() 28 node->prev = node; in InitializeDoubleList() 29 node->next = node; in InitializeDoubleList() 32 void AddNodeAfterDoubleListHead(struct DoubleList *head, struct DoubleList *node) in AddNodeAfterDoubleListHead() argument 34 if ((head == NULL) || (node == NULL)) { in AddNodeAfterDoubleListHead() 42 head->next->prev = node; in AddNodeAfterDoubleListHead() 43 node in AddNodeAfterDoubleListHead() 48 AddNodeAtDoubleListTail(struct DoubleList *head, struct DoubleList *node) AddNodeAtDoubleListTail() argument 64 RemoveDoubleListNode(struct DoubleList *node) RemoveDoubleListNode() argument [all...] |
/drivers/hdf_core/framework/support/platform/src/regulator/ |
H A D | regulator_core.c | 40 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &manager->regulatorHead, struct RegulatorNode, node) {
in RegulatorNodeOpen() 57 int32_t RegulatorNodeClose(struct RegulatorNode *node)
in RegulatorNodeClose() argument 59 CHECK_NULL_PTR_RETURN_VALUE(node, HDF_ERR_INVALID_OBJECT);
in RegulatorNodeClose() 76 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &manager->regulatorHead, struct RegulatorNode, node) {
in RegulatorNodeListPrint() 91 int32_t RegulatorNodeSetParent(struct RegulatorNode *node)
in RegulatorNodeSetParent() argument 93 CHECK_NULL_PTR_RETURN_VALUE(node, HDF_ERR_INVALID_PARAM);
in RegulatorNodeSetParent() 104 if ((node->regulatorInfo.parentName != NULL)
in RegulatorNodeSetParent() 105 && (strlen(node->regulatorInfo.parentName) > 0)) {
in RegulatorNodeSetParent() 106 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &manager->regulatorHead, struct RegulatorNode, node) {
in RegulatorNodeSetParent() 107 if (strcmp(node in RegulatorNodeSetParent() 163 RegulatorNodeInitEnable(struct RegulatorNode *node) RegulatorNodeInitEnable() argument 204 RegulatorNodeInitProcess(struct RegulatorNode *node) RegulatorNodeInitProcess() argument 231 RegulatorNodeAdd(struct RegulatorNode *node) RegulatorNodeAdd() argument 342 RegulatorNodeStatusCb(struct RegulatorNode *node) RegulatorNodeStatusCb() argument 356 RegulatorNodeEnable(struct RegulatorNode *node) RegulatorNodeEnable() argument 395 RegulatorNodeDisable(struct RegulatorNode *node) RegulatorNodeDisable() argument 446 RegulatorNodeForceDisable(struct RegulatorNode *node) RegulatorNodeForceDisable() argument 501 RegulatorNodeSetVoltage(struct RegulatorNode *node, uint32_t minUv, uint32_t maxUv) RegulatorNodeSetVoltage() argument 541 RegulatorNodeGetVoltage(struct RegulatorNode *node, uint32_t *voltage) RegulatorNodeGetVoltage() argument 561 RegulatorNodeSetCurrent(struct RegulatorNode *node, uint32_t minUA, uint32_t maxUA) RegulatorNodeSetCurrent() argument 600 RegulatorNodeGetCurrent(struct RegulatorNode *node, uint32_t *regCurrent) RegulatorNodeGetCurrent() argument 619 RegulatorNodeGetStatus(struct RegulatorNode *node, uint32_t *status) RegulatorNodeGetStatus() argument 631 RegulatorNodeRegisterStatusChangeCb(struct RegulatorNode *node, RegulatorStatusChangecb cb) RegulatorNodeRegisterStatusChangeCb() argument 639 RegulatorTreeInfoInit(struct RegulatorNode *node) RegulatorTreeInfoInit() argument [all...] |
H A D | regulator_if.c | 24 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorClose() local 26 if (node == NULL) { in RegulatorClose() 27 HDF_LOGE("RegulatorClose: node is null!"); in RegulatorClose() 31 if (RegulatorNodeClose(node) != HDF_SUCCESS) { in RegulatorClose() 39 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorEnable() local 41 if (node == NULL) { in RegulatorEnable() 42 HDF_LOGE("RegulatorEnable: node is null!"); in RegulatorEnable() 46 int ret = RegulatorNodeEnable(node); in RegulatorEnable() 57 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorDisable() local 59 if (node in RegulatorDisable() 75 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorForceDisable() local 93 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorSetVoltage() local 117 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorGetVoltage() local 135 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorSetCurrent() local 159 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorGetCurrent() local 177 struct RegulatorNode *node = (struct RegulatorNode *)handle; RegulatorGetStatus() local [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | Generator.js | 37 astToObjConfigNodeType(nodeType, obj, node) { 43 obj.ref_ = node.refNodePath_; 49 NapiLog.logError('unknow node type'); 53 astToObjConfigNode(ret, child, node) { 55 child = node.child_; 60 ret.nodeType_ = node.nodeType_; 63 this.astToObjConfigNodeType(node.nodeType_, ret, node); 66 astToObj(node, parent) { 69 ret.type_ = node [all...] |
H A D | NodeTools.js | 49 function getRoot(node) {
50 while (node.parent_ !== undefined) {
51 node = node.parent_;
53 return node;
56 NodeTools.isElders = function (node, elders) {
57 while (node !== undefined) {
58 if (node === elders) {
61 node = node [all...] |
H A D | ModifyNode.js | 22 function getParent(node, dest, parent) { 26 function isNameRepeat(node, name) { 27 for (let i in node.value_) { 28 if (node.value_[i].name_ === name) { 35 ModifyNode.modifyName = function (files, root, node, name) { 36 let parent = getParent(root, node, null); 38 NapiLog.logError("Can't change root node name"); 41 node.name_ = name; 45 ModifyNode.modifyNodeType = function (files, root, node, type) { 46 let parent = getParent(root, node, nul [all...] |
/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_permission.c | 25 static int PermissionNodeCompareIndex(ListNode *node, void *data) in PermissionNodeCompareIndex() argument 27 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareIndex() 31 static int PermissionNodeCompareName(ListNode *node, void *data) in PermissionNodeCompareName() argument 33 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareName() 41 static int PermissionNodeCompareProc(ListNode *node, ListNode *newNode) in PermissionNodeCompareProc() argument 43 SandboxPermissionNode *permissionNode = (SandboxPermissionNode *)ListEntry(node, SandboxMountNode, node); in PermissionNodeCompareProc() 44 SandboxPermissionNode *newPermissionNode = (SandboxPermissionNode *)ListEntry(newNode, SandboxMountNode, node); in PermissionNodeCompareProc() 62 SandboxPermissionNode *node = (SandboxPermissionNode *)CreateSandboxSection( AddSandboxPermissionNode() local 69 SandboxPermissionNode *node = (SandboxPermissionNode *)calloc(1, len); AddSandboxPermissionNode() local 84 ListNode *node = queue->front.next; DeleteSandboxPermissions() local 103 ListNode *node = queue->front.next; PermissionRenumber() local 125 ListNode *node = OH_ListFind(&queue->front, (void *)permission, PermissionNodeCompareName); GetPermissionNodeInQueue() local 137 ListNode *node = OH_ListFind(&queue->front, (void *)&index, PermissionNodeCompareIndex); GetPermissionNodeInQueueByIndex() local [all...] |
/base/update/updater/test/unittest/utils/json/ |
H A D | utils_json_test.cpp | 57 JsonNode node(str); in HWTEST_F() 58 EXPECT_EQ(node.Key(), std::nullopt); in HWTEST_F() 59 EXPECT_EQ(node["key"].Key(), "key"); in HWTEST_F() 63 JsonNode node(str); in HWTEST_F() 64 EXPECT_EQ(node.Key(), std::nullopt); in HWTEST_F() 71 JsonNode node(str); in HWTEST_F() 72 EXPECT_EQ((node["key"] == 1), false); in HWTEST_F() 78 JsonNode node(str); in HWTEST_F() 79 EXPECT_EQ(node["key"].Type(), NodeType::STRING); in HWTEST_F() 80 EXPECT_EQ(node["ke in HWTEST_F() [all...] |
/base/update/updater/test/fuzztest/updaterutils_fuzzer/ |
H A D | updater_utils_fuzzer.cpp | 140 JsonNode node(str); in TestJsonNodeValueKey() 141 node.Key(); in TestJsonNodeValueKey() 142 node["key"].Key(); in TestJsonNodeValueKey() 146 JsonNode node(str); in TestJsonNodeValueKey() 147 node.Key(); in TestJsonNodeValueKey() 154 JsonNode node(str); in TestJsonNodeKey() 155 node["key"]; in TestJsonNodeKey() 161 JsonNode node(str); in TestJsonNodeValueTypeStr() 162 node["key"].Type(); in TestJsonNodeValueTypeStr() 163 node["ke in TestJsonNodeValueTypeStr() [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_map.c | 54 static void MapAddNode(Map *map, struct MapNode *node) in MapAddNode() argument 56 uint32_t idx = MapHashIdx(map, node->hash); in MapAddNode() 57 node->next = map->nodes[idx]; in MapAddNode() 58 map->nodes[idx] = node; in MapAddNode() 79 struct MapNode *node = NULL; in MapResize() local 82 /* remap node with new map size */ in MapResize() 84 node = tmp[i]; in MapResize() 85 while (node != NULL) { in MapResize() 86 next = node->next; in MapResize() 87 MapAddNode(map, node); in MapResize() 102 struct MapNode *node = (struct MapNode *)OsalMemCalloc(sizeof(*node) + keySize + valueSize); MapCreateNode() local 138 struct MapNode *node = NULL; MapSet() local 195 struct MapNode *node = NULL; MapGet() local 220 struct MapNode *node = NULL; MapErase() local 264 struct MapNode *node = NULL; MapDelete() local [all...] |
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/ |
H A D | schedule_node_fuzzer.cpp | 59 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetScheduleId() local 60 if (node != nullptr) { in FuzzScheduleNodeGetScheduleId() 61 node->GetScheduleId(); in FuzzScheduleNodeGetScheduleId() 69 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetContextId() local 70 if (node != nullptr) { in FuzzScheduleNodeGetContextId() 71 node->GetContextId(); in FuzzScheduleNodeGetContextId() 79 auto node = GetScheduleNode(parcel); in FuzzScheduleNodeGetAuthType() local 80 if (node != nullptr) { in FuzzScheduleNodeGetAuthType() 81 node->GetAuthType(); in FuzzScheduleNodeGetAuthType() 89 auto node in FuzzScheduleNodeGetExecutorMatcher() local 99 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetScheduleMode() local 109 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetCollectorExecutor() local 119 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetVerifyExecutor() local 129 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetTemplateIdList() local 139 auto node = GetScheduleNode(parcel); FuzzScheduleNodeGetCurrentScheduleState() local 149 auto node = GetScheduleNode(parcel); FuzzScheduleNodeStartSchedule() local 159 auto node = GetScheduleNode(parcel); FuzzScheduleNodeStopSchedule() local 172 auto node = GetScheduleNode(parcel); FuzzScheduleNodeSendMessage() local 186 auto node = GetScheduleNode(parcel); FuzzScheduleNodeContinueSchedule() local [all...] |
H A D | resource_node_fuzzer.cpp | 115 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetExecutorIndex() local 116 if (node != nullptr) { in FuzzResourceNodeGetExecutorIndex() 117 node->GetExecutorIndex(); in FuzzResourceNodeGetExecutorIndex() 125 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetOwnerDeviceId() local 126 if (node != nullptr) { in FuzzResourceNodeGetOwnerDeviceId() 127 node->GetOwnerDeviceId(); in FuzzResourceNodeGetOwnerDeviceId() 135 auto node = GetResourceNode(parcel); in FuzzResourceNodeGetOwnerPid() local 136 if (node != nullptr) { in FuzzResourceNodeGetOwnerPid() 137 node->GetOwnerPid(); in FuzzResourceNodeGetOwnerPid() 145 auto node in FuzzResourceNodeGetAuthType() local 155 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorRole() local 165 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorSensorHint() local 175 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorMatcher() local 185 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorEsl() local 195 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorPublicKey() local 205 auto node = GetResourceNode(parcel); FuzzResourceNodeGetExecutorDeviceUdid() local 221 auto node = GetResourceNode(parcel); FuzzResourceNodeBeginExecute() local 235 auto node = GetResourceNode(parcel); FuzzResourceNodeSendData() local 249 auto node = GetResourceNode(parcel); FuzzResourceNodeEndExecute() local 262 auto node = GetResourceNode(parcel); FuzzResourceNodeSetProperty() local 276 auto node = GetResourceNode(parcel); FuzzResourceNodeGetProperty() local 286 auto node = GetResourceNode(parcel); FuzzResourceNodeDetach() local [all...] |
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_session_mgr.c | 46 static void FreeSessionNode(struct CmSessionNode **node) in FreeSessionNode() argument 48 if ((node == NULL) || (*node == NULL)) { in FreeSessionNode() 52 CM_FREE_PTR((*node)->handle.data); in FreeSessionNode() 53 CM_FREE_PTR((*node)->info.uri.data); in FreeSessionNode() 54 CM_FREE_PTR(*node); in FreeSessionNode() 107 static int32_t ConstructSessionInfo(const struct CmSessionNodeInfo *info, struct CmSessionNode *node) in ConstructSessionInfo() argument 117 node->info.userId = info->userId; in ConstructSessionInfo() 118 node->info.uid = info->uid; in ConstructSessionInfo() 119 node in ConstructSessionInfo() 124 ConstructHandle(const struct CmBlob *handle, struct CmSessionNode *node) ConstructHandle() argument 141 struct CmSessionNode *node = (struct CmSessionNode *)CMMalloc(sizeof(struct CmSessionNode)); CmCreateSession() local 188 IsSameCaller(const struct CmSessionNodeInfo *info, const struct CmSessionNode *node) IsSameCaller() argument 195 struct CmSessionNode *node = NULL; CmQuerySession() local 210 struct CmSessionNode *node = NULL; CmDeleteSession() local 224 IsNeedDelete(enum CmSessionDeleteType deleteType, const struct CmSessionNodeInfo *info, const struct CmSessionNode *node) IsNeedDelete() argument 244 struct CmSessionNode *node = *nodeSession; DeleteSessionNode() local 255 struct CmSessionNode *node = NULL; CmDeleteSessionByNodeInfo() local [all...] |
/base/startup/appspawn/standard/ |
H A D | appspawn_appmgr.c | 78 static void SpawningQueueDestroy(ListNode *node) in SpawningQueueDestroy() argument 80 AppSpawningCtx *property = ListEntry(node, AppSpawningCtx, node); in SpawningQueueDestroy() 84 static void ExtDataDestroy(ListNode *node) in ExtDataDestroy() argument 86 AppSpawnExtData *extData = ListEntry(node, AppSpawnExtData, node); in ExtDataDestroy() 111 ListNode *node = g_appSpawnMgr->appQueue.next; in TraversalSpawnedProcess() local 112 while (node != &g_appSpawnMgr->appQueue) { in TraversalSpawnedProcess() 113 ListNode *next = node->next; in TraversalSpawnedProcess() 114 AppSpawnedProcess *appInfo = ListEntry(node, AppSpawnedProces in TraversalSpawnedProcess() 120 AppInfoPidComparePro(ListNode *node, void *data) AppInfoPidComparePro() argument 127 AppInfoNameComparePro(ListNode *node, void *data) AppInfoNameComparePro() argument 133 AppInfoCompareProc(ListNode *node, ListNode *newNode) AppInfoCompareProc() argument 146 AppSpawnedProcess *node = (AppSpawnedProcess *)calloc(1, sizeof(AppSpawnedProcess) + len + 1); AddSpawnedProcess() local 164 TerminateSpawnedProcess(AppSpawnedProcess *node) TerminateSpawnedProcess() argument 189 ListNode *node = OH_ListFind(&g_appSpawnMgr->appQueue, &pid, AppInfoPidComparePro); GetSpawnedProcess() local 199 ListNode *node = OH_ListFind(&g_appSpawnMgr->appQueue, (void *)name, AppInfoNameComparePro); GetSpawnedProcessByName() local 253 ListNode *node = OH_ListFind(&g_appSpawnMgr->diedQueue, &pid, AppInfoPidComparePro); GetProcessTerminationStatus() local 334 AppPropertyComparePid(ListNode *node, void *data) AppPropertyComparePid() argument 346 ListNode *node = OH_ListFind(&g_appSpawnMgr->appSpawnQueue, (void *)&pid, AppPropertyComparePid); GetAppSpawningCtxByPid() local 354 ListNode *node = g_appSpawnMgr->appSpawnQueue.next; AppSpawningCtxTraversal() local 363 DumpAppSpawnQueue(ListNode *node, void *data) DumpAppSpawnQueue() argument 374 DumpAppQueue(ListNode *node, void *data) DumpAppQueue() argument 384 DumpExtData(ListNode *node, void *data) DumpExtData() argument [all...] |
/base/startup/init/services/utils/ |
H A D | init_hashmap.c | 51 HashNode *node = (HashNode *)root;
in GetHashNodeByNode() local 52 while (node != NULL) {
in GetHashNodeByNode() 53 int ret = tab->nodeCompare(node, new);
in GetHashNodeByNode() 55 return node;
in GetHashNodeByNode() 57 node = node->next;
in GetHashNodeByNode() 65 HashNode *node = (HashNode *)root;
in GetHashNodeByKey() local 66 while (node != NULL) {
in GetHashNodeByKey() 67 int ret = keyCompare(node, key);
in GetHashNodeByKey() 69 return node;
in GetHashNodeByKey() 76 OH_HashMapAdd(HashMapHandle handle, HashNode *node) OH_HashMapAdd() argument 106 HashNode *node = tab->buckets[hashCode]; OH_HashMapRemove() local 140 HashNode *node = root; HashListFree() local 171 OH_HashMapTraverse(HashMapHandle handle, void (*hashNodeTraverse)(const HashNode *node, const void *context), const void *context) OH_HashMapTraverse() argument 177 HashNode *node = tab->buckets[i]; OH_HashMapTraverse() local 191 HashNode *node = tab->buckets[i]; OH_HashMapIsEmpty() local [all...] |
/drivers/hdf_core/framework/include/utils/ |
H A D | hcs_macro.h | 30 * 1. Macro definition for determining whether a node exists in the configuration tree: The macro name is a string
31 * consisting of the node name and <b>_exists</b>. The value of the macro definition is <b>1</b>.
32 * 2. Macro definition for obtaining the node attributes in the configuration tree. The macro name is a string
33 * consisting of the node name and attribute name. The macro value is the attribute of the node.
34 * 3. Macro definition for determining whether a node attribute exists. The macro name is a string consisting of
35 * the node attribute name and <b>_exists</b>. The value of the macro definition is <b>1</b>.
37 * the node name and <b>_foreach_child</b>. The value of the macro definition is <b>func (child node)</b>.
39 * consisting of the node attribut [all...] |
/base/useriam/user_auth_framework/test/unittest/services/mocks/ |
H A D | mock_resource_node.h | 52 auto node = std::make_shared<MockResourceNode>(); in CreateWithExecuteIndex() 53 EXPECT_CALL(*node, GetExecutorIndex()).WillRepeatedly(Return(executorId)); in CreateWithExecuteIndex() 54 EXPECT_CALL(*node, GetAuthType()).WillRepeatedly(Return(PIN)); in CreateWithExecuteIndex() 55 EXPECT_CALL(*node, GetExecutorRole()).WillRepeatedly(Return(COLLECTOR)); in CreateWithExecuteIndex() 56 EXPECT_CALL(*node, GetExecutorMatcher()).WillRepeatedly(Return(0)); in CreateWithExecuteIndex() 57 EXPECT_CALL(*node, GetExecutorSensorHint()).WillRepeatedly(Return(0)); in CreateWithExecuteIndex() 58 EXPECT_CALL(*node, DetachFromDriver()).Times(detach ? 1 : 0); in CreateWithExecuteIndex() 59 return node; in CreateWithExecuteIndex() 66 auto node = std::make_shared<MockResourceNode>(); in CreateWithExecuteIndex() 68 EXPECT_CALL(*node, GetExecutorInde in CreateWithExecuteIndex() [all...] |
/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | device_auth_ext_mock.c | 41 ExtPluginNode *node = (ExtPluginNode *)HcMalloc(sizeof(ExtPluginNode), 0); in CreateNode() local 42 if (node == NULL) { in CreateNode() 43 LOGE("Failed to malloc plugin node!"); in CreateNode() 46 node->plugin = (ExtPlugin *)HcMalloc(sizeof(ExtPlugin), 0); in CreateNode() 47 if (node->plugin == NULL) { in CreateNode() 49 HcFree(node); in CreateNode() 52 node->plugin->pluginType = plugType; in CreateNode() 53 node->plugin->init = InitPlugin; in CreateNode() 54 node->plugin->destroy = DestroyPlugin; in CreateNode() 55 node in CreateNode() 59 AddPlugin(ExtPluginList *list, ExtPluginNode *node) AddPlugin() argument 75 ExtPluginNode *node = list; DestroyList() local [all...] |
/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | device_resource_if.h | 53 * @brief Defines the attributes of a tree node in the configuration tree. 55 * The tree node attributes are saved in a linked list. The information about each node in the linked list contains 61 struct DeviceResourceAttr *next; /**< Pointer to the next attribute of the node in the configuration tree. */ 65 * @brief Defines a tree node in the configuration tree. 67 * The tree node information includes the node name, unique node ID, node attributes, parent node, chil [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/regulator/ |
H A D | regulator_adapter.c | 26 static int32_t LinuxRegulatorOpen(struct RegulatorNode *node) in LinuxRegulatorOpen() argument 28 if (node == NULL || node->priv == NULL) { in LinuxRegulatorOpen() 29 HDF_LOGE("LinuxRegulatorOpen: node or priv is null!"); in LinuxRegulatorOpen() 33 struct LinuxRegulatorInfo *info = (struct LinuxRegulatorInfo *)node->priv; in LinuxRegulatorOpen() 56 static int32_t LinuxRegulatorClose(struct RegulatorNode *node) in LinuxRegulatorClose() argument 58 if (node == NULL || node->priv == NULL) { in LinuxRegulatorClose() 59 HDF_LOGE("LinuxRegulatorClose: node or priv is null!"); in LinuxRegulatorClose() 63 struct LinuxRegulatorInfo *info = (struct LinuxRegulatorInfo *)node in LinuxRegulatorClose() 75 LinuxRegulatorRemove(struct RegulatorNode *node) LinuxRegulatorRemove() argument 93 LinuxRegulatorEnable(struct RegulatorNode *node) LinuxRegulatorEnable() argument 118 LinuxRegulatorDisable(struct RegulatorNode *node) LinuxRegulatorDisable() argument 143 LinuxRegulatorForceDisable(struct RegulatorNode *node) LinuxRegulatorForceDisable() argument 165 LinuxRegulatorSetVoltage(struct RegulatorNode *node, uint32_t minUv, uint32_t maxUv) LinuxRegulatorSetVoltage() argument 185 LinuxRegulatorGetVoltage(struct RegulatorNode *node, uint32_t *voltage) LinuxRegulatorGetVoltage() argument 207 LinuxRegulatorSetCurrent(struct RegulatorNode *node, uint32_t minUa, uint32_t maxUa) LinuxRegulatorSetCurrent() argument 226 LinuxRegulatorGetCurrent(struct RegulatorNode *node, uint32_t *regCurrent) LinuxRegulatorGetCurrent() argument 248 LinuxRegulatorGetStatus(struct RegulatorNode *node, uint32_t *status) LinuxRegulatorGetStatus() argument 300 LinuxRegulatorReadHcs(struct RegulatorNode *regNode, const struct DeviceResourceNode *node) LinuxRegulatorReadHcs() argument 359 LinuxRegulatorReadAdapterHcs(struct LinuxRegulatorInfo *info, const struct DeviceResourceNode *node) LinuxRegulatorReadAdapterHcs() argument 388 LinuxRegulatorParseAndInit(struct HdfDeviceObject *device, const struct DeviceResourceNode *node) LinuxRegulatorParseAndInit() argument 470 LinuxRegulatorParseAndRelease(struct HdfDeviceObject *device, const struct DeviceResourceNode *node) LinuxRegulatorParseAndRelease() argument [all...] |
/base/inputmethod/imf/services/include/ |
H A D | sys_cfg_parser.h | 33 bool Unmarshal(cJSON *node) override 35 GetValue(node, GET_NAME(systemInputMethodConfigAbility), systemInputMethodConfigAbility); 36 GetValue(node, GET_NAME(defaultInputMethod), defaultInputMethod); 37 GetValue(node, GET_NAME(enableInputMethodFeature), enableInputMethodFeature); 38 GetValue(node, GET_NAME(enableFullExperienceFeature), enableFullExperienceFeature); 44 bool Unmarshal(cJSON *node) override 46 return GetValue(node, GET_NAME(systemConfig), systemConfig); 54 bool Unmarshal(cJSON *node) override 57 auto ret = GetValue(node, GET_NAME(inputType), typeTemp); 62 ret = GetValue(node, GET_NAM [all...] |
/drivers/hdf_core/framework/model/camera/parser/src/ |
H A D | camera_config_parser.c | 40 static int32_t ParseCameraSensorDeviceConfig(const struct DeviceResourceNode *node, in ParseCameraSensorDeviceConfig() argument 45 ret = drsOps->GetString(node, "name", &sensorConfig->name, NULL); in ParseCameraSensorDeviceConfig() 47 ret = drsOps->GetUint8(node, "id", &sensorConfig->id, 0); in ParseCameraSensorDeviceConfig() 49 ret = drsOps->GetUint8(node, "exposure", &sensorConfig->exposure, 0); in ParseCameraSensorDeviceConfig() 51 ret = drsOps->GetUint8(node, "mirror", &sensorConfig->mirror, 0); in ParseCameraSensorDeviceConfig() 53 ret = drsOps->GetUint8(node, "gain", &sensorConfig->gain, 0); in ParseCameraSensorDeviceConfig() 55 sensorConfig->ctrlValueNum = drsOps->GetElemNum(node, "ctrlValue"); in ParseCameraSensorDeviceConfig() 60 ret = drsOps->GetUint32Array(node, "ctrlValue", sensorConfig->ctrlValue, sensorConfig->ctrlValueNum, 0); in ParseCameraSensorDeviceConfig() 71 static int32_t ParseCameraIspDeviceConfig(const struct DeviceResourceNode *node, in ParseCameraIspDeviceConfig() argument 76 ret = drsOps->GetString(node, "nam in ParseCameraIspDeviceConfig() 112 ParseCameraVcmDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct VcmDeviceConfig *vcmConfig) ParseCameraVcmDeviceConfig() argument 145 ParseCameraLensDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct LensDeviceConfig *lensConfig) ParseCameraLensDeviceConfig() argument 170 ParseCameraFlashDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct FlashDeviceConfig *flashConfig) ParseCameraFlashDeviceConfig() argument 197 ParseCameraStreamDeviceConfigs(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct StreamDeviceConfig *streamConfig) ParseCameraStreamDeviceConfigs() argument 218 ParseCameraStreamDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct StreamDeviceConfig *streamConfig) ParseCameraStreamDeviceConfig() argument 257 ParseCameraSensorConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraSensorConfig *sensorConfig) ParseCameraSensorConfig() argument 286 ParseCameraIspConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraIspConfig *ispConfig) ParseCameraIspConfig() argument 315 ParseCameraLensConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraLensConfig *lensConfig) ParseCameraLensConfig() argument 344 ParseCameraVcmConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraVcmConfig *vcmConfig) ParseCameraVcmConfig() argument 373 ParseCameraFlashConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraFlashConfig *flashConfig) ParseCameraFlashConfig() argument 402 ParseCameraStreamConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraStreamConfig *streamConfig) ParseCameraStreamConfig() argument 431 ParseCameraDeviceConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraDeviceConfig *deviceConfig) ParseCameraDeviceConfig() argument 466 ParseCameraConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct CameraConfigRoot *cameraConfig) ParseCameraConfig() argument 494 HdfParseCameraConfig(const struct DeviceResourceNode *node) HdfParseCameraConfig() argument [all...] |
/base/startup/init/interfaces/innerkits/include/ |
H A D | list.h | 34 * └------prev-| node |<-prev-| node |<-prev-| node |<-prev----| 42 * ListNode node; 59 * static int TestListItemCompareProc(ListNode *node, ListNode *newNode) 61 * TEST_LIST_ITEM *left = (TEST_LIST_ITEM *)node; 69 * @brief Double linked list node 76 #define ListEmpty(node) ((node).next == &(node) [all...] |
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
H A D | hdf_wlan_config_parser.c | 14 static int32_t ParseWlanStaConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanStation *staConfig) in ParseWlanStaConfig() argument 19 if (node == NULL || staConfig == NULL) { in ParseWlanStaConfig() 20 HDF_LOGE("%s: invalid node or staConfig!", __func__); in ParseWlanStaConfig() 28 ret = drsOps->GetString(node, "name", &staConfig->name, NULL); in ParseWlanStaConfig() 33 ret = drsOps->GetUint8(node, "mode", &staConfig->mode, 0); in ParseWlanStaConfig() 42 static int32_t ParseWlanApConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanHostAp *apConfig) in ParseWlanApConfig() argument 47 if (node == NULL || apConfig == NULL) { in ParseWlanApConfig() 48 HDF_LOGE("%s: invalid node or apConfig!", __func__); in ParseWlanApConfig() 56 ret = drsOps->GetString(node, "name", &apConfig->name, NULL); in ParseWlanApConfig() 61 ret = drsOps->GetUint8(node, "mod in ParseWlanApConfig() 81 ParseWlanP2PConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanP2P *p2pConfig) ParseWlanP2PConfig() argument 109 ParseWlanMac80211Config(const struct DeviceResourceNode *node, struct HdfConfigWlanMac80211 *macConfig) ParseWlanMac80211Config() argument 132 ParseWlanPhyConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanPhy *phyConfig) ParseWlanPhyConfig() argument 155 ParseWlanModuleConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanModuleConfig *modConfig) ParseWlanModuleConfig() argument 214 ParseWlanPowerConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanPower *primaryPowerConfig) ParseWlanPowerConfig() argument 251 ParseWlanPowersConfig(const struct DeviceResourceNode *node, struct HdfConfWlanPowers *powersConfig) ParseWlanPowersConfig() argument 286 ParseWlanResetConfig(const struct DeviceResourceNode *node, struct HdfConfWlanRest *resetConfig) ParseWlanResetConfig() argument 323 ParseWlanBusConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanBus *busConfig) ParseWlanBusConfig() argument 367 ParseWlanDevInstConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanDevInst *devLstConfig) ParseWlanDevInstConfig() argument 421 ParseWlanDevListConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanDeviceList *devConfig) ParseWlanDevListConfig() argument 443 ParseWlanChipBusConfig(const struct DeviceResourceNode *node, struct HdfConfWlanBusArgs *busArgs) ParseWlanChipBusConfig() argument 468 ParseWlanChipsCompsConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanChipInst *chipInst) ParseWlanChipsCompsConfig() argument 500 ParseWlanChipsConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanChipList *chipList) ParseWlanChipsConfig() argument 524 ParseWlanConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanConfig *wlanConfig) ParseWlanConfig() argument 564 HdfParseWlanConfig(const struct DeviceResourceNode *node) HdfParseWlanConfig() argument [all...] |
/drivers/hdf_core/framework/support/platform/include/regulator/ |
H A D | regulator_core.h | 93 struct DListHead node;
member 100 int32_t (*open)(struct RegulatorNode *node);
101 int32_t (*close)(struct RegulatorNode *node);
102 int32_t (*release)(struct RegulatorNode *node);
103 int32_t (*enable)(struct RegulatorNode *node);
104 int32_t (*disable)(struct RegulatorNode *node);
105 int32_t (*forceDisable)(struct RegulatorNode *node);
106 int32_t (*setVoltage)(struct RegulatorNode *node, uint32_t minUv, uint32_t maxUv);
107 int32_t (*getVoltage)(struct RegulatorNode *node, uint32_t *voltage);
108 int32_t (*setCurrent)(struct RegulatorNode *node, uint32_ [all...] |