Home
last modified time | relevance | path

Searched refs:temp (Results 1 - 25 of 64) sorted by relevance

123

/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcodec_packet_reader.cpp59 char *temp = buf; in ReadOnePacket() local
60 temp += START_CODE_SIZE_FRAME; in ReadOnePacket()
63 ioIn.read(temp, 1); in ReadOnePacket()
64 if (*temp == START_CODE) { in ReadOnePacket()
66 if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SEC] == 0) && in ReadOnePacket()
67 (temp[START_CODE_OFFSET_THIRD] == 0)) { in ReadOnePacket()
69 temp -= (START_CODE_SIZE_FRAME - 1); in ReadOnePacket()
72 } else if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SE in ReadOnePacket()
95 char *temp = buf; ReadOnePacket() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/
H A Dmipi_tx_dev.c308 struct MipiCfg *temp = NULL; in MipiDsiDevSetCfg() local
322 temp = (struct MipiCfg *)OsalMemCalloc(size); in MipiDsiDevSetCfg()
323 if (temp == NULL) { in MipiDsiDevSetCfg()
333 if (CopyFromUser(temp, arg, size) != 0) { in MipiDsiDevSetCfg()
334 OsalMemFree(temp); in MipiDsiDevSetCfg()
335 temp = NULL; in MipiDsiDevSetCfg()
340 OsalMemFree(temp); in MipiDsiDevSetCfg()
341 temp = NULL; in MipiDsiDevSetCfg()
346 ret = MipiDsiCntlrSetCfg(cntlr, temp); in MipiDsiDevSetCfg()
348 OsalMemFree(temp); in MipiDsiDevSetCfg()
357 struct DsiCmdDesc *temp = NULL; MipiDsiDevSetCmd() local
411 MipiDsiDevCmdCopyFromUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyFromUser() argument
429 MipiDsiDevCmdCopyToUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyToUser() argument
450 GetDsiCmdDescTag *temp = NULL; MipiDsiDevGetCmd() local
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiocapture_fuzzer/
H A Daudiocapture_fuzzer.cpp62 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in AudioCaptureReqMmapBuffer() local
66 .memoryFd = temp, in AudioCaptureReqMmapBuffer()
67 .totalBufferFrames = temp, in AudioCaptureReqMmapBuffer()
68 .transferFrameSize = temp, in AudioCaptureReqMmapBuffer()
69 .isShareable = temp, in AudioCaptureReqMmapBuffer()
70 .offset = temp, in AudioCaptureReqMmapBuffer()
73 capture->ReqMmapBuffer(capture, temp, &desc); in AudioCaptureReqMmapBuffer()
114 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in CaptureFucSwitch() local
115 capture->AudioDevDump(capture, temp, temp); in CaptureFucSwitch()
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiorender_fuzzer/
H A Daudiorender_fuzzer.cpp63 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in AudioRenderReqMmapBuffer() local
67 .memoryFd = temp, in AudioRenderReqMmapBuffer()
68 .totalBufferFrames = temp, in AudioRenderReqMmapBuffer()
69 .transferFrameSize = temp, in AudioRenderReqMmapBuffer()
70 .isShareable = temp, in AudioRenderReqMmapBuffer()
71 .offset = temp, in AudioRenderReqMmapBuffer()
74 render->ReqMmapBuffer(render, temp, &desc); in AudioRenderReqMmapBuffer()
116 int32_t temp = *(reinterpret_cast<uint32_t *>(data)); in RenderFucSwitch() local
117 render->AudioDevDump(render, temp, temp); in RenderFucSwitch()
[all...]
/drivers/peripheral/user_auth/hdi_service/database/src/
H A Didm_database.c157 LinkedListNode *temp = user->enrolledInfoList->head; in GetEnrolledInfoAuthType() local
158 while (temp != NULL) { in GetEnrolledInfoAuthType()
159 EnrolledInfoHal *nodeInfo = temp->data; in GetEnrolledInfoAuthType()
164 temp = temp->next; in GetEnrolledInfoAuthType()
230 LinkedListNode *temp = g_userInfoList->head; in QueryUserInfo() local
231 while (temp != NULL) { in QueryUserInfo()
232 user = (UserInfo *)temp->data; in QueryUserInfo()
236 temp = temp in QueryUserInfo()
258 LinkedListNode *temp = enrolledInfoList->head; GetAllEnrolledInfoFromUser() local
292 LinkedListNode *temp = userInfoList->head; IsSecureUidDuplicate() local
353 LinkedListNode *temp = enrolledList->head; IsEnrolledIdDuplicate() local
392 LinkedListNode *temp = enrolledList->head; UpdateEnrolledId() local
603 LinkedListNode *temp = user->credentialInfoList->head; RemoveCachePin() local
658 LinkedListNode *temp = user->credentialInfoList->head; DeletePinCredentialInfo() local
749 LinkedListNode *temp = credentialList->head; QueryCredentialById() local
767 LinkedListNode *temp = credentialList->head; QueryCredentialByAuthType() local
829 LinkedListNode *temp = credentialList->head; TraverseCredentialList() local
873 LinkedListNode *temp = g_userInfoList->head; QueryCredentialLimit() local
909 LinkedListNode *temp = g_userInfoList->head; QueryCredentialUserId() local
[all...]
H A Didm_file_manager.c49 LinkedListNode *temp = enrolledList->head; in StreamWriteEnrolledInfo() local
51 if (temp == NULL) { in StreamWriteEnrolledInfo()
55 if (StreamWrite(parcel, temp->data, sizeof(EnrolledInfoHal)) != RESULT_SUCCESS) { in StreamWriteEnrolledInfo()
59 temp = temp->next; in StreamWriteEnrolledInfo()
76 LinkedListNode *temp = credentialList->head; in StreamWriteCredentialList() local
78 if (temp == NULL) { in StreamWriteCredentialList()
82 if (StreamWrite(parcel, temp->data, sizeof(CredentialInfoHal)) != RESULT_SUCCESS) { in StreamWriteCredentialList()
86 temp = temp in StreamWriteCredentialList()
130 LinkedListNode *temp = userInfoList->head; WriteUserInfo() local
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Dauth_level.c99 LinkedListNode *temp = executorList->head; in GetExecutorAslAndAcl() local
100 while (temp != NULL) { in GetExecutorAslAndAcl()
101 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetExecutorAslAndAcl()
114 temp = temp->next; in GetExecutorAslAndAcl()
136 LinkedListNode *temp = creds->head; in GetCredMaxAcl() local
137 while (temp != NULL) { in GetCredMaxAcl()
138 if (temp->data == NULL) { in GetCredMaxAcl()
143 CredentialInfoHal *credInfo = (CredentialInfoHal *)temp->data; in GetCredMaxAcl()
145 temp in GetCredMaxAcl()
[all...]
H A Dcontext_manager.c369 LinkedListNode *temp = credList->head; in QueryAuthTempletaInfo() local
370 if (temp == NULL || temp->data == NULL) { in QueryAuthTempletaInfo()
374 CredentialInfoHal *credentialHal = (CredentialInfoHal *)temp->data; in QueryAuthTempletaInfo()
378 while (temp != NULL) { in QueryAuthTempletaInfo()
379 if (temp->data == NULL) { in QueryAuthTempletaInfo()
383 credentialHal = (CredentialInfoHal *)temp->data; in QueryAuthTempletaInfo()
388 temp = temp->next; in QueryAuthTempletaInfo()
492 LinkedListNode *temp in CopySchedules() local
[all...]
H A Duser_auth_funcs.c503 LinkedListNode *temp = executorList->head; in GetExecutorInfoLinkedList() local
504 while (temp != NULL) { in GetExecutorInfoLinkedList()
505 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetExecutorInfoLinkedList()
522 temp = temp->next; in GetExecutorInfoLinkedList()
531 LinkedListNode *temp = executorList->head; in GetSignExecutorInfoFuncInner() local
533 while (temp != NULL) { in GetSignExecutorInfoFuncInner()
534 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetSignExecutorInfoFuncInner()
549 temp = temp in GetSignExecutorInfoFuncInner()
[all...]
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_v0.c49 uint8_t *temp = data; in GetPinIndexV0() local
52 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndex[i].pinInfo)), in GetPinIndexV0()
74 uint8_t *temp = data; in UnpackPinDbV0() local
76 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->version)), in UnpackPinDbV0()
85 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndexLen)), in UnpackPinDbV0()
99 if (GetPinIndexV0(temp, tempLen, pinDbV0) != RESULT_SUCCESS) { in UnpackPinDbV0()
H A Dpin_db_ops_v1.c80 uint8_t *temp = data; in GetPinIndexV1() local
83 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->pinIndex[i].pinInfo)), in GetPinIndexV1()
105 uint8_t *temp = data; in UnpackPinDbV1() local
107 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->dbVersion)), in UnpackPinDbV1()
116 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->pinIndexLen)), in UnpackPinDbV1()
129 if (GetPinIndexV1(temp, tempLen, pinDbV1) != RESULT_SUCCESS) { in UnpackPinDbV1()
180 uint8_t *temp = data; in WritePinInfo() local
184 &temp, &tempLen) != RESULT_SUCCESS) { in WritePinInfo()
238 uint8_t *temp = data; in WritePinDbV1() local
241 &temp, in WritePinDbV1()
[all...]
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_mem.c72 int temp = alignment; in OsalMemLog2() local
78 while (temp > 1) { in OsalMemLog2()
79 temp >>= 1; in OsalMemLog2()
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dpwm_driver_test.c44 uint32_t temp; in PwmTestReadConfig() local
75 ret = drsOps->GetUint32(node, "polarity", &(temp), 0); in PwmTestReadConfig()
80 config->cfg.polarity = temp; in PwmTestReadConfig()
82 ret = drsOps->GetUint32(node, "status", &(temp), 0); in PwmTestReadConfig()
87 config->cfg.status = temp; in PwmTestReadConfig()
H A Dwatchdog_driver_test.c45 uint32_t temp; in WatchdogTestReadConfig() local
53 ret = drsOps->GetUint32(node, "id", &temp, 0); in WatchdogTestReadConfig()
58 config->id = temp; in WatchdogTestReadConfig()
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c310 char *temp = value; in HiviewHieventMakeRegular() local
314 while (*temp != '\0') { in HiviewHieventMakeRegular()
315 if (*temp == ':') { in HiviewHieventMakeRegular()
317 } else if (*temp == ';') { in HiviewHieventMakeRegular()
319 } else if ((*temp == '\n') || (*temp == '\r')) { in HiviewHieventMakeRegular()
320 *temp = ' '; in HiviewHieventMakeRegular()
322 temp++; in HiviewHieventMakeRegular()
338 temp = value; in HiviewHieventMakeRegular()
339 while (*temp ! in HiviewHieventMakeRegular()
[all...]
/drivers/peripheral/location/gnss/hdi_service/
H A Dstring_utils.cpp51 auto temp = static_cast<uint8_t>((HexCharToInt(str.at(i)) << HEX_OFFSET) | HexCharToInt(str.at(i + 1))); in HexToByteVector() local
52 ret.push_back(temp); in HexToByteVector()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
H A Dosal_spinlock.c117 unsigned long temp = 0; in OsalSpinLockIrqSave() local
124 spin_lock_irqsave((spinlock_t *)spinlock->realSpinlock, temp); in OsalSpinLockIrqSave()
125 *flags = temp; in OsalSpinLockIrqSave()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
H A Dosal_spinlock.c134 uint32_t temp = 0; in OsalSpinLockIrqSave() local
139 spin_lock_irqsave((spinlock_t *)spinlock->realSpinlock, temp); in OsalSpinLockIrqSave()
140 *flags = temp; in OsalSpinLockIrqSave()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp230 LinkedListNode *temp = credList->head; in GetCapabilityLevel() local
231 while (temp != nullptr) { in GetCapabilityLevel()
232 if (temp->data == nullptr) { in GetCapabilityLevel()
237 auto credentialHal = static_cast<CredentialInfoHal *>(temp->data); in GetCapabilityLevel()
241 temp = temp->next; in GetCapabilityLevel()
530 HdiScheduleInfo temp = {}; in BeginAuthentication() local
532 if (!CopyAuthScheduleInfo(paramHal, coAuthSchedule, &temp)) { in BeginAuthentication()
538 infos.push_back(temp); in BeginAuthentication()
570 LinkedListNode *temp in CreateExecutorCommand() local
1077 LinkedListNode *temp = credList->head; GetCredential() local
1168 LinkedListNode *temp = credList->head; EnforceDeleteUser() local
1245 LinkedListNode *temp = credList->head; ObtainReconciliationData() local
[all...]
/drivers/peripheral/codec/test/demo/idl/src/
H A Dcodec_hdi_decode.cpp99 char *temp = buf; in ReadOnePacket() local
100 temp += START_CODE_SIZE_FRAME; in ReadOnePacket()
103 (void)fread(temp, 1, 1, fp); in ReadOnePacket()
104 if (*temp != START_CODE) { in ReadOnePacket()
105 temp++; in ReadOnePacket()
109 if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SEC] == 0) && in ReadOnePacket()
110 (temp[START_CODE_OFFSET_THIRD] == 0)) { in ReadOnePacket()
112 temp -= (START_CODE_SIZE_FRAME - 1); in ReadOnePacket()
116 if ((temp[START_CODE_OFFSET_ON in ReadOnePacket()
[all...]
/drivers/peripheral/audio/test/sample/
H A Dframework_common.c179 uint32_t temp = flag[0]; in StringToInt() local
181 temp <<= MOVE_LEFT_NUM; in StringToInt()
182 temp += flag[i]; in StringToInt()
184 return temp; in StringToInt()
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dbluetooth_address.cpp64 char temp[ADDR_BYTE] = {0}; in ParseAddressToString() local
65 int ret = sprintf_s(temp, sizeof(temp), "%02X:%02X:%02X:%02X:%02X:%02X", in ParseAddressToString()
70 outString = temp; in ParseAddressToString()
/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_if_u.c64 struct RtcTime *temp = NULL; in RtcReadTime() local
90 if (!HdfSbufReadBuffer(reply, (const void **)&temp, &len) || temp == NULL) { in RtcReadTime()
102 if (memcpy_s(time, sizeof(*time), temp, len) != EOK) { in RtcReadTime()
165 struct RtcTime *temp = NULL; in RtcReadAlarm() local
205 if (!HdfSbufReadBuffer(reply, (const void **)&temp, &len) || temp == NULL) { in RtcReadAlarm()
217 if (memcpy_s(time, sizeof(*time), temp, len) != EOK) { in RtcReadAlarm()
/drivers/peripheral/audio/hal/hdi_binder/server/src/
H A Dhdf_audio_pnp_uevent_hdmi.c95 const char *temp = str + strlen(UEVENT_STATE) + 1; // 1 is a skip character '=' in AudioPnpUeventParse() local
96 if (strncmp(temp, UEVENT_HDMI_STATE, strlen(UEVENT_HDMI_STATE)) == 0) { in AudioPnpUeventParse()
97 return AudioHdmiPnpUeventStatus(temp, true); in AudioPnpUeventParse()
/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_service_stub.c229 char temp[PATH_MAX] = {0}; in MakeModulePath() local
230 if (sprintf_s(temp, PATH_MAX, "%s/%s.ko", HDF_MODULE_DIR, moduleName) <= 0) { in MakeModulePath()
234 HDF_LOGI("driver module file: %{public}s", temp); in MakeModulePath()
236 char *path = realpath(temp, buffer); in MakeModulePath()
238 HDF_LOGE("driver module file is invalid: %{public}s", temp); in MakeModulePath()

Completed in 13 milliseconds

123