/drivers/hdf_core/framework/tools/hc-gen/src/ |
H A D | macro_gen.cpp | 217 return ast_->WalkForward([this](std::shared_ptr<AstObject> ¤t, 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> ¤t, 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 D | bytecode_gen.cpp | 193 return ast_->WalkForward([this](std::shared_ptr<AstObject> ¤t, 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 D | text_gen.cpp | 85 auto ret = ast_->WalkBackward([this](const std::shared_ptr<AstObject> ¤t, 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> ¤t, int32_t depth) -> uint32_t { in OutputImplGlobalVariables() 342 return ImplementGenTraversal(current, depth); in OutputImplGlobalVariables() 345 auto backwardWalkFunc = [this](const std::shared_ptr<AstObject> ¤t, int32_t depth) -> uint32_t { in OutputImplGlobalVariables() 346 return ImplementCloseBraceGen(current, depth); in OutputImplGlobalVariables() 718 return ast_->WalkForward([&nodeMap](const std::shared_ptr<AstObject> ¤t, uint32_t) -> uint32_t { 719 if (!current [all...] |
H A D | decompile_gen.cpp | 182 [this](std::shared_ptr<AstObject> ¤t, int32_t walkDepth) -> int32_t { in OutPut() 183 return OutPutWalk(current, walkDepth); in OutPut() 185 [this](std::shared_ptr<AstObject> ¤t, int32_t walkDepth) -> int32_t { in OutPut() 186 return CloseBrace(current, walkDepth); in OutPut()
|
H A D | macro_gen.h | 38 void SetTypeData(uint32_t type, const std::shared_ptr<AstObject> ¤t, uint32_t &arraySize, int32_t depth); 41 const std::shared_ptr<AstObject> ¤t);
|
H A D | startup_cfg_gen.cpp | 374 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 D | ast.js | 783 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 D | linked_list.c | 104 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 D | thermal_device_mitigation.h | 35 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 D | thermal_interface_impl.h | 35 int32_t SetBatteryCurrent(int32_t current) override;
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
H A D | thermal_device_mitigation.cpp | 41 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 D | thermal_interface_impl.cpp | 149 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 D | regulator_virtual.c | 16 ---+-> 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 D | linked_list.h | 36 LinkedListNode *current; member
|
/drivers/peripheral/thermal/test/unittest/ |
H A D | hdf_thermal_hdi_test.cpp | 77 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 D | usb_net_adapter.c | 424 DECLARE_WAITQUEUE(wait, current); in UsbnetAdapterTerminateUrbs()
|