/drivers/hdf_core/framework/support/platform/src/regulator/ |
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->regulatorInfo.parentName, pos->regulatorInfo.name) == 0) { in RegulatorNodeSetParent() [all …]
|
D | regulator_if.c | 24 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorClose() local 26 if (node == 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() 46 int ret = RegulatorNodeEnable(node); in RegulatorEnable() 57 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorDisable() local 59 if (node == NULL) { in RegulatorDisable() 64 int ret = RegulatorNodeDisable(node); in RegulatorDisable() 75 struct RegulatorNode *node = (struct RegulatorNode *)handle; in RegulatorForceDisable() local [all …]
|
/drivers/hdf_core/framework/utils/src/ |
D | hdf_map.c | 50 static void MapAddNode(Map *map, struct MapNode *node) in MapAddNode() argument 52 uint32_t idx = MapHashIdx(map, node->hash); in MapAddNode() 53 node->next = map->nodes[idx]; in MapAddNode() 54 map->nodes[idx] = node; in MapAddNode() 75 struct MapNode *node = NULL; in MapResize() local 80 node = tmp[i]; in MapResize() 81 while (node != NULL) { in MapResize() 82 next = node->next; in MapResize() 83 MapAddNode(map, node); in MapResize() 84 node = next; in MapResize() [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
D | Generator.js | 37 astToObjConfigNodeType(nodeType, obj, node) { argument 43 obj.ref_ = node.refNodePath_; 53 astToObjConfigNode(ret, child, node) { argument 55 child = node.child_; 60 ret.nodeType_ = node.nodeType_; 63 this.astToObjConfigNodeType(node.nodeType_, ret, node); 66 astToObj(node, parent) { argument 69 ret.type_ = node.type_; 70 ret.name_ = node.name_; 71 ret.lineno_ = node.lineno_; [all …]
|
D | NodeTools.js | 49 function getRoot(node) { argument 50 while (node.parent_ !== undefined) { 51 node = node.parent_; 53 return node; 56 NodeTools.isElders = function (node, elders) { argument 57 while (node !== undefined) { 58 if (node === elders) { 61 node = node.parent_; 66 NodeTools.getPathByNode = function (node, expandRef = true) { argument 67 if (node === null) { [all …]
|
D | ModifyNode.js | 22 function getParent(node, dest, parent) { argument 26 function isNameRepeat(node, name) { argument 27 for (let i in node.value_) { 28 if (node.value_[i].name_ === name) { 35 ModifyNode.modifyName = function (files, root, node, name) { argument 36 let parent = getParent(root, node, null); 41 node.name_ = name; 45 ModifyNode.modifyNodeType = function (files, root, node, type) { argument 46 let parent = getParent(root, node, null); 55 node.ref_ = 'unknow'; [all …]
|
/drivers/hdf_core/framework/include/utils/ |
D | hcs_macro.h | 83 #define HCS_NODE_EXISTS(node) HCS_CAT(node, _exists) argument 92 #define HCS_NODE(parent, node) HCS_CAT(parent, _##node) argument 101 #define HCS_NODE_HAS_PROP(node, prop) HCS_CAT(node, _##prop##_exists) argument 110 #define HCS_PROP(node, prop) HCS_CAT(node, _##prop) argument 119 #define HCS_FOREACH_CHILD(node, func) \ argument 120 HCS_CAT(node, _foreach_child)(func) 129 #define HCS_FOREACH_CHILD_VARGS(node, func, ...) \ argument 130 HCS_CAT(node, _foreach_child_vargs)(func, __VA_ARGS__)
|
/drivers/hdf_core/adapter/khdf/linux/platform/regulator/ |
D | regulator_adapter.c | 26 static int32_t LinuxRegulatorOpen(struct RegulatorNode *node) in LinuxRegulatorOpen() argument 28 if (node == NULL || node->priv == 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() 63 struct LinuxRegulatorInfo *info = (struct LinuxRegulatorInfo *)node->priv; in LinuxRegulatorClose() 66 … HDF_LOGE("LinuxRegulatorClose: regulator_disable[%s][%s] FAIL", node->regulatorInfo.name, in LinuxRegulatorClose() 75 static int32_t LinuxRegulatorRemove(struct RegulatorNode *node) in LinuxRegulatorRemove() argument 77 if (node == NULL || node->priv == NULL) { in LinuxRegulatorRemove() 82 struct LinuxRegulatorInfo *info = (struct LinuxRegulatorInfo *)node->priv; in LinuxRegulatorRemove() [all …]
|
/drivers/hdf_core/interfaces/inner_api/utils/ |
D | device_resource_if.h | 112 bool (*GetBool)(const struct DeviceResourceNode *node, const char *attrName); 126 …int32_t (*GetUint8)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, u… 142 …int32_t (*GetUint8ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_t… 162 …int32_t (*GetUint8Array)(const struct DeviceResourceNode *node, const char *attrName, uint8_t *val… 177 …int32_t (*GetUint16)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value,… 192 …int32_t (*GetUint16ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_… 211 …int32_t (*GetUint16Array)(const struct DeviceResourceNode *node, const char *attrName, uint16_t *v… 226 …int32_t (*GetUint32)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value,… 241 …int32_t (*GetUint32ArrayElem)(const struct DeviceResourceNode *node, const char *attrName, uint32_… 260 …int32_t (*GetUint32Array)(const struct DeviceResourceNode *node, const char *attrName, uint32_t *v… [all …]
|
D | hcs_tree_if.h | 24 bool HcsGetBool(const struct DeviceResourceNode *node, const char *attrName); 25 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui… 26 int32_t HcsGetUint8ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t … 28 int32_t HcsGetUint8Array(const struct DeviceResourceNode *node, const char *attrName, uint8_t *valu… 30 int32_t HcsGetUint16(const struct DeviceResourceNode *node, const char *attrName, uint16_t *value, … 31 int32_t HcsGetUint16ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t… 33 int32_t HcsGetUint16Array(const struct DeviceResourceNode *node, const char *attrName, uint16_t *va… 35 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, … 36 int32_t HcsGetUint32ArrayElem(const struct DeviceResourceNode *node, const char *attrName, uint32_t… 38 int32_t HcsGetUint32Array(const struct DeviceResourceNode *node, const char *attrName, uint32_t *va… [all …]
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/ |
D | hdf_wlan_config_parser.c | 14 static int32_t ParseWlanStaConfig(const struct DeviceResourceNode *node, struct HdfConfigWlanStatio… in ParseWlanStaConfig() argument 19 if (node == NULL || staConfig == NULL) { 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 … in ParseWlanApConfig() argument 47 if (node == NULL || apConfig == NULL) { in ParseWlanApConfig() 56 ret = drsOps->GetString(node, "name", &apConfig->name, NULL); in ParseWlanApConfig() 61 ret = drsOps->GetUint8(node, "mode", &apConfig->mode, 0); in ParseWlanApConfig() 66 ret = drsOps->GetUint8(node, "vapResNum", &apConfig->vapResNum, 0); in ParseWlanApConfig() 71 ret = drsOps->GetUint8(node, "userResNum", &apConfig->userResNum, 0); in ParseWlanApConfig() [all …]
|
/drivers/hdf_core/framework/support/platform/include/regulator/ |
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_t minUa, uint32_t maxUa); [all …]
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
D | regulator_virtual.c | 33 static int32_t VirtualRegulatorEnable(struct RegulatorNode *node) in VirtualRegulatorEnable() argument 35 if (node == NULL) { 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() 52 node->regulatorInfo.status = REGULATOR_STATUS_OFF; in VirtualRegulatorDisable() 53 HDF_LOGD("VirtualRegulatorDisable %s success !\n", node->regulatorInfo.name); in VirtualRegulatorDisable() 57 static int32_t VirtualRegulatorSetVoltage(struct RegulatorNode *node, uint32_t minUv, uint32_t maxU… in VirtualRegulatorSetVoltage() argument 59 if (node == NULL) { in VirtualRegulatorSetVoltage() [all …]
|
/drivers/hdf_core/framework/model/camera/parser/src/ |
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->ctrlValueNu… in ParseCameraSensorDeviceConfig() 71 static int32_t ParseCameraIspDeviceConfig(const struct DeviceResourceNode *node, in ParseCameraIspDeviceConfig() argument 76 ret = drsOps->GetString(node, "name", &ispConfig->name, NULL); in ParseCameraIspDeviceConfig() [all …]
|
/drivers/peripheral/user_auth/hdi_service/common/src/ |
D | linked_list.c | 39 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 = node->next; in RemoveNode() [all …]
|
/drivers/hdf_core/framework/core/shared/include/ |
D | hdf_attribute_macro.h | 43 #define HDF_DEAL_DEVICE_NODE(node, deviceNodes, host, retCode) \ argument 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, devices, host, retCode) \ argument [all …]
|
/drivers/peripheral/codec/hal/passthrough/src/ |
D | codec_adapter.cpp | 31 std::shared_ptr<ComponentNode> node; member 78 tempNode->node = std::make_shared<ComponentNode>(comp, exInfo); in CodecAdapterCreateComponent() 79 if (tempNode->node == nullptr) { in CodecAdapterCreateComponent() 83 ret = tempNode->node->SetCallbacks(callbacks, appData); in CodecAdapterCreateComponent() 87 tempNode->node = nullptr; in CodecAdapterCreateComponent() 93 tempNode->node->SetState(OMX_StateLoaded); in CodecAdapterCreateComponent() 101 if (codecNode == nullptr || codecNode->node == nullptr) { in CodecAdapterDestroyComponent() 105 auto ret = g_mgr.DeleteComponentInstance(codecNode->node->GetHandle()); in CodecAdapterDestroyComponent() 110 codecNode->node = nullptr; in CodecAdapterDestroyComponent() 118 if (codecNode == nullptr || codecNode->node == nullptr || verInfo == nullptr) { in CodecAdapterGetComponentVersion() [all …]
|
/drivers/peripheral/codec/hal/src/ |
D | codec_adapter.cpp | 30 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() 51 …auto err = g_mgr.CreateComponentInstance(compName, &ComponentNode::callbacks_, tempNode->node.get(… in OMXAdapterCreateComponent() 58 tempNode->node->SetHandle(static_cast<OMX_HANDLETYPE>(comp)); in OMXAdapterCreateComponent() 71 if (codecNode->node == nullptr) { in OmxAdapterDestroyComponent() 77 OMX_HANDLETYPE comp = codecNode->node->GetHandle(); in OmxAdapterDestroyComponent() 78 codecNode->node = nullptr; in OmxAdapterDestroyComponent() 94 if (codecNode == nullptr || codecNode->node == nullptr || verInfo == nullptr) { in OmxAdapterComponentVersion() 98 return codecNode->node->GetComponentVersion(*verInfo); in OmxAdapterComponentVersion() [all …]
|
/drivers/hdf_core/framework/model/display/driver/lcdkit/ |
D | lcdkit_parse_config.c | 13 #define PARSE_PANEL_SYMBOL(node, ops, symbol, out) do { \ argument 14 if ((ops)->GetUint32((node), (symbol), (out), 0)) { \ 97 static int32_t ParseCmdConfig(const struct DeviceResourceNode *node, struct DeviceResourceIface *dr… 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 *dr… 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, drsOps, "hfp", &info->hfp); in ParsePanelInfo() [all …]
|
/drivers/hdf_core/framework/model/network/bluetooth/ |
D | hdf_chip_config.c | 11 static int ParsePowerConfig(const struct DeviceResourceNode *node, struct HdfPowerConfig *config) in ParsePowerConfig() argument 14 if (node == NULL || config == NULL) { in ParsePowerConfig() 24 if (drsOps->GetUint8(node, "powerSeqDelay", &config->powerSeqDelay, 0) != HDF_SUCCESS) { in ParsePowerConfig() 29 if (drsOps->GetUint8(node, "powerType", &config->type, 0) != HDF_SUCCESS) { in ParsePowerConfig() 35 if (drsOps->GetUint16(node, "gpioId", &config->gpio.gpioId, 0) != HDF_SUCCESS) { in ParsePowerConfig() 39 if (drsOps->GetUint8(node, "activeLevel", &config->gpio.activeLevel, 0) != HDF_SUCCESS) { in ParsePowerConfig() 48 static struct HdfPowersConfig *ParsePowersConfig(const struct DeviceResourceNode *node) in ParsePowersConfig() argument 55 if (node == NULL) { in ParsePowersConfig() 64 DEV_RES_NODE_FOR_EACH_CHILD_NODE(node, childNode) { ++nodeCount; } in ParsePowersConfig() 80 const struct DeviceResourceNode *powerNode = drsOps->GetChildNode(node, buff); in ParsePowersConfig() [all …]
|
/drivers/peripheral/usb/ddk/device/src/ |
D | usbfn_cfg_mgr.c | 86 static int32_t UsbFnCfgMgrParseUsbFnDevDesc(const struct DeviceResourceNode *node, struct UsbFnDevi… in UsbFnCfgMgrParseUsbFnDevDesc() argument 89 if (node == NULL || fnDevDesc == NULL) { in UsbFnCfgMgrParseUsbFnDevDesc() 98 if (drsOps->GetString(node, "usb_dev_desc", &childNodeName, NULL) != HDF_SUCCESS) { in UsbFnCfgMgrParseUsbFnDevDesc() 102 const struct DeviceResourceNode *devDescNode = drsOps->GetChildNode(node, childNodeName); in UsbFnCfgMgrParseUsbFnDevDesc() 123 …const struct DeviceResourceNode *node, const struct DeviceResourceIface *drsOps, struct UsbFnStrin… in UsbFnCfgMgrParseString() argument 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, "stringList"); in UsbFnCfgMgrParseString() 150 ret = drsOps->GetStringArrayElem(node, "stringList", iCount, &strNodeName, NULL); in UsbFnCfgMgrParseString() 155 strNode = drsOps->GetChildNode(node, strNodeName); in UsbFnCfgMgrParseString() [all …]
|
/drivers/hdf_core/framework/model/network/ethernet/src/ |
D | eth_device.c | 79 static int32_t ParseEthMacConfig(const struct DeviceResourceNode *node, struct HdfConfigEthMac *eth… in ParseEthMacConfig() argument 83 if (node == NULL || ethMacConfig == NULL) { in ParseEthMacConfig() 93 if (drsOps->GetUint32(node, "regBase", ðMacConfig->regBase, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 97 if (drsOps->GetUint32(node, "irqVector", ðMacConfig->irqVector, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 101 if (drsOps->GetUint8(node, "mdioFrqDiv", ðMacConfig->mdioFrqDiv, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 105 if (drsOps->GetUint8(node, "txBusy", ðMacConfig->txBusy, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 109 if (drsOps->GetUint32(node, "iobase", ðMacConfig->iobase, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 113 if (drsOps->GetUint32(node, "regOffSize", ðMacConfig->regOffSize, 0) != HDF_SUCCESS) { in ParseEthMacConfig() 120 static int32_t ParseEthPhyConfig(const struct DeviceResourceNode *node, struct HdfConfigEthPhy *eth… in ParseEthPhyConfig() argument 124 if (node == NULL || ethPhyConfig == NULL) { in ParseEthPhyConfig() [all …]
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_hdf_config.cpp | 77 for (auto node = rootNode->children; node; node = node->next) { in ParseThermalHdiXMLConfig() local 78 if (node == nullptr) { in ParseThermalHdiXMLConfig() 82 if (!xmlStrcmp(node->name, BAD_CAST"base")) { in ParseThermalHdiXMLConfig() 83 ParseBaseNode(node); in ParseThermalHdiXMLConfig() 84 } else if (!xmlStrcmp(node->name, BAD_CAST"polling")) { in ParseThermalHdiXMLConfig() 85 ParsePollingNode(node); in ParseThermalHdiXMLConfig() 86 } else if (!xmlStrcmp(node->name, BAD_CAST"tracing")) { in ParseThermalHdiXMLConfig() 87 ParseTracingNode(node); in ParseThermalHdiXMLConfig() 88 } else if (!xmlStrcmp(node->name, BAD_CAST"isolate")) { in ParseThermalHdiXMLConfig() 89 ParseIsolateNode(node); in ParseThermalHdiXMLConfig() [all …]
|
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | hcs_tree_if.c | 15 static struct DeviceResourceAttr *GetAttrInNode(const struct DeviceResourceNode *node, const char *… 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() 56 int32_t HcsGetUint8(const struct DeviceResourceNode *node, const char *attrName, uint8_t *value, ui… 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, … in HcsGetUint16() argument 71 struct DeviceResourceAttr *attr = GetAttrInNode(node, attrName); in HcsGetUint16() 82 int32_t HcsGetUint32(const struct DeviceResourceNode *node, const char *attrName, uint32_t *value, … in HcsGetUint32() argument [all …]
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | devhost_dump.c | 30 struct DListHead node; member 54 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &g_dumpHostNode.list, struct DumpServiceNode, node) { in DevHostDumpDeInit() 55 DListRemove(&pos->node); in DevHostDumpDeInit() 71 DLIST_FOR_EACH_ENTRY(pos, &g_dumpHostNode.list, struct DumpServiceNode, node) { in DevHostCheckDumpExist() 92 struct DumpServiceNode *node = (struct DumpServiceNode *)OsalMemCalloc(sizeof(*node)); in DevHostRegisterDumpService() local 93 if (node == NULL) { in DevHostRegisterDumpService() 98 node->dumpService = dump; in DevHostRegisterDumpService() 99 node->servName = HdfStringCopy(servName); in DevHostRegisterDumpService() 100 if (node->servName == NULL) { in DevHostRegisterDumpService() 101 OsalMemFree(node); in DevHostRegisterDumpService() [all …]
|