Home
last modified time | relevance | path

Searched refs:parent (Results 1 - 25 of 32) sorted by relevance

12

/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
H A DModifyNode.js22 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 Dast.js292 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 DGenerator.js66 astToObj(node, parent) {
72 ret.parent_ = parent;
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dclock_virtual.c83 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 Dclock_adapter.c142 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 Dclock_if.c137 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 Dclock_core.c365 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 Dclock_if_u.c299 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 Dregulator_tree_mgr.c45 // 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 Dregulator_core.c103 // 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 Dhcs_macro.h45 * 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 Dregulator_tree_mgr.h30 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 Dclock_core.h39 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 Dclock_if.h33 int32_t ClockSetParent(DevHandle child, DevHandle parent);
/drivers/hdf_core/interfaces/inner_api/host/shared/
H A Dhdf_device_object.h17 struct HdfDeviceObject *HdfDeviceObjectAlloc(struct HdfDeviceObject *parent, const char *driverName);
/drivers/hdf_core/framework/core/host/src/
H A Dhdf_device_object.c187 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 Dclock_test.c24 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 Dhdf_chip.h109 struct HdfCompositeDevice *parent; member
/drivers/hdf_core/framework/model/input/driver/
H A Dhdf_touch.c651 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 Dast.h95 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 Dmacro_gen.cpp263 std::shared_ptr<AstObject> parent(current->Parent());
267 arrayName = GenFullName(depth - 1, parent, "_");
/drivers/hdf_core/interfaces/inner_api/utils/
H A Ddevice_resource_if.h67 * 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 Dcodec_component_manager_service.cpp47 resourceNode_.parent = nullptr; in CodecComponentManagerService()
/drivers/hdf_core/framework/utils/src/hcs_parser/
H A Dhcs_generate_tree.c39 newNode->parent = parentNode; in CreateTreeNode()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
H A Dhdf_liteos_scann.py123 parent = model_path_dict[name][0]
124 model_build = os.path.join(parent, "BUILD.gn")
131 path=parent)

Completed in 12 milliseconds

12