Home
last modified time | relevance | path

Searched refs:EOK (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_device_mitigation.cpp106 if (snprintf_s(nodeBuf, MAX_BUF_PATH, sizeof(nodeBuf) - 1, "%s", path.c_str()) < EOK) { in ExecuteCpuRequest()
109 if (snprintf_s(freqBuf, MAX_PATH, sizeof(freqBuf) - 1, "%d", freq) < EOK) { in ExecuteCpuRequest()
152 if (ret < EOK) { in GpuRequest()
156 if (ret < EOK) { in GpuRequest()
180 if (ret < EOK) { in ExecuteChargerRequest()
184 if (ret < EOK) { in ExecuteChargerRequest()
205 if (ret < EOK) { in BatteryCurrentRequest()
209 if (ret < EOK) { in BatteryCurrentRequest()
230 if (ret < EOK) { in BatteryVoltageRequest()
234 if (ret < EOK) { in BatteryVoltageRequest()
[all …]
Dthermal_simulation_node.cpp118 if (ret < EOK) { in AddSensorTypeTemp()
125 if (ret < EOK) { in AddSensorTypeTemp()
132 if (ret < EOK) { in AddSensorTypeTemp()
138 if (ret < EOK) { in AddSensorTypeTemp()
155 if (ret < EOK) { in AddFanSensorNode()
161 if (ret < EOK) { in AddFanSensorNode()
169 if (ret < EOK) { in AddFanSensorNode()
196 if (ret < EOK) return HDF_FAILURE; in AddMitigationDevice()
202 if (ret < EOK) return HDF_FAILURE; in AddMitigationDevice()
207 if (ret < EOK) return HDF_FAILURE; in AddMitigationDevice()
[all …]
/drivers/peripheral/pin_auth/hdi_service/common/src/
Dbuffer.c63 if (memset_s(buffer->buf, size, 0, size) != EOK) { in CreateBufferBySize()
94 if (memcpy_s(buffer->buf, dataSize, data, dataSize) != EOK) { in CreateBufferByData()
112 if (memcpy_s(buffer->buf, buffer->maxSize, buf, bufSize) != EOK) { in InitBuffer()
125 if (memset_s(buffer->buf, buffer->maxSize, 0, buffer->maxSize) != EOK) { in DestoryBuffer()
150 if (memcpy_s(copyBuffer->buf, copyBuffer->maxSize, buffer->buf, buffer->contentSize) != EOK) { in CopyBuffer()
183 if (memcpy_s(data, *dataSize, buffer->buf, buffer->contentSize) != EOK) { in GetBufferData()
/drivers/peripheral/user_auth/hdi_service/key_mgr/src/
Dtoken_key.c28 HKS_DEFAULT_USER_AT_KEY_LEN) != EOK) { in GetTokenKey()
34 HKS_DEFAULT_USER_AT_KEY_LEN) != EOK) { in GetTokenKey()
/drivers/peripheral/user_auth/hdi_service/common/src/
Dbuffer.c75 if (memset_s(buffer->buf, size, 0, size) != EOK) { in CreateBufferBySize()
106 if (memcpy_s(buffer->buf, dataSize, data, dataSize) != EOK) { in CreateBufferByData()
121 if (memset_s(buffer->buf, buffer->maxSize, 0, buffer->maxSize) != EOK) { in DestoryBuffer()
146 if (memcpy_s(copyBuffer->buf, copyBuffer->maxSize, buffer->buf, buffer->contentSize) != EOK) { in CopyBuffer()
178 if (memcpy_s(data, *dataSize, buffer->buf, buffer->contentSize) != EOK) { in GetBufferData()
Dc_array.c83 if (memcpy_s(array->data, len, data, len) != EOK) { in CreateUint8ArrayByData()
114 if (memcpy_s(array->data, len * sizeof(uint64_t), data, len * sizeof(uint64_t)) != EOK) { in CreateUint64ArrayByData()
/drivers/peripheral/codec/test/demo/idl/include/
Dcodec_utils.h30 if (ret != EOK) { in InitParam()
43 if (ret != EOK) { in InitParamInOhos()
64 if (ret != EOK) { in VectorToObject()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_deal_log_format.c51 if (ret != EOK) { in deal_format()
64 if (ret != EOK) { in deal_format()
/drivers/peripheral/user_auth/test/unittest/service_test/src/
Dsignature_operation.cpp106 …uf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &tempType, sizeof(tempType)) != EOK) { in WriteTlvHead()
111 …_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &length, sizeof(length)) != EOK) { in WriteTlvHead()
126 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, value, length) != EOK) { in WriteTlv()
218 if (memcpy_s(&resultTlv[0], retTlv->contentSize, retTlv->buf, retTlv->contentSize) != EOK) { in GetExecutorResultTlv()
237 if (memcpy_s(&vPubKey[0], pubKey->contentSize, pubKey->buf, pubKey->contentSize) != EOK) { in GetExecutorPublicKey()
/drivers/hdf_core/framework/support/platform/src/pwm/
Dpwm_if_u.c179 if (memcpy_s(config, sizeof(struct PwmConfig), rBuf, rLen) != EOK) { in PwmGetConfig()
246 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetPeriod()
267 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetDuty()
289 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmSetPolarity()
311 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmEnable()
333 if (memset_s(&config, sizeof(struct PwmConfig), 0, sizeof(struct PwmConfig)) != EOK) { in PwmDisable()
/drivers/peripheral/pin_auth/hdi_service/main/src/
Dpin_auth.cpp95 if (memcpy_s(&(pinEnrollParam.salt[0]), CONST_SALT_LEN, salt.data(), CONST_SALT_LEN) != EOK) { in EnrollPin()
99 …y_s(&(pinEnrollParam.pinData[0]), CONST_PIN_DATA_LEN, pinData.data(), CONST_PIN_DATA_LEN) != EOK) { in EnrollPin()
115 if (memcpy_s(resultTlv.data(), retTlv->contentSize, retTlv->buf, retTlv->contentSize) != EOK) { in EnrollPin()
156 …(memcpy_s(&(pinAuthParam.pinData[0]), CONST_PIN_DATA_LEN, pinData.data(), pinData.size()) != EOK) { in AuthPin()
172 if (memcpy_s(resultTlv.data(), retTlv->contentSize, retTlv->buf, retTlv->contentSize) != EOK) { in AuthPin()
229 …mcpy_s(pubKey.data(), CONST_PUB_KEY_LEN, &(pinExecutorInfo.pubKey[0]), CONST_PUB_KEY_LEN) != EOK) { in GetExecutorInfo()
/drivers/hdf_core/framework/utils/src/
Dhdf_cstring.c41 if (strncpy_s(instance->value, strLen + 1, str, strLen) != EOK) { in HdfCStringObtain()
74 if (strncpy_s(newStr, dstSize, src, srcSize) != EOK) { in HdfStringCopy()
/drivers/peripheral/codec/hal/idl_service/src/
Dcodec_dfx_service.cpp133 if (strcmp(para, "-h") == EOK) { in DevCodecHostDump()
143 } else if (strcmp(para, "-l") == EOK) { in DevCodecHostDump()
145 } else if (strcmp(para, "-m") == EOK) { in DevCodecHostDump()
/drivers/peripheral/power/test/unittest/src/
Dhdf_power_hdi_test.cpp87 EXPECT_FALSE(ret < EOK);
121 EXPECT_FALSE(ret < EOK);
148 EXPECT_FALSE(ret < EOK);
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_infoframe.c60 if (memset_s(data, len, 0, len) != EOK) { in HdmiInfoFramePacketVsEncoding()
87 … if (memcpy_s(&data[length], (len - length), userContent->data, userContent->len) != EOK) { in HdmiInfoFramePacketVsEncoding()
109 if (memset_s(buff, len, 0, len) != EOK) { in HdmiInfoFramePacketAviEncoding()
183 if (memset_s(buff, len, 0, len) != EOK) { in HdmiInfoFramePacketSpdEncoding()
190 …buff, (len - HDMI_INFOFRAME_PACKET_HEADER_LEN), spd->vendorName, sizeof(spd->vendorName)) != EOK) { in HdmiInfoFramePacketSpdEncoding()
197 spd->productDescription, sizeof(spd->productDescription)) != EOK) { in HdmiInfoFramePacketSpdEncoding()
219 if (memset_s(buff, len, 0, len) != EOK) { in HdmiInfoFramePacketAudioEncoding()
261 if (memset_s(buff, len, 0, len) != EOK) { in HdmiInfoFramePacketDrmEncoding()
473 if (memset_s(avi, sizeof(struct HdmiAviInfoFrame), 0, sizeof(struct HdmiAviInfoFrame)) != EOK) { in HdmiFillAviInfoFrame()
525 …(memset_s(audio, sizeof(struct HdmiAudioInfoFrame), 0, sizeof(struct HdmiAudioInfoFrame)) != EOK) { in HdmiFillAudioInfoFrame()
[all …]
/drivers/hdf_core/adapter/uhdf2/host/src/
Ddriver_loader_full.c46 if (strcat_s(driverPath, sizeof(driverPath) - 1, DRIVER_PATH) != EOK) { in HdfDriverLoaderGetDriver()
50 if (strcat_s(driverPath, (sizeof(driverPath) - 1 - sizeof(DRIVER_PATH)), moduleName) != EOK) { in HdfDriverLoaderGetDriver()
/drivers/peripheral/usb/ddk/device/src/
Dadapter_if_liteos.c80 if (ret != EOK) { in UsbFnAdapterCreateFconfigString()
119 if (ret != EOK) { in UsbFnAdapterWriteDevDesc()
292 if (ret != EOK) { in UsbFnWriteStrings()
299 if (ret != EOK) { in UsbFnWriteStrings()
311 if (ret != EOK) { in UsbFnWriteStrings()
370 if (memcpy_s(*whereDec, headDes[i]->bLength, headDes[i], headDes[i]->bLength) != EOK) { in WriteFuncDescriptors()
384 if (ret != EOK) { in CopyCount()
391 if (ret != EOK) { in CopyCount()
398 if (ret != EOK) { in CopyCount()
427 if (ret != EOK) { in UsbFnAdapterCreatPipes()
[all …]
/drivers/peripheral/user_auth/hdi_service/idm/src/
Didm_session.c91 if (memset_s(g_session, sizeof(struct SessionInfo), 0, sizeof(struct SessionInfo)) != EOK) { in OpenEditSession()
108 if (memcpy_s(challenge, CHALLENGE_LEN, g_session->challenge, CHALLENGE_LEN) != EOK) { in OpenEditSession()
166 if (memcmp(challenge, g_session->challenge, CHALLENGE_LEN) != EOK) { in CheckChallenge()
/drivers/peripheral/wlan/client/src/sbuf/
Dsbuf_event_adapter.c123 if (memcpy_s(dst, sizeof(WifiScanResult), src, sizeof(WifiScanResult)) != EOK) { in FillScanResult()
132 if (memcpy_s(dst->bssid, ETH_ADDR_LEN, src->bssid, ETH_ADDR_LEN) != EOK) { in FillScanResult()
141 if (memcpy_s(dst->ie, src->ieLen, src->ie, src->ieLen) != EOK) { in FillScanResult()
150 if (memcpy_s(dst->beaconIe, src->beaconIeLen, src->beaconIe, src->beaconIeLen) != EOK) { in FillScanResult()
201 if (FillScanResult(&g_scanResults.scanResult[g_scanResults.num], &scanResult) != EOK) { in WifiEventScanResultProcess()
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
Duser_sign_centre.c65 if (memcpy_s(userAuthToken->sign, SHA256_DIGEST_SIZE, sign->buf, sign->contentSize) != EOK) { in UserAuthTokenSign()
113 plaintext->buf, plaintext->contentSize) != EOK) { in DecryptTokenCipher()
181 …_s(authToken->tokenDataPlain.challenge, CHALLENGE_LEN, context->challenge, CHALLENGE_LEN) != EOK) { in GetTokenDataPlain()
222 ciphertext->buf, ciphertext->contentSize) != EOK) { in CopyTokenCipherParam()
230 if (memcpy_s(authToken->tag, sizeof(authToken->tag), tag->buf, tag->contentSize) != EOK) { in CopyTokenCipherParam()
238 if (memcpy_s(authToken->iv, sizeof(authToken->iv), iv->buf, iv->contentSize) != EOK) { in CopyTokenCipherParam()
/drivers/hdf_core/framework/test/unittest/platform/common/
Dpin_driver_test.c75 if (strcpy_s(config->funcNameBuf, NAME_SIZE_MAX, funcName) != EOK) { in PinTestReadConfig()
80 if (strcpy_s(config->pinNameBuf, NAME_SIZE_MAX, config->pinName) != EOK) { in PinTestReadConfig()
/drivers/peripheral/thermal/test/unittest/
Dhdf_thermal_hdi_test.cpp162 if (snprintf_s(cpuBuf, MAX_PATH, sizeof(cpuBuf) - 1, CPU_FREQ_PATH.c_str()) < EOK) {
194 if (snprintf_s(cpuBuf, MAX_PATH, sizeof(cpuBuf) - 1, GPU_FREQ_PATH.c_str()) < EOK) {
226 …if (snprintf_s(cpuBuf, MAX_PATH, sizeof(cpuBuf) - 1, BATTERY_CHARGER_CURRENT_PATH.c_str()) < EOK) {
292 if (snprintf_s(path, MAX_PATH, sizeof(path) - 1, ISOLATE_PATH.c_str()) < EOK) {
/drivers/peripheral/codec/test/demo/jpeg/src/
Dcodec_jpeg_helper.cpp242 if (ret != EOK) { in JpegDhtAssemble()
251 if (ret != EOK) { in JpegDhtAssemble()
319 if (ret != EOK) { in JpegSofAssemble()
363 if (ret != EOK) { in JpegSosAssemble()
380 if (ret != EOK) { in JpegDataAssemble()
482 if (ret != EOK) { in DessambleCompressData()
562 if (ret != EOK) { in PutInt16()
572 if (ret != EOK) { in PutInt8()
/drivers/peripheral/user_auth/hdi_service/service/
Duser_auth_interface_service.cpp95 in->executors[i].pubKey, PUBLIC_KEY_LEN) != EOK) { in CopyScheduleInfoV1_1()
239 param.challenge.size()) != EOK) { in BeginAuthenticationV1_1()
315 …(memcpy_s(msg.msg.data(), msg.msg.size(), nodeMsgBuffer->buf, nodeMsgBuffer->contentSize) != EOK) { in CreateExecutorCommand()
335 …cpy_s(infoOut.token.data(), infoOut.token.size(), &authTokenIn, sizeof(UserAuthTokenHal)) != EOK) { in CopyAuthResult()
343 infoIn.rootSecret->buf, infoIn.rootSecret->contentSize) != EOK) { in CopyAuthResult()
421 …e.empty() && memcpy_s(param.challenge, CHALLENGE_LEN, challenge.data(), challenge.size()) != EOK) { in BeginIdentificationV1_1()
473 if (memcpy_s(info.token.data(), info.token.size(), &token, sizeof(token)) != EOK) { in UpdateIdentificationResult()
562 memcpy_s(checkParam.token, AUTH_TOKEN_LEN, &authToken[0], authToken.size()) != EOK) { in BeginEnrollmentV1_1()
651 …info.rootSecret.data(), info.rootSecret.size(), rootSecret->buf, rootSecret->contentSize) != EOK) { in UpdateEnrollmentResult()
672 if (memcpy_s(param.token, AUTH_TOKEN_LEN, &authToken[0], authToken.size()) != EOK) { in DeleteCredential()
[all …]
/drivers/hdf_core/framework/model/storage/src/mmc/
Demmc_if.c38 if (memcpy_s(cid, size, rBuf, rLen) != EOK) { in EmmcGetCidReadReplyData()
148 if (memset_s(cid, sizeof(uint8_t) * size, 0, sizeof(uint8_t) * size) != EOK) { in EmmcGetHuid()

12345678910>>...13