Home
last modified time | relevance | path

Searched refs:tmpName (Results 1 – 4 of 4) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_custom_types_code_emitter.cpp429 std::string tmpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitMemberUnmarshalling() local
430 type->EmitCUnMarshalling(tmpName, errorsLabelName_, sb, prefix, freeObjStatements_); in EmitMemberUnmarshalling()
432 type->EmitCType().c_str(), tmpName.c_str(), type->EmitCType().c_str()); in EmitMemberUnmarshalling()
454 std::string tmpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitStringMemberUnmarshalling() local
456 type->EmitCUnMarshalling(tmpName, errorsLabelName_, sb, prefix + TAB, freeObjStatements_); in EmitStringMemberUnmarshalling()
459 … .AppendFormat("%s = (char*)OsalMemCalloc(strlen(%s) + 1);\n", varName.c_str(), tmpName.c_str()); in EmitStringMemberUnmarshalling()
464 varName.c_str(), tmpName.c_str(), tmpName.c_str()); in EmitStringMemberUnmarshalling()
468 … sb.Append(prefix + TAB).AppendFormat("%s = strdup(%s);\n", varName.c_str(), tmpName.c_str()); in EmitStringMemberUnmarshalling()
481 std::string tmpName = StringHelper::Format("%sCp", memberName.c_str()); in EmitArrayMemberUnmarshalling() local
497 …(prefix + TAB).AppendFormat("%s* %s = NULL;\n", elementType->EmitCType().c_str(), tmpName.c_str()); in EmitArrayMemberUnmarshalling()
[all …]
/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_device.c56 char tmpName[PLATFORM_DEV_NAME_LEN + 1] = {0}; in PlatformDeviceSetName() local
72 ret = vsnprintf_s(tmpName, PLATFORM_DEV_NAME_LEN, PLATFORM_DEV_NAME_LEN, fmt, vargs); in PlatformDeviceSetName()
79 realLen = strlen(tmpName); in PlatformDeviceSetName()
90 ret = strncpy_s(realName, realLen + 1, tmpName, realLen); in PlatformDeviceSetName()
93 PLAT_LOGE("PlatformDeviceSetName: copy name(%s) fail, ret: %d!", tmpName, ret); in PlatformDeviceSetName()
/drivers/peripheral/usb/hdi_service/src/
Dusbd_function.cpp268 char tmpName[UDC_NAME_MAX_LEN] = {0}; in UsbdWaitUdc() local
276 (void)memset_s(tmpName, UDC_NAME_MAX_LEN, 0, UDC_NAME_MAX_LEN); in UsbdWaitUdc()
277 if (fread(tmpName, strlen(udcName), 1, fp) != 1) { in UsbdWaitUdc()
281 if (strcmp(udcName, tmpName) == 0) { in UsbdWaitUdc()
287 if (strcmp(udcName, tmpName) != 0) { in UsbdWaitUdc()
/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_manager.c250 char *tmpName = (char *)data; in GpioCntlrFindMatchByName() local
260 if (strcmp(cntlr->ginfos[index].name, tmpName) == 0) { in GpioCntlrFindMatchByName()