/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | ModifyNode.js | 22 function getParent(node, dest, parent) { 36 let parent = getParent(root, node, null); 37 if (parent === null) { 46 let parent = getParent(root, node, null); 47 if (parent === null) { 101 let parent = node.parent_; 102 if (parent === null) { 106 for (let i in parent.value_) { 107 if (parent.value_[i] === node) { 108 parent [all...] |
H A D | ast.js | 292 setParent(parent) { 293 this.parent_ = parent; 350 parent() { 930 let parent = null; 938 parent = backWalkObj.parent(); 957 backWalkObj = parent; 1030 forwardWalkObj = forwardWalkObj.parent();
|
H A D | Generator.js | 66 astToObj(node, parent) { 72 ret.parent_ = parent;
|
/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | clock_virtual.c | 83 int32_t VirtualClockSetParent(struct ClockDevice *device, struct ClockDevice *parent) in VirtualClockSetParent() argument 85 if (device->parent == parent) { in VirtualClockSetParent() 86 HDF_LOGI("ClockSetParent:device parent is not change \n"); in VirtualClockSetParent() 95 if (parent->clk == NULL) { in VirtualClockSetParent() 100 if (device->parent && device->parent->deviceName == NULL) { in VirtualClockSetParent() 101 ClockDeviceRemove(device->parent); in VirtualClockSetParent() 102 OsalMemFree(device->parent); in VirtualClockSetParent() 104 device->parent in VirtualClockSetParent() [all...] |
/drivers/hdf_core/adapter/khdf/linux/platform/clock/ |
H A D | clock_adapter.c | 142 static int32_t ClockLinuxSetParent(struct ClockDevice *device, struct ClockDevice *parent) in ClockLinuxSetParent() argument 147 if (device->parent == parent) { in ClockLinuxSetParent() 148 HDF_LOGI("ClockLinuxSetParent:device parent is not change \n"); in ClockLinuxSetParent() 158 clkParent = parent->clk; in ClockLinuxSetParent() 170 if (device->parent && device->parent->deviceName == NULL) { in ClockLinuxSetParent() 171 ClockDeviceRemove(device->parent); in ClockLinuxSetParent() 172 OsalMemFree(device->parent); in ClockLinuxSetParent() 174 device->parent in ClockLinuxSetParent() [all...] |
/drivers/hdf_core/framework/support/platform/src/clock/ |
H A D | clock_if.c | 137 struct ClockDevice *parent = NULL; in ClockGetParent() local 151 parent = ClockDeviceGetParent(device); in ClockGetParent() 152 if (parent == NULL) { in ClockGetParent() 153 HDF_LOGE("ClockGetParent: get clock parent fail!"); in ClockGetParent() 157 return (DevHandle)(parent->deviceIndex + CLOCK_HANDLE_SHIFT); in ClockGetParent() 160 int32_t ClockSetParent(DevHandle handle, DevHandle parent) in ClockSetParent() argument 174 number_p = (uint32_t)parent - CLOCK_HANDLE_SHIFT; in ClockSetParent() 187 if (parent == NULL) { in ClockSetParent()
|
H A D | clock_core.c | 365 struct ClockDevice *parent = NULL; in ClockDeviceGetParent() local 382 parent = device->ops->getParent(device); in ClockDeviceGetParent() 385 return parent; in ClockDeviceGetParent() 388 int32_t ClockDeviceSetParent(struct ClockDevice *device, struct ClockDevice *parent) in ClockDeviceSetParent() argument 392 if (device == NULL || parent == NULL) { in ClockDeviceSetParent() 393 HDF_LOGE("ClockDeviceSetParent: device or is parent null!"); in ClockDeviceSetParent() 407 if (ClockDeviceLock(parent) != HDF_SUCCESS) { in ClockDeviceSetParent() 412 ret = device->ops->setParent(device, parent); in ClockDeviceSetParent() 415 ClockDeviceUnlock(parent); in ClockDeviceSetParent() 674 struct ClockDevice *parent in ClockManagerGetParent() local 717 struct ClockDevice *parent = NULL; ClockManagerSetParent() local [all...] |
H A D | clock_if_u.c | 299 uint32_t parent = 0; in ClockGetParent() local 340 if (!HdfSbufReadUint32(reply, &parent)) { in ClockGetParent() 346 return (DevHandle)(uintptr_t)parent; in ClockGetParent() 349 int32_t ClockSetParent(DevHandle handle, DevHandle parent) in ClockSetParent() argument 356 if (handle == NULL || parent == NULL) { in ClockSetParent() 388 if (!HdfSbufWriteUint32(data, (uint32_t)(uintptr_t)parent)) { in ClockSetParent()
|
/drivers/hdf_core/framework/support/platform/src/regulator/ |
H A D | regulator_tree_mgr.c | 45 // name:the regulator node name; fun :get the node parent struct RegulatorNode 62 if (pos->parent == NULL) { in RegulatorTreeGetParent() 64 HDF_LOGI("RegulatorTreeGetParent: %s no parent", name); in RegulatorTreeGetParent() 68 HDF_LOGI("RegulatorTreeGetParent: get %s parent %s success!", in RegulatorTreeGetParent() 69 name, pos->parent->regulatorInfo.name); in RegulatorTreeGetParent() 70 return pos->parent; in RegulatorTreeGetParent() 248 // set regulator (name)'s (parent) info 249 static int RegulatorTreeSetParent(const char *name, struct RegulatorNode *parent) in RegulatorTreeSetParent() argument 252 CHECK_NULL_PTR_RETURN_VALUE(parent, HDF_ERR_INVALID_PARAM); in RegulatorTreeSetParent() 266 pos->parent in RegulatorTreeSetParent() 318 RegulatorTreeSet(const char *name, struct RegulatorNode *child, struct RegulatorNode *parent) RegulatorTreeSet() argument [all...] |
H A D | regulator_core.c | 103 // parent set
in RegulatorNodeSetParent() 121 HDF_LOGE("RegulatorNodeSetParent: RegulatorTreeSet find %s parent %s error!",
in RegulatorNodeSetParent() 128 HDF_LOGD("RegulatorNodeSetParent: the node %s no need to set parent!", node->regulatorInfo.name);
in RegulatorNodeSetParent() 132 int32_t RegulatorNodeSetChild(struct RegulatorNode *parent)
in RegulatorNodeSetChild() argument 134 CHECK_NULL_PTR_RETURN_VALUE(parent, HDF_ERR_INVALID_PARAM);
in RegulatorNodeSetChild() 147 (strcmp(parent->regulatorInfo.name, pos->regulatorInfo.parentName) == 0)) {
in RegulatorNodeSetChild() 148 HDF_LOGD("RegulatorNodeSetChild: node[%s] parent is %s, tree info process!",
in RegulatorNodeSetChild() 149 pos->regulatorInfo.parentName, parent->regulatorInfo.name);
in RegulatorNodeSetChild() 150 if (RegulatorTreeSet(pos->regulatorInfo.name, pos, parent) != HDF_SUCCESS) {
in RegulatorNodeSetChild() 158 HDF_LOGD("RegulatorNodeSetChild: the node %s child info process success", parent in RegulatorNodeSetChild() 370 struct RegulatorNode *parent = RegulatorTreeGetParent(node->regulatorInfo.name); RegulatorNodeEnable() local 428 struct RegulatorNode *parent = RegulatorTreeGetParent(node->regulatorInfo.name); RegulatorNodeDisable() local 483 struct RegulatorNode *parent = RegulatorTreeGetParent(node->regulatorInfo.name); RegulatorNodeForceDisable() local [all...] |
/drivers/hdf_core/framework/include/utils/ |
H A D | hcs_macro.h | 45 * The macro definition of the configuration tree node name is a string consisting of the parent node name and
88 * @param parent Indicates the parent node of the target node.
92 #define HCS_NODE(parent, node) HCS_CAT(parent, _##node)
|
/drivers/hdf_core/framework/support/platform/include/regulator/ |
H A D | regulator_tree_mgr.h | 30 struct RegulatorNode *parent; /* regulator parent info */ member 43 int RegulatorTreeSet(const char *name, struct RegulatorNode *child, struct RegulatorNode *parent);
|
/drivers/hdf_core/framework/support/platform/include/clock/ |
H A D | clock_core.h | 39 struct ClockDevice *parent; member 50 int32_t (*setParent)(struct ClockDevice *device, struct ClockDevice *parent); 80 int32_t ClockDeviceSetParent(struct ClockDevice *device, struct ClockDevice *parent);
|
/drivers/hdf_core/framework/include/platform/ |
H A D | clock_if.h | 33 int32_t ClockSetParent(DevHandle child, DevHandle parent);
|
/drivers/hdf_core/interfaces/inner_api/host/shared/ |
H A D | hdf_device_object.h | 17 struct HdfDeviceObject *HdfDeviceObjectAlloc(struct HdfDeviceObject *parent, const char *driverName);
|
/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device_object.c | 187 struct HdfDeviceObject *HdfDeviceObjectAlloc(struct HdfDeviceObject *parent, const char *driverName) in HdfDeviceObjectAlloc() argument 190 struct HdfDeviceNode *parentDevNode = CONTAINER_OF(parent, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectAlloc() 192 if (parent == NULL) { in HdfDeviceObjectAlloc() 193 HDF_LOGE("failed to alloc device, parent invalid"); in HdfDeviceObjectAlloc() 198 HDF_LOGE("failed to alloc device, parent status invalid %{public}u", parentDevNode->devStatus); in HdfDeviceObjectAlloc()
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | clock_test.c | 24 DevHandle parent = NULL; variable 256 parent = ClockGetParent(tester->handle); in ClockTestGetparent() 274 ret = ClockSetParent(tester->handle, parent); in ClockTestSetparent()
|
/drivers/hdf_core/framework/include/bluetooth/ |
H A D | hdf_chip.h | 109 struct HdfCompositeDevice *parent; member
|
/drivers/hdf_core/framework/model/input/driver/ |
H A D | hdf_touch.c | 651 if ((boardNode == NULL) || (boardNode->parent == NULL)) { in ChipMatchCheck() 656 if ((chipNode == NULL) || (chipNode->parent == NULL) || (chipNode->parent->parent == NULL)) { in ChipMatchCheck() 661 if (boardNode->parent == chipNode->parent->parent) { in ChipMatchCheck() 663 boardNode->parent->name, chipNode->parent->parent in ChipMatchCheck() [all...] |
/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | ast.h | 95 void SetParent(AstObject *parent); 337 std::shared_ptr<AstObject> parent = nullptr; in WalkBackward() local 344 parent = backWalkObj->Parent(); in WalkBackward() 364 backWalkObj = parent; in WalkBackward()
|
H A D | macro_gen.cpp | 263 std::shared_ptr<AstObject> parent(current->Parent()); 267 arrayName = GenFullName(depth - 1, parent, "_");
|
/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | device_resource_if.h | 67 * The tree node information includes the node name, unique node ID, node attributes, parent node, child nodes, 74 struct DeviceResourceNode *parent; /**< Pointer to the parent node */ member 363 * node's parent node or grandparent node. 373 * @brief Obtains the child node with a specified node name from a parent node. 375 * @param node Indicates the pointer to the parent node.
|
/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_manager_service.cpp | 47 resourceNode_.parent = nullptr; in CodecComponentManagerService()
|
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
H A D | hcs_generate_tree.c | 39 newNode->parent = parentNode; in CreateTreeNode()
|
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_liteos_scann.py | 123 parent = model_path_dict[name][0]
124 model_build = os.path.join(parent, "BUILD.gn")
131 path=parent)
|