Home
last modified time | relevance | path

Searched refs:node (Results 1 - 25 of 254) sorted by relevance

1234567891011

/drivers/hdf_core/framework/support/platform/src/regulator/
H A Dregulator_core.c40 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 Dregulator_if.c24 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 DGenerator.js37 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 DNodeTools.js49 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 DModifyNode.js22 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...]
/drivers/hdf_core/framework/utils/src/
H A Dhdf_map.c54 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...]
/drivers/hdf_core/framework/include/utils/
H A Dhcs_macro.h30 * 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...]
/drivers/hdf_core/interfaces/inner_api/utils/
H A Ddevice_resource_if.h53 * @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...]
H A Dhcs_tree_if.h24 bool HcsGetBool(const struct DeviceResourceNode *node, const char *attrName);
25 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def);
26 int32_t HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
28 int32_t HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len,
30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def);
31 int32_t HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
33 int32_t HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len,
35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def);
36 int32_t HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index,
38 int32_t HcsGetUint32Array(const struct DeviceResourceNode *node, cons
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/regulator/
H A Dregulator_adapter.c26 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...]
/drivers/hdf_core/framework/model/camera/parser/src/
H A Dcamera_config_parser.c40 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...]
/drivers/hdf_core/framework/model/network/wifi/platform/src/
H A Dhdf_wlan_config_parser.c14 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 Dregulator_core.h93 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...]
/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dlinked_list.c39 LinkedListNode *node = Malloc(sizeof(LinkedListNode)); in InsertNode() local
40 if (node == NULL) { in InsertNode()
44 node->data = data; in InsertNode()
45 node->next = list->head; in InsertNode()
46 list->head = node; in InsertNode()
62 LinkedListNode *node = list->head; in RemoveNode() local
63 while (node != NULL) { in RemoveNode()
64 if (matchFunc(node->data, condition)) { in RemoveNode()
67 pre = node; in RemoveNode()
68 node in RemoveNode()
166 DestroyLinkedListNode(const LinkedList *list, LinkedListNode *node) DestroyLinkedListNode() argument
185 LinkedListNode *node = list->head; DestroyLinkedList() local
[all...]
/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_attribute_macro.h43 #define HDF_DEAL_DEVICE_NODE(node, deviceNodes, host, retCode) \
51 deviceNode->policy = HCS_PROP(node, policy); \
52 deviceNode->priority = HCS_PROP(node, priority); \
53 deviceNode->preload = HCS_PROP(node, preload); \
54 deviceNode->permission = HCS_PROP(node, permission); \
55 deviceNode->moduleName = HCS_PROP(node, moduleName); \
56 deviceNode->svcName = HCS_PROP(node, serviceName); \
57 deviceNode->deviceMatchAttr = HCS_PROP(node, deviceMatchAttr); \
58 deviceNode->deviceName = HCS_PROP(node, nodeName); \
62 #define HDF_DEAL_DEVICE(node, device
[all...]
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dregulator_virtual.c33 static int32_t VirtualRegulatorEnable(struct RegulatorNode *node) in VirtualRegulatorEnable() argument
35 if (node == NULL) { in VirtualRegulatorEnable()
36 HDF_LOGE("VirtualRegulatorEnable node null\n"); in VirtualRegulatorEnable()
40 node->regulatorInfo.status = REGULATOR_STATUS_ON; in VirtualRegulatorEnable()
41 HDF_LOGD("VirtualRegulatorEnable %s success !\n", node->regulatorInfo.name); in VirtualRegulatorEnable()
45 static int32_t VirtualRegulatorDisable(struct RegulatorNode *node) in VirtualRegulatorDisable() argument
47 if (node == NULL) { in VirtualRegulatorDisable()
48 HDF_LOGE("VirtualRegulatorDisable node null\n"); in VirtualRegulatorDisable()
52 node->regulatorInfo.status = REGULATOR_STATUS_OFF; in VirtualRegulatorDisable()
53 HDF_LOGD("VirtualRegulatorDisable %s success !\n", node in VirtualRegulatorDisable()
57 VirtualRegulatorSetVoltage(struct RegulatorNode *node, uint32_t minUv, uint32_t maxUv) VirtualRegulatorSetVoltage() argument
69 VirtualRegulatorGetVoltage(struct RegulatorNode *node, uint32_t *voltage) VirtualRegulatorGetVoltage() argument
81 VirtualRegulatorSetCurrent(struct RegulatorNode *node, uint32_t minUa, uint32_t maxUa) VirtualRegulatorSetCurrent() argument
93 VirtualRegulatorGetCurrent(struct RegulatorNode *node, uint32_t *current) VirtualRegulatorGetCurrent() argument
105 VirtualRegulatorGetStatus(struct RegulatorNode *node, uint32_t *status) VirtualRegulatorGetStatus() argument
127 VirtualRegulatorContinueReadHcs(struct RegulatorNode *regNode, const struct DeviceResourceNode *node) VirtualRegulatorContinueReadHcs() argument
173 VirtualRegulatorReadHcs(struct RegulatorNode *regNode, const struct DeviceResourceNode *node) VirtualRegulatorReadHcs() argument
223 VirtualRegulatorParseAndInit(struct HdfDeviceObject *device, const struct DeviceResourceNode *node) VirtualRegulatorParseAndInit() argument
[all...]
/drivers/peripheral/codec/hal/src/
H A Dcodec_adapter.cpp30 std::shared_ptr<ComponentNode> node; member
46 tempNode->node = std::make_shared<ComponentNode>(callbacks, appData, compName); in OMXAdapterCreateComponent()
47 if (tempNode->node == nullptr) { in OMXAdapterCreateComponent()
53 auto err = g_mgr.CreateComponentInstance(compName, &ComponentNode::callbacks_, tempNode->node.get(), &comp); in OMXAdapterCreateComponent()
60 tempNode->node->SetHandle(static_cast<OMX_HANDLETYPE>(comp)); in OMXAdapterCreateComponent()
73 if (codecNode->node == nullptr) { in OmxAdapterDestroyComponent()
76 CODEC_LOGE("node is null"); in OmxAdapterDestroyComponent()
79 OMX_HANDLETYPE comp = codecNode->node->GetHandle(); in OmxAdapterDestroyComponent()
80 codecNode->node = nullptr; in OmxAdapterDestroyComponent()
96 if (codecNode == nullptr || codecNode->node in OmxAdapterComponentVersion()
[all...]
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_tree_if.c15 static struct DeviceResourceAttr *GetAttrInNode(const struct DeviceResourceNode *node, const char *attrName) in GetAttrInNode() argument
18 if ((node == NULL) || (attrName == NULL)) { in GetAttrInNode()
21 for (attr = node->attrData; attr != NULL; attr = attr->next) { in GetAttrInNode()
29 bool HcsGetBool(const struct DeviceResourceNode *node, const char *attrName) in HcsGetBool() argument
32 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrName); in HcsGetBool()
34 HDF_LOGE("%s failed, the node or attrName is NULL", __func__); in HcsGetBool()
56 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint8_t def) in HcsGetUint8() argument
58 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrName); in HcsGetUint8()
69 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint16_t def) in HcsGetUint16() argument
71 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrNam in HcsGetUint16()
82 HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t def) HcsGetUint32() argument
95 HcsGetUint64(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint64_t def) HcsGetUint64() argument
132 HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint8_t *value, uint8_t def) HcsGetUint8ArrayElem() argument
153 HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint16_t *value, uint16_t def) HcsGetUint16ArrayElem() argument
174 HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint32_t *value, uint32_t def) HcsGetUint32ArrayElem() argument
195 HcsGetUint64ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, uint64_t *value, uint64_t def) HcsGetUint64ArrayElem() argument
222 HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, uint32_t len, uint8_t def) HcsGetUint8Array() argument
240 HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, uint32_t len, uint16_t def) HcsGetUint16Array() argument
258 HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, uint32_t len, uint32_t def) HcsGetUint32Array() argument
276 HcsGetUint64Array(const struct DeviceResourceNode *node, const char *attrName, uint64_t *value, uint32_t len, uint64_t def) HcsGetUint64Array() argument
295 HcsGetStringArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t index, const char **value, const char *def) HcsGetStringArrayElem() argument
312 HcsGetString(const struct DeviceResourceNode *node, const char *attrName, const char **value, const char *def) HcsGetString() argument
325 HcsGetElemNum(const struct DeviceResourceNode *node, const char *attrName) HcsGetElemNum() argument
338 GetAttrValueInNode(const struct DeviceResourceNode *node, const char *attrValue) GetAttrValueInNode() argument
363 HcsGetNodeByMatchAttr(const struct DeviceResourceNode *node, const char *attrValue) HcsGetNodeByMatchAttr() argument
381 HcsGetChildNode(const struct DeviceResourceNode *node, const char *nodeName) HcsGetChildNode() argument
397 HcsGetNodeByRefAttr(const struct DeviceResourceNode *node, const char *attrName) HcsGetNodeByRefAttr() argument
[all...]
/drivers/hdf_core/framework/model/display/driver/lcdkit/
H A Dlcdkit_parse_config.c13 #define PARSE_PANEL_SYMBOL(node, ops, symbol, out) do { \
14 if ((ops)->GetUint32((node), (symbol), (out), 0)) { \
97 static int32_t ParseCmdConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParseCmdConfig() argument
100 int32_t len = drsOps->GetElemNum(node, name); in ParseCmdConfig()
106 if (drsOps->GetUint8Array(node, name, array, len, 0) != HDF_SUCCESS) { in ParseCmdConfig()
120 static int32_t ParsePanelInfo(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, in ParsePanelInfo() argument
124 PARSE_PANEL_SYMBOL(node, drsOps, "width", &info->width); in ParsePanelInfo()
125 PARSE_PANEL_SYMBOL(node, drsOps, "height", &info->height); in ParsePanelInfo()
126 PARSE_PANEL_SYMBOL(node, drsOps, "hbp", &info->hbp); in ParsePanelInfo()
127 PARSE_PANEL_SYMBOL(node, drsOp in ParsePanelInfo()
153 ParsePowerSetting(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct PowerSetting *setting) ParsePowerSetting() argument
190 ParsePowerSequeue(const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, const char *name, struct PowerSequeue *seq) ParsePowerSequeue() argument
227 ParsePanelConfig(const struct DeviceResourceNode *node, struct PanelConfig *cfg) ParsePanelConfig() argument
264 ParseLcdConfig(const struct DeviceResourceNode *node, struct PanelConfig *cfg) ParseLcdConfig() argument
[all...]
/drivers/hdf_core/adapter/uhdf2/host/src/
H A Ddevhost_dump.c31 struct DListHead node; member
55 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_dumpHostNode.list, struct DumpServiceNode, node) { in DevHostDumpDeInit()
56 DListRemove(&pos->node); in DevHostDumpDeInit()
72 DLIST_FOR_EACH_ENTRY(pos, &g_dumpHostNode.list, struct DumpServiceNode, node) { in DevHostCheckDumpExist()
93 struct DumpServiceNode *node = (struct DumpServiceNode *)OsalMemCalloc(sizeof(*node)); in DevHostRegisterDumpService() local
94 if (node == NULL) { in DevHostRegisterDumpService()
99 node->dumpService = dump; in DevHostRegisterDumpService()
100 node->servName = HdfStringCopy(servName); in DevHostRegisterDumpService()
101 if (node in DevHostRegisterDumpService()
[all...]
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Drtc_driver_test.c43 static int32_t RtcTestReadConfig(struct RtcTestConfig *config, const struct DeviceResourceNode *node) in RtcTestReadConfig() argument
53 ret = drsOps->GetUint32(node, "time", &config->time, 0); in RtcTestReadConfig()
58 ret = drsOps->GetUint32(node, "maxYear", &config->maxYear, 0); in RtcTestReadConfig()
63 ret = drsOps->GetUint32(node, "year", &config->year, 0); in RtcTestReadConfig()
68 ret = drsOps->GetUint32(node, "month", &config->month, 0); in RtcTestReadConfig()
73 ret = drsOps->GetUint32(node, "day", &config->day, 0); in RtcTestReadConfig()
78 ret = drsOps->GetUint32(node, "hour", &config->hour, 0); in RtcTestReadConfig()
83 ret = drsOps->GetUint32(node, "minute", &config->minute, 0); in RtcTestReadConfig()
88 ret = drsOps->GetUint32(node, "second", &config->second, 0); in RtcTestReadConfig()
93 ret = drsOps->GetUint32(node, "frequenc in RtcTestReadConfig()
[all...]
/drivers/hdf_core/framework/model/network/ethernet/src/
H A Deth_device.c79 static int32_t ParseEthMacConfig(const struct DeviceResourceNode *node, struct HdfConfigEthMac *ethMacConfig) in ParseEthMacConfig() argument
83 if (node == NULL || ethMacConfig == NULL) { in ParseEthMacConfig()
84 HDF_LOGE("%s: invalid node or ethMacConfig!", __func__); in ParseEthMacConfig()
93 if (drsOps->GetUint32(node, "regBase", &ethMacConfig->regBase, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
97 if (drsOps->GetUint32(node, "irqVector", &ethMacConfig->irqVector, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
101 if (drsOps->GetUint8(node, "mdioFrqDiv", &ethMacConfig->mdioFrqDiv, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
105 if (drsOps->GetUint8(node, "txBusy", &ethMacConfig->txBusy, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
109 if (drsOps->GetUint32(node, "iobase", &ethMacConfig->iobase, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
113 if (drsOps->GetUint32(node, "regOffSize", &ethMacConfig->regOffSize, 0) != HDF_SUCCESS) { in ParseEthMacConfig()
120 static int32_t ParseEthPhyConfig(const struct DeviceResourceNode *node, struc argument
142 ParseEthDevInstConfig(const struct DeviceResourceNode *node, struct ConfigEthDevList *devLstConfig) ParseEthDevInstConfig() argument
199 ParseEthDevListNode(const struct DeviceResourceNode *node, struct EthConfig *ethConfig) ParseEthDevListNode() argument
220 ParseConfigFromProperty(const struct DeviceResourceNode *node, struct EthConfig *config) ParseConfigFromProperty() argument
238 GetEthConfig(const struct DeviceResourceNode *node) GetEthConfig() argument
[all...]
/drivers/peripheral/usb/ddk/device/src/
H A Dusbfn_cfg_mgr.c86 static int32_t UsbFnCfgMgrParseUsbFnDevDesc(const struct DeviceResourceNode *node, struct UsbFnDeviceDesc *fnDevDesc) in UsbFnCfgMgrParseUsbFnDevDesc() argument
89 if (node == NULL || fnDevDesc == NULL) { in UsbFnCfgMgrParseUsbFnDevDesc()
90 HDF_LOGE("%{public}s: node or fnDevDesc is null", __func__); in UsbFnCfgMgrParseUsbFnDevDesc()
98 if (drsOps->GetString(node, "usb_dev_desc", &childNodeName, NULL) != HDF_SUCCESS) { in UsbFnCfgMgrParseUsbFnDevDesc()
99 HDF_LOGE("%{public}s: get usb_dev_desc node name failed", __func__); in UsbFnCfgMgrParseUsbFnDevDesc()
102 const struct DeviceResourceNode *devDescNode = drsOps->GetChildNode(node, childNodeName); in UsbFnCfgMgrParseUsbFnDevDesc()
123 const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnStrings *fnString) in UsbFnCfgMgrParseString()
131 if (node == NULL || fnString == NULL || drsOps == NULL) { in UsbFnCfgMgrParseString()
134 if (drsOps->GetUint16(node, "language", &fnString->language, 0) != HDF_SUCCESS) { in UsbFnCfgMgrParseString()
137 strCount = drsOps->GetElemNum(node, "stringLis in UsbFnCfgMgrParseString()
122 UsbFnCfgMgrParseString( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnStrings *fnString) UsbFnCfgMgrParseString() argument
175 UsbFnCfgMgrParseStrings( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps) UsbFnCfgMgrParseStrings() argument
223 UsbFnCfgMgrParseUsbFnDevStrings(const struct DeviceResourceNode *node, struct UsbFnDeviceDesc *fnDevDesc) UsbFnCfgMgrParseUsbFnDevStrings() argument
256 UsbFnCfgMgrParseAccocInterfaceDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseAccocInterfaceDesc() argument
280 UsbFnCfgMgrParseInterfaceDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseInterfaceDesc() argument
305 UsbFnCfgMgrParseEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseEndpointDesc() argument
334 UsbFnCfgMgrParseStringDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseStringDesc() argument
355 UsbFnCfgMgrParseSspIsocEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSspIsocEndpointDesc() argument
379 UsbFnCfgMgrParseSsEndpointDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSsEndpointDesc() argument
402 UsbFnCfgMgrParseQualifierDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseQualifierDesc() argument
428 UsbFnCfgMgrParseOtgDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t length) UsbFnCfgMgrParseOtgDesc() argument
457 UsbFnCfgMgrParseDebugDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseDebugDesc() argument
477 UsbFnCfgMgrParseSecurityDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff) UsbFnCfgMgrParseSecurityDesc() argument
499 UsbFnCfgMgrParseOtherDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t length) UsbFnCfgMgrParseOtherDesc() argument
514 UsbFnCfgMgrParseDescriptor(const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, uint8_t *descBuff, uint8_t descType, uint8_t length) UsbFnCfgMgrParseDescriptor() argument
564 UsbFnCfgMgrParseDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps) UsbFnCfgMgrParseDesc() argument
597 UsbFnCfgMgrParseFunDesc( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, const char *descName) UsbFnCfgMgrParseFunDesc() argument
641 UsbFnCfgMgrParseUsbFnFunction( const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnFunction *fun) UsbFnCfgMgrParseUsbFnFunction() argument
680 UsbFnCfgMgrParseUsbFnFunctions( const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct UsbFnConfiguration *fnConfig) UsbFnCfgMgrParseUsbFnFunctions() argument
733 UsbFnCfgMgrParseUsbFnConfiguration( const struct DeviceResourceNode *node, struct DeviceResourceIface *drsOps, struct UsbFnConfiguration *fnConfig) UsbFnCfgMgrParseUsbFnConfiguration() argument
817 UsbFnCfgMgrParseUsbFnConfigurations( const struct DeviceResourceNode *node, struct UsbFnDeviceDesc *fnDevDesc) UsbFnCfgMgrParseUsbFnConfigurations() argument
849 UsbFnCfgMgrGetInstanceFromHCS(const struct DeviceResourceNode *node) UsbFnCfgMgrGetInstanceFromHCS() argument
[all...]
/drivers/hdf_core/framework/model/audio/common/src/
H A Daudio_dsp_base.c16 const struct DeviceResourceNode *node = NULL; in DspGetServiceName() local
25 node = device->property; in DspGetServiceName()
26 if (node == NULL) { in DspGetServiceName()
36 ret = drsOps->GetString(node, "serviceName", drvDspName, 0); in DspGetServiceName()
47 const struct DeviceResourceNode *node = NULL; in DspGetDaiName() local
56 node = device->property; in DspGetDaiName()
57 if (node == NULL) { in DspGetDaiName()
58 AUDIO_DRIVER_LOG_ERR("drs node is null pointer."); in DspGetDaiName()
67 ret = drsOps->GetString(node, "dspDaiName", drvDaiName, 0); in DspGetDaiName()
/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dparser.cpp74 Logger().Error() << lexer_ << "syntax error, expect root node of end of file"; in ParseOneContent()
175 Logger().Error() << lexer_ << "syntax error, node miss '{'"; in ParseNode()
180 auto node = std::make_shared<ConfigNode>(name, NODE_NOREF, ""); in ParseNode() local
191 Logger().Error() << lexer_ << "syntax error, except '}' or TEMPLATE or LITERAL for node '" in ParseNode()
199 node->AddChild(child); in ParseNode()
203 Logger().Error() << lexer_ << "syntax error, node miss '}'"; in ParseNode()
206 return node; in ParseNode()
263 auto node = ParseNode(name, false); in ParseTemplate() local
264 if (node == nullptr) { in ParseTemplate()
265 return node; in ParseTemplate()
301 std::shared_ptr<AstObject> node; ParseNodeWithRef() local
325 auto node = ParseNode(name); ParseNodeCopy() local
345 auto node = ParseNode(name); ParseNodeRef() local
359 auto node = ParseNode(name); ParseNodeDelete() local
380 auto node = ParseNode(name); ParseNodeInherit() local
[all...]

Completed in 13 milliseconds

1234567891011