Home
last modified time | relevance | path

Searched refs:current (Results 1 - 16 of 16) sorted by relevance

/drivers/hdf_core/framework/tools/hc-gen/src/
H A Dmacro_gen.cpp217 return ast_->WalkForward([this](std::shared_ptr<AstObject> &current, int32_t depth) {
218 auto type = current->Type();
221 Logger().Debug() << "name,type:[" << current->Name() << "," << type << "] depth:" << depth
223 SetTypeData(type, current, arraySize, depth);
229 void MacroGen::SetTypeData(uint32_t type, const std::shared_ptr<AstObject> &current, uint32_t &arraySize, int32_t depth)
239 SetTypeDataUinit64(arrayName, arraySize, arrayType, current);
244 GenArray(arrayName, arraySize, arrayType, current);
246 ofs_ << " " << '"' << current->StringValue() << '"' << std::endl;
250 ofs_ << "#define " << GenFullName(depth, current, "_") << "_exists 1" << std::endl;
251 ofs_ << "#define " << GenFullName(depth, current, "
[all...]
H A Dbytecode_gen.cpp193 return ast_->WalkForward([this](std::shared_ptr<AstObject> &current, int32_t depth) {
195 current->SetHash(writeSize_);
196 auto opcode = current->OpCode();
198 switch (current->OpCode()) {
203 auto value = current->IntegerValue();
204 Write(reinterpret_cast<const char *>(&value), ToOpCode(current->Type()).size);
208 Write(current->StringValue());
211 Write(current->Name());
215 Write(current->Name());
216 auto subSize = current
[all...]
H A Dtext_gen.cpp85 auto ret = ast_->WalkBackward([this](const std::shared_ptr<AstObject> &current, int32_t) -> uint32_t { in HeaderOutputTraversal()
86 if (!current->IsNode()) { in HeaderOutputTraversal()
89 auto node = ConfigNode::CastFrom(current); in HeaderOutputTraversal()
94 return GenNodeDefinition(current); in HeaderOutputTraversal()
341 auto forwardWalkFunc = [this](const std::shared_ptr<AstObject> &current, int32_t depth) -> uint32_t { in OutputImplGlobalVariables()
342 return ImplementGenTraversal(current, depth); in OutputImplGlobalVariables()
345 auto backwardWalkFunc = [this](const std::shared_ptr<AstObject> &current, int32_t depth) -> uint32_t { in OutputImplGlobalVariables()
346 return ImplementCloseBraceGen(current, depth); in OutputImplGlobalVariables()
718 return ast_->WalkForward([&nodeMap](const std::shared_ptr<AstObject> &current, uint32_t) -> uint32_t {
719 if (!current
[all...]
H A Ddecompile_gen.cpp182 [this](std::shared_ptr<AstObject> &current, int32_t walkDepth) -> int32_t { in OutPut()
183 return OutPutWalk(current, walkDepth); in OutPut()
185 [this](std::shared_ptr<AstObject> &current, int32_t walkDepth) -> int32_t { in OutPut()
186 return CloseBrace(current, walkDepth); in OutPut()
H A Dmacro_gen.h38 void SetTypeData(uint32_t type, const std::shared_ptr<AstObject> &current, uint32_t &arraySize, int32_t depth);
41 const std::shared_ptr<AstObject> &current);
H A Dstartup_cfg_gen.cpp374 std::shared_ptr<AstObject> current = nullptr;
386 current = devNodeInfo->Lookup("preload", PARSEROP_CONFTERM);
387 if (current == nullptr) {
392 preload = current->Child()->IntegerValue();
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
H A Dast.js783 this.walkForward(this.astRoot_, (current, walkDepth) => {
784 switch (current.type_) {
790 this.setw(walkDepth * 4) + '[' + current.integerValue_ + ']'
794 NapiLog.logInfo(this.setw(walkDepth * 4) + current.stringValue_);
797 if (current.name_ === 'blockSize') {
798 current.name_ = 'blockSize';
800 NapiLog.logInfo(this.setw(walkDepth * 4) + current.name_ + ' :');
803 if (current.name_ === 'funcNum') {
804 current.name_ = 'funcNum';
806 NapiLog.logInfo(this.setw(walkDepth * 4) + current
[all...]
/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dlinked_list.c104 return iterator->current != NULL; in IteratorHasNext()
113 LinkedListNode *current = iterator->current; in IteratorNext() local
114 iterator->current = current->next; in IteratorNext()
115 return current->data; in IteratorNext()
129 iterator->current = list->head; in CreateIterator()
/drivers/peripheral/thermal/interfaces/hdi_service/include/
H A Dthermal_device_mitigation.h35 int32_t ChargerRequest(uint32_t current);
36 int32_t ExecuteChargerRequest(uint32_t current, const std::string &path);
37 int32_t BatteryCurrentRequest(uint32_t current);
H A Dthermal_interface_impl.h35 int32_t SetBatteryCurrent(int32_t current) override;
/drivers/peripheral/thermal/interfaces/hdi_service/src/
H A Dthermal_device_mitigation.cpp41 const std::string BATTERY_CHARGER_CURRENT_PATH = "/data/service/el0/thermal/cooling/charger/current";
42 const std::string SIM_BATTERY_CURRENT_PATH = "/data/service/el0/thermal/cooling/battery/current";
131 int32_t ThermalDeviceMitigation::ChargerRequest(uint32_t current) in ChargerRequest() argument
133 int32_t ret = ExecuteChargerRequest(current, ACTUAL_BATTERY_CURRENT_PATH); in ChargerRequest()
135 THERMAL_HILOGE(COMP_HDI, "failed to really set current"); in ChargerRequest()
137 ret = ExecuteChargerRequest(current, SIM_BATTERY_CURRENT_PATH); in ChargerRequest()
169 int32_t ThermalDeviceMitigation::ExecuteChargerRequest(uint32_t current, const std::string &path) in ExecuteChargerRequest() argument
183 ret = snprintf_s(currentBuf, MAX_PATH, sizeof(currentBuf) - 1, "%u%s", current, "\n"); in ExecuteChargerRequest()
188 THERMAL_HILOGI(COMP_HDI, "Set current to %{public}d", current); in ExecuteChargerRequest()
197 BatteryCurrentRequest(uint32_t current) BatteryCurrentRequest() argument
[all...]
H A Dthermal_interface_impl.cpp149 int32_t ThermalInterfaceImpl::SetBatteryCurrent(int32_t current) in SetBatteryCurrent() argument
151 if (current <= 0) { in SetBatteryCurrent()
152 THERMAL_HILOGE(COMP_HDI, "invalid current %{public}d", current); in SetBatteryCurrent()
156 int32_t ret = mitigation_->ChargerRequest(current); in SetBatteryCurrent()
158 THERMAL_HILOGE(COMP_HDI, "failed to set current %{public}d", ret); in SetBatteryCurrent()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dregulator_virtual.c16 ---+-> Regulator-10(current)
19 ---+-> Regulator-11(current) -+-> Regulator-12(current) -+-> Regulator-14(current)
21 | | -+-> Regulator-13(current)
93 static int32_t VirtualRegulatorGetCurrent(struct RegulatorNode *node, uint32_t *current) in VirtualRegulatorGetCurrent() argument
95 if (node == NULL || current == NULL) { in VirtualRegulatorGetCurrent()
100 *current = CURRENT_2500_UA; in VirtualRegulatorGetCurrent()
101 HDF_LOGD("VirtualRegulatorGetCurrent get %s %u success !\n", node->regulatorInfo.name, *current); in VirtualRegulatorGetCurrent()
/drivers/peripheral/user_auth/hdi_service/utils/inc/
H A Dlinked_list.h36 LinkedListNode *current; member
/drivers/peripheral/thermal/test/unittest/
H A Dhdf_thermal_hdi_test.cpp77 const std::string BATTERY_CHARGER_CURRENT_PATH = "/data/service/el0/thermal/cooling/battery/current";
213 * @tc.desc: set battery current
236 std::string current = currentValue; in HWTEST_F() local
237 int32_t value = HdfThermalHdiTest::ConvertInt(current); in HWTEST_F()
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/
H A Dusb_net_adapter.c424 DECLARE_WAITQUEUE(wait, current); in UsbnetAdapterTerminateUrbs()

Completed in 13 milliseconds