/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_053.cpp | 38 UINT32 ret; in pthread_f01() local 53 ret = pthread_setspecific(g_key, (void *)&temp); in pthread_f01() 54 ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT); in pthread_f01() 56 ret = pthread_setspecific(g_key1, (void *)&temp1); in pthread_f01() 57 ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT); in pthread_f01() 59 ret = pthread_setspecific(g_key2, (void *)str); in pthread_f01() 60 ICUNIT_GOTO_EQUAL(ret, 0, ret, EXI in pthread_f01() 82 UINT32 ret; pthread_f02() local 128 UINT32 ret; Testcase() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
H A D | 1-2.c | 52 * UNRESOLVED(ret, descr); 53 * where descr is a description of the error and ret is an int (error code for example) 210 int ret = 0; in child() local 215 ret = pthread_mutex_lock(&td->mtx); in child() 216 if (ret != 0) { in child() 217 UNRESOLVED(ret, "Failed to lock mutex in child"); in child() 227 ret = clock_gettime(td->cid, &ts); in child() 228 if (ret != 0) { in child() 237 ret = pthread_cond_timedwait(&td->cnd, &td->mtx, &ts); in child() 239 ret in child() 285 int ret; main() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/ |
H A D | stress1.c | 75 * UNRESOLVED(ret, descr); 76 * where descr is a description of the error and ret is an int (error code for example) 219 int ret; in threaded_B() local 223 ret = pthread_mutex_lock(&(cd->mtx)); in threaded_B() 224 if (ret != 0) { in threaded_B() 225 UNRESOLVED(ret, "[gchild] Unable to lock mutex"); in threaded_B() 229 ret = pthread_cond_broadcast(&(cd->cnd)); in threaded_B() 230 if (ret != 0) { in threaded_B() 231 UNRESOLVED(ret, "[gchild] Broadcast failed"); in threaded_B() 234 ret in threaded_B() 271 int ret, status; threaded_A() local 378 int ret, i, j; main() local [all...] |
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_ledger/ |
H A D | lnn_disctributed_net_ledger_test.cpp | 89 int32_t ret = LnnInitDistributedLedger(); in SetUp() local 90 EXPECT_TRUE(ret == SOFTBUS_OK); in SetUp() 151 int32_t ret = LnnGetRemoteStrInfo(nullptr, STRING_KEY_HICE_VERSION, buf, UDID_BUF_LEN); in HWTEST_F() local 152 EXPECT_TRUE(ret == SOFTBUS_INVALID_PARAM); in HWTEST_F() 153 ret = LnnGetRemoteStrInfo(NODE1_NETWORK_ID, STRING_KEY_HICE_VERSION, nullptr, UDID_BUF_LEN); in HWTEST_F() 154 EXPECT_TRUE(ret == SOFTBUS_INVALID_PARAM); in HWTEST_F() 155 ret = LnnGetRemoteStrInfo(NODE1_NETWORK_ID, NUM_KEY_BEGIN, buf, UDID_BUF_LEN); in HWTEST_F() 156 EXPECT_TRUE(ret == SOFTBUS_INVALID_PARAM); in HWTEST_F() 160 ret = LnnGetRemoteStrInfo(NODE1_NETWORK_ID, keyStringTable[i], buf, UDID_BUF_LEN); in HWTEST_F() 161 EXPECT_TRUE(ret in HWTEST_F() 187 int32_t ret; HWTEST_F() local 209 int32_t ret = LnnGetRemoteByteInfo(nullptr, BYTE_KEY_IRK, irk, LFINDER_IRK_LEN); HWTEST_F() local 250 short ret = LnnGetCnnCode(nullptr, type); HWTEST_F() local 269 int32_t ret = LnnUpdateNodeInfo(&newInfo); HWTEST_F() local 300 int32_t ret = LnnGetBasicInfoByUdid(NODE1_UDID, nullptr); HWTEST_F() local 316 int32_t ret = LnnConvertDlId(nullptr, CATEGORY_UDID, CATEGORY_UDID, buf, UDID_BUF_LEN); HWTEST_F() local 341 bool ret = LnnSetDLP2pInfo(nullptr, &info); HWTEST_F() local 358 int32_t ret = LnnGetNetworkIdByBtMac(nullptr, buf, NETWORK_ID_BUF_LEN); HWTEST_F() local 375 int32_t ret = LnnGetNetworkIdByUuid(nullptr, buf, UUID_BUF_LEN); HWTEST_F() local 392 int32_t ret = LnnGetNetworkIdByUdid(nullptr, buf, UDID_BUF_LEN); HWTEST_F() local 409 int32_t ret = LnnGetDLHeartbeatTimestamp(NODE1_NETWORK_ID, &timeStamp); HWTEST_F() local 424 int32_t ret = LnnSetDLHeartbeatTimestamp(NODE1_NETWORK_ID, timeStamp); HWTEST_F() local 439 int32_t ret = LnnSetDLConnCapability(NODE2_NETWORK_ID, connCapability); HWTEST_F() local 451 int32_t ret = LnnSetDLNodeAddr(NODE1_NETWORK_ID, CATEGORY_NETWORK_ID, NODE_ADDRESS); HWTEST_F() local 477 int32_t ret = LnnGetRemoteNum16Info(NODE1_NETWORK_ID, NUM_KEY_DATA_CHANGE_FLAG, &info); HWTEST_F() local 507 int32_t ret = LnnGetLnnRelation(nullptr, CATEGORY_UDID, relation, CONNECTION_ADDR_MAX); HWTEST_F() local 523 bool ret = LnnSetDLDeviceInfoName(nullptr, nullptr); HWTEST_F() local 540 int32_t ret = InitDistributedInfo(nullptr); HWTEST_F() local 557 bool ret = IsNetworkIdChanged(nullptr, nullptr); HWTEST_F() local 567 bool ret = IsMetaNode(nullptr); HWTEST_F() local 577 NodeInfo *ret = LnnGetNodeInfoById(nullptr, type); HWTEST_F() local 587 int32_t ret = LnnGetRemoteNodeInfoByKey(nullptr, nullptr); HWTEST_F() local 600 int32_t ret = DlGetDeviceTypeId(nullptr, true, nullptr, len); HWTEST_F() local 611 int32_t ret = DlGetWifiCfg(nullptr, true, nullptr, len); HWTEST_F() local 646 int32_t ret = DlGetNodeTlvNegoFlag(nullptr, true, nullptr, len); HWTEST_F() local 666 int32_t ret = AddCnnCode(&cnnCode, nullptr, type, authSeqNum); HWTEST_F() local 688 int32_t ret = LnnUpdateAccountInfo(nullptr); HWTEST_F() local 695 int32_t ret = LnnUpdateGroupType(nullptr); HWTEST_F() local 712 int32_t ret = LnnGetRemoteByteInfo(nullptr, key, &info, len); HWTEST_F() local 727 bool ret = LnnIsLSANode(&info); HWTEST_F() local 742 int32_t ret = LnnGetNetworkIdByUdidHash(nullptr, len, nullptr, len); HWTEST_F() local 751 int32_t ret = LnnGetDLOnlineTimestamp(nullptr, ×tamp); HWTEST_F() local 759 int32_t ret = LnnSetDLBatteryInfo(nullptr, &info); HWTEST_F() local 769 int32_t ret = LnnSetDLBssTransInfo(nullptr, &info); HWTEST_F() local 779 int32_t ret = LnnSetDLProxyPort(nullptr, type, proxyPort); HWTEST_F() local 787 int32_t ret = LnnSetDLSessionPort(nullptr, type, sessionPort); HWTEST_F() local 796 int32_t ret = LnnSetDLAuthPort(nullptr, type, authPort); HWTEST_F() local 805 int32_t ret = SoftBusDumpBusCenterRemoteDeviceInfo(fd); HWTEST_F() local 814 int32_t ret = LnnGetRemoteBoolInfo(nullptr, key, nullptr); HWTEST_F() local 830 int32_t ret = LnnGetRemoteNumU64Info(nullptr, key, nullptr); HWTEST_F() local 846 int32_t ret = LnnGetRemoteNodeInfoById(networkId, type, &info); HWTEST_F() local 872 int32_t ret = DlGetFeatureCap(networkId, true, nullptr, len); HWTEST_F() local 887 bool ret = LnnSetDLWifiDirectAddr(NODE1_NETWORK_ID, nullptr); HWTEST_F() local 909 int32_t ret = DlGetStaticCap(nullptr, true, nullptr, len); HWTEST_F() local 922 int32_t ret = DlGetStaticCapLen(nullptr, true, nullptr, len); HWTEST_F() local 935 int32_t ret = DlGetRemotePtk(nullptr, true, nullptr, len); HWTEST_F() local 955 int32_t ret = LnnSetDLUnifiedDeviceName(udid, name); HWTEST_F() local 973 int32_t ret = LnnSetDLUnifiedDefaultDeviceName(udid, name); HWTEST_F() local 991 int32_t ret = LnnSetDLDeviceNickNameByUdid(udid, name); HWTEST_F() local 1009 int32_t ret = LnnSetDLDeviceStateVersion(udid, stateVersion); HWTEST_F() local 1026 int32_t ret = LnnSetDLDeviceBroadcastCipherKey(udid, cipherKey); HWTEST_F() local 1043 int32_t ret = LnnSetDLDeviceBroadcastCipherIv(udid, cipherIv); HWTEST_F() local 1062 int32_t ret = LnnUpdateDistributedNodeInfo(&newInfo, udid); HWTEST_F() local [all...] |
/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | platform_dumper_test.c | 27 int32_t ret; in PlatformDumperTestAdd() local 37 ret = PlatformDumperAddData(g_dumperTest, &data); in PlatformDumperTestAdd() 38 if (ret != HDF_SUCCESS) { in PlatformDumperTestAdd() 39 HDF_LOGE("PlatformDumperTestAdd: add data fail, ret: %d!", ret); in PlatformDumperTestAdd() 40 return ret; in PlatformDumperTestAdd() 43 ret = PlatformDumperDump(g_dumperTest); in PlatformDumperTestAdd() 44 if (ret != HDF_SUCCESS) { in PlatformDumperTestAdd() 45 HDF_LOGE("PlatformDumperTestAdd: get info fail, ret: %d!", ret); in PlatformDumperTestAdd() 81 int32_t ret; PlatformDumperTestAddatas() local 101 int32_t ret; PlatformDumperTestAddUint8() local 113 int32_t ret; PlatformDumperTestAddUint16() local 125 int32_t ret; PlatformDumperTestAddUint32() local 137 int32_t ret; PlatformDumperTestAddUint64() local 149 int32_t ret; PlatformDumperTestAddInt8() local 161 int32_t ret; PlatformDumperTestAddInt16() local 173 int32_t ret; PlatformDumperTestAddInt32() local 185 int32_t ret; PlatformDumperTestAddInt64() local 197 int32_t ret; PlatformDumperTestAddFloat() local 209 int32_t ret; PlatformDumperTestAddDouble() local 221 int32_t ret; PlatformDumperTestAddChar() local 233 int32_t ret; PlatformDumperTestAddString() local 248 int32_t ret; PlatformDumperTestAddRegister() local 316 int32_t ret; PlatformDumperTestSetOps() local 340 int32_t ret; PlatformDumperTestStartThread() local 379 int32_t ret; PlatformDumperTestMultiThread() local 410 int32_t ret; PlatformDumperTestDelData() local 486 int32_t ret = HDF_ERR_NOT_SUPPORT; PlatformDumperTestExecute() local [all...] |
/drivers/peripheral/audio/test/systemtest/hdi_service/common/capture/src/ |
H A D | audio_idl_hdicapture_attr_test.cpp | 55 int32_t ret = AudioCreateCapture(manager, PIN_IN_MIC, ADAPTER_NAME, &adapter, &capture, &captureId_); in SetUp() local 56 ASSERT_EQ(HDF_SUCCESS, ret); in SetUp() 61 int32_t ret = ReleaseCaptureSource(manager, adapter, capture, captureId_); in TearDown() local 62 ASSERT_EQ(HDF_SUCCESS, ret); in TearDown() 72 int32_t ret = -1; in HWTEST_F() local 75 ret = capture->GetFrameSize(capture, &size); in HWTEST_F() 76 EXPECT_EQ(HDF_SUCCESS, ret); in HWTEST_F() 86 int32_t ret = -1; in HWTEST_F() local 90 ret = capture->GetFrameSize(captureNull, &size); in HWTEST_F() 91 ASSERT_TRUE(ret in HWTEST_F() 100 int32_t ret = -1; HWTEST_F() local 113 int32_t ret = -1; HWTEST_F() local 127 int32_t ret = -1; HWTEST_F() local 144 int32_t ret = -1; HWTEST_F() local 159 int32_t ret = -1; HWTEST_F() local 172 int32_t ret = -1; HWTEST_F() local 187 int32_t ret = -1; HWTEST_F() local 206 int32_t ret = -1; HWTEST_F() local 220 int32_t ret = -1; HWTEST_F() local 233 int32_t ret = -1; HWTEST_F() local 275 int32_t ret = -1; HWTEST_F() local 335 int32_t ret = -1; HWTEST_F() local 348 int32_t ret = -1; HWTEST_F() local 363 int32_t ret = -1; HWTEST_F() local 392 int32_t ret = -1; HWTEST_F() local 417 int32_t ret = -1; HWTEST_F() local 431 int32_t ret = -1; HWTEST_F() local 444 int32_t ret = -1; HWTEST_F() local 486 int32_t ret = -1; HWTEST_F() local 505 int32_t ret = -1; HWTEST_F() local 524 int32_t ret = -1; HWTEST_F() local 550 int32_t ret; HWTEST_F() local 567 int32_t ret; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcamerastate/ |
H A D | dcamera_source_capture_state.cpp | 42 int32_t ret = DCAMERA_NOT_FOUND; in Execute() local 45 ret = DoRegisterTask(camDev, event); in Execute() 48 ret = DoUnregisterTask(camDev, event); in Execute() 51 ret = DoOpenTask(camDev, event); in Execute() 54 ret = DoCloseTask(camDev, event); in Execute() 57 ret = DoStartCaptureTask(camDev, event); in Execute() 60 ret = DoStopCaptureTask(camDev, event); in Execute() 63 ret = DoUpdateSettingsTask(camDev, event); in Execute() 66 ret = DoEventNofityTask(camDev, event); in Execute() 72 if (ret ! in Execute() 95 int32_t ret = camDev->CameraEventNotify(camEvent); DoUnregisterTask() local 146 int32_t ret = camDev->StopAllCapture(); DoCloseTask() local 176 int32_t ret = event.GetCaptureInfos(captureInfos); DoStartCaptureTask() local 193 int32_t ret = event.GetStreamIds(streamIds); DoStopCaptureTask() local 220 int32_t ret = event.GetCameraSettings(settings); DoUpdateSettingsTask() local 237 int32_t ret = event.GetCameraEvent(camEvent); DoEventNofityTask() local [all...] |
/kernel/liteos_m/testsuites/unittest/posix/src/ctype/ |
H A D | ctype_func_test.c | 77 int ret = isalnum(src); variable 78 ICUNIT_ASSERT_NOT_EQUAL(ret, 0, ret); 90 int ret = isalnum(src); variable 91 ICUNIT_ASSERT_NOT_EQUAL(ret, 0, ret); 103 int ret = isalnum(src); variable 104 ICUNIT_ASSERT_EQUAL(ret, 0, ret); 116 int ret variable 129 int ret = isalnum(src); global() variable 143 int ret = isascii(src); global() variable 156 int ret = isascii(src); global() variable 169 int ret = isascii(src); global() variable 182 int ret = isascii(src); global() variable 195 int ret = isascii(src); global() variable 208 int ret = isprint(src); global() variable 221 int ret = isprint(src); global() variable 234 int ret = isprint(src); global() variable 247 int ret = isprint(src); global() variable 260 int ret = isprint(src); global() variable 274 int ret = isspace(src); global() variable 287 int ret = isspace(src); global() variable 300 int ret = isspace(src); global() variable 313 int ret = isspace(src); global() variable 326 int ret = isspace(src); global() variable 340 int ret = isupper(src); global() variable 353 int ret = isupper(src); global() variable 366 int ret = isupper(src); global() variable 379 int ret = isupper(src); global() variable 392 int ret = isupper(src); global() variable [all...] |
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/ |
H A D | It_posix_mutex_038.c | 45 int ret; in TaskF01() local 47 ret = pthread_mutex_trylock(&g_mutex038); in TaskF01() 48 if (ret == 0) { in TaskF01() 49 ICUNIT_GOTO_EQUAL(1, 0, ret, EXIT); in TaskF01() 52 if ((ret = sem_post(&g_sem038))) { in TaskF01() 53 ICUNIT_GOTO_EQUAL(1, 0, ret, EXIT); in TaskF01() 56 if ((ret = pthread_mutex_lock(&g_mutex038))) { in TaskF01() 57 ICUNIT_GOTO_EQUAL(1, 0, ret, EXIT); in TaskF01() 60 if ((ret = sem_post(&g_sem038))) { in TaskF01() 61 ICUNIT_GOTO_EQUAL(1, 0, ret, EXI in TaskF01() 73 int ret; Testcase() local [all...] |
H A D | It_posix_mutex_070.c | 45 UINT32 ret; in TaskF01() local 49 ret = pthread_mutex_lock(&g_mutex070); in TaskF01() 50 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 56 ret = pthread_mutex_unlock(&g_mutex070); in TaskF01() 57 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 61 ret = LOS_EventWrite(&g_eventCB, 0x1); in TaskF01() 62 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 70 UINT32 ret; TaskF02() local 92 UINT32 ret; Testcase() local [all...] |
H A D | It_posix_mutex_076.c | 45 UINT32 ret; in TaskF01() local 46 ret = pthread_mutex_lock(&g_mutex1076); in TaskF01() 47 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 49 ret = pthread_mutex_unlock(&g_mutex1076); in TaskF01() 50 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 57 UINT32 ret; in Testcase() local 67 ret = pthread_mutex_init(&g_mutex1076, &mutexAttr); in Testcase() 68 ICUNIT_ASSERT_EQUAL(ret, in Testcase() [all...] |
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/ |
H A D | pthread_cond_test_004.cpp | 38 int ret; in pthread_cond_func002() local 43 ret = pthread_mutex_lock(&g_pthread_mutex); in pthread_cond_func002() 44 ICUNIT_GOTO_EQUAL(ret, 0, ret, EXIT); in pthread_cond_func002() 49 ret = pthread_cond_timedwait(&g_pthread_cond, &g_pthread_mutex, &ts); in pthread_cond_func002() 50 ICUNIT_GOTO_EQUAL(ret, ETIMEDOUT, ret, EXIT); in pthread_cond_func002() 52 ret = pthread_mutex_unlock(&g_pthread_mutex); in pthread_cond_func002() 53 ICUNIT_GOTO_EQUAL(ret, 0, ret, EXI in pthread_cond_func002() 63 int ret; pthread_f07() local 110 int ret; TestCase() local [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 2-4.c | 153 int ret = 0; in tf() local 159 ret = pthread_mutex_lock(&(td->mtx)); in tf() 160 if (ret != 0) { in tf() 161 td->status = ret; in tf() 162 UNRESOLVED(ret, "[child] Unable to lock the mutex"); in tf() 169 ret = clock_gettime(td->cid, &ts); in tf() 170 if (ret != 0) { in tf() 171 td->status = ret; in tf() 182 ret = pthread_cond_timedwait(&(td->cnd), &(td->mtx), &ts); in tf() 184 } while ((ret in tf() 240 int ret; main() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
H A D | pthread_attr_get.c | 64 int ret = pthread_attr_init(&attr); in pthread_attr_getinheritsched_0100() local 65 EXPECT_EQ("pthread_attr_getinheritsched_0100", ret, CMPFLAG); in pthread_attr_getinheritsched_0100() 66 ret = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); in pthread_attr_getinheritsched_0100() 67 EXPECT_EQ("pthread_attr_getinheritsched_0100", ret, CMPFLAG); in pthread_attr_getinheritsched_0100() 69 ret = pthread_attr_getinheritsched(&attr, &result); in pthread_attr_getinheritsched_0100() 70 EXPECT_EQ("pthread_attr_getinheritsched_0100", ret, CMPFLAG); in pthread_attr_getinheritsched_0100() 73 ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in pthread_attr_getinheritsched_0100() 74 EXPECT_EQ("pthread_attr_getinheritsched_0100", ret, CMPFLAG); in pthread_attr_getinheritsched_0100() 76 ret = pthread_attr_getinheritsched(&attr, &result); in pthread_attr_getinheritsched_0100() 77 EXPECT_EQ("pthread_attr_getinheritsched_0100", ret, CMPFLA in pthread_attr_getinheritsched_0100() 95 int ret = pthread_attr_init(&attr); pthread_attr_getinheritsched_0200() local 116 int ret = pthread_barrierattr_init(&attr); pthread_barrierattr_getpshared_0100() local 146 int ret = pthread_condattr_init(&attr); pthread_condattr_getclock_0100() local 169 int ret = pthread_condattr_init(&attr); pthread_condattr_getpshared_0100() local 200 int ret = pthread_mutexattr_init(&attr); pthread_mutexattr_getprotocol_0100() local 223 int ret = pthread_mutexattr_init(&attr); pthread_mutexattr_gettype_0100() local 267 int ret = pthread_mutexattr_init(&attr); pthread_mutexattr_getpshared_0100() local 298 int ret = pthread_rwlockattr_init(&attr); pthread_rwlockattr_getpshared_0100() local 329 int ret = pthread_attr_getdetachstate(&attr, &state); pthread_attr_getdetachstate_0100() local 346 int ret = pthread_attr_setschedpolicy(&attr, setpolicy); pthread_attr_getschedpolicy_0100() local 371 int ret = pthread_attr_setschedparam(&attr, &setparam); pthread_attr_getschedparam_0100() local 391 int ret = pthread_attr_setstacksize(&attr, TEST_STACK_SIZE); pthread_attr_getstacksize_0100() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/proximity/ |
H A D | irsd200.c | 130 int ret; in irsd200_setup() local 133 ret = regmap_write(data->regmap, IRS_REG_INTR, 0); in irsd200_setup() 134 if (ret) { in irsd200_setup() 136 ret); in irsd200_setup() 137 return ret; in irsd200_setup() 141 ret = regmap_write(data->regmap, IRS_REG_OP, IRS_OP_ACTIVE); in irsd200_setup() 142 if (ret) { in irsd200_setup() 143 dev_err(data->dev, "Could not set operation mode (%d)\n", ret); in irsd200_setup() 144 return ret; in irsd200_setup() 148 ret in irsd200_setup() 171 int ret; irsd200_read_threshold() local 201 int ret; irsd200_write_threshold() local 237 int ret; irsd200_read_data() local 254 int ret; irsd200_read_data_rate() local 273 int ret; irsd200_write_data_rate() local 302 int ret; irsd200_read_timer() local 325 int ret; irsd200_write_timer() local 356 int ret; irsd200_read_nr_count() local 372 int ret; irsd200_write_nr_count() local 409 int ret; irsd200_read_lp_filter() local 426 int ret; irsd200_write_lp_filter() local 450 int ret; irsd200_read_hp_filter() local 468 int ret; irsd200_write_hp_filter() local 496 int ret; irsd200_read_raw() local 581 int ret; irsd200_read_event() local 634 int ret; irsd200_read_event_config() local 656 int ret; irsd200_write_event_config() local 683 int ret; irsd200_irq_thread() local 763 int ret; irsd200_trigger_handler() local 781 int ret; irsd200_set_trigger_state() local 857 int ret; irsd200_probe() local [all...] |
/third_party/mbedtls/library/ |
H A D | pkcs7.c | 43 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pkcs7_get_next_content_len() local 45 ret = mbedtls_asn1_get_tag(p, end, len, MBEDTLS_ASN1_CONSTRUCTED in pkcs7_get_next_content_len() 47 if (ret != 0) { in pkcs7_get_next_content_len() 48 ret = MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS7_INVALID_CONTENT_INFO, ret); in pkcs7_get_next_content_len() 50 ret = MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS7_INVALID_CONTENT_INFO, in pkcs7_get_next_content_len() 54 return ret; in pkcs7_get_next_content_len() 63 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pkcs7_get_version() local 65 ret = mbedtls_asn1_get_int(p, end, ver); in pkcs7_get_version() 66 if (ret ! in pkcs7_get_version() 89 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_content_info_type() local 121 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_digest_algorithm() local 138 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_digest_algorithm_set() local 173 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_certificates() local 226 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_signature() local 282 int asn1_ret = 0, ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_signer_info() local 382 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_signers_info_set() local 458 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pkcs7_get_signed_data() local 559 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pkcs7_parse_der() local 648 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pkcs7_data_or_hash_verify() local [all...] |
H A D | pkparse.c | 111 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pk_group_from_specified() local 119 if ((ret = mbedtls_asn1_get_int(&p, end, &ver)) != 0) { in pk_group_from_specified() 120 return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PK_KEY_INVALID_FORMAT, ret); in pk_group_from_specified() 133 if ((ret = mbedtls_asn1_get_tag(&p, end, &len, in pk_group_from_specified() 135 return ret; in pk_group_from_specified() 148 if ((ret = mbedtls_asn1_get_tag(&p, end_field, &len, MBEDTLS_ASN1_OID)) != 0) { in pk_group_from_specified() 149 return ret; in pk_group_from_specified() 160 if ((ret = mbedtls_asn1_get_mpi(&p, end_field, &grp->P)) != 0) { in pk_group_from_specified() 161 return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PK_KEY_INVALID_FORMAT, ret); in pk_group_from_specified() 180 if ((ret in pk_group_from_specified() 262 int ret = 0; pk_group_id_from_group() local 305 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_ecc_group_id_from_specified() local 351 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_get_ecparams() local 391 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_use_ecparams() local 433 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_parse_key_rfc8410_der() local 476 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_get_pk_alg() local 520 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pk_parse_subpubkey() local 608 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; pk_parse_key_sec1_der() local 747 int ret, version; pk_parse_key_pkcs8_unencrypted_der() local 871 int ret, decrypted = 0; mbedtls_pk_parse_key_pkcs8_encrypted_der() local 978 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pk_parse_key() local 1183 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pk_parse_public_key() local 1351 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pk_parse_keyfile() local 1376 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_pk_parse_public_keyfile() local [all...] |
/kernel/liteos_m/testsuites/sample/posix/mutex/ |
H A D | It_posix_mutex_032.c | 38 UINT32 ret; in TaskF01() local 39 ret = pthread_mutex_lock(&g_mutex1076); in TaskF01() 40 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 42 ret = pthread_mutex_unlock(&g_mutex1076); in TaskF01() 43 ICUNIT_TRACK_EQUAL(ret, 0, ret); in TaskF01() 50 UINT32 ret; in Testcase() local 60 ret = pthread_mutex_init(&g_mutex1076, &mutexAttr); in Testcase() 61 ICUNIT_ASSERT_EQUAL(ret, in Testcase() [all...] |
/drivers/peripheral/input/test/unittest/hdi/ |
H A D | hdf_input_hdi_test.cpp | 75 int32_t ret = g_inputInterfaces->ScanInputDevice(sta); in OpenOnlineDev() local 76 if (ret != INPUT_SUCCESS) { in OpenOnlineDev() 77 HDF_LOGE("%s: scan device failed, ret %d", __func__, ret); in OpenOnlineDev() 79 ASSERT_EQ(ret, INPUT_SUCCESS); in OpenOnlineDev() 85 ret = g_inputInterfaces->OpenInputDevice(sta[i].devIndex); in OpenOnlineDev() 86 if (ret != INPUT_SUCCESS) { in OpenOnlineDev() 87 HDF_LOGE("%s: open device[%d] failed, ret %d", __func__, sta[i].devIndex, ret); in OpenOnlineDev() 89 ASSERT_EQ(ret, INPUT_SUCCES in OpenOnlineDev() 101 int32_t ret = g_inputInterfaces->ScanInputDevice(sta); CloseOnlineDev() local 152 int32_t ret; HWTEST_F() local 176 int32_t ret = g_inputInterfaces->OpenInputDevice(TOUCH_INDEX); HWTEST_F() local 198 int32_t ret = g_inputInterfaces->OpenInputDevice(INVALID_INDEX); HWTEST_F() local 219 int32_t ret = g_inputInterfaces->CloseInputDevice(TOUCH_INDEX); HWTEST_F() local 241 int32_t ret = g_inputInterfaces->CloseInputDevice(INVALID_INDEX); HWTEST_F() local 263 int32_t ret = g_inputInterfaces->OpenInputDevice(TOUCH_INDEX); HWTEST_F() local 294 int32_t ret; HWTEST_F() local 328 int32_t ret; HWTEST_F() local 354 int32_t ret; HWTEST_F() local 383 int32_t ret = g_inputInterfaces->GetInputDevice(TOUCH_INDEX, dev); HWTEST_F() local 410 int32_t ret = g_inputInterfaces->RegisterReportCallback(INVALID_INDEX, g_callback); HWTEST_F() local 430 int32_t ret; HWTEST_F() local 453 int32_t ret; HWTEST_F() local 476 int32_t ret; HWTEST_F() local 502 int32_t ret; HWTEST_F() local 526 int32_t ret; HWTEST_F() local 552 int32_t ret; HWTEST_F() local 576 int32_t ret; HWTEST_F() local 602 int32_t ret; HWTEST_F() local 626 int32_t ret; HWTEST_F() local 649 int32_t ret; HWTEST_F() local 672 int32_t ret; HWTEST_F() local 696 int32_t ret; HWTEST_F() local 721 int32_t ret; HWTEST_F() local 746 int32_t ret; HWTEST_F() local 775 int32_t ret = INPUT_SUCCESS; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/devfreq/event/ |
H A D | exynos-ppmu.c | 126 int ret; in exynos_ppmu_disable() local 130 ret = regmap_write(info->regmap, PPMU_CNTENC, in exynos_ppmu_disable() 136 if (ret < 0) in exynos_ppmu_disable() 137 return ret; in exynos_ppmu_disable() 140 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_disable() 141 if (ret < 0) in exynos_ppmu_disable() 142 return ret; in exynos_ppmu_disable() 145 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_disable() 146 if (ret < 0) in exynos_ppmu_disable() 147 return ret; in exynos_ppmu_disable() 156 int ret; exynos_ppmu_set_event() local 204 int ret; exynos_ppmu_get_event() local 278 int ret; exynos_ppmu_v2_disable() local 374 int ret; exynos_ppmu_v2_set_event() local 419 int ret; exynos_ppmu_v2_get_event() local 506 int ret; of_get_devfreq_events() local 614 int ret = 0; exynos_ppmu_parse_dt() local 655 int i, ret = 0, size; exynos_ppmu_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
H A D | mt312.c | 53 int ret; in mt312_read() local 66 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read() 68 if (ret != 2) { in mt312_read() 69 printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret); in mt312_read() 87 int ret; in mt312_write() local 113 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write() 115 if (ret != 1) { in mt312_write() 116 dprintk("%s: ret == %d\n", __func__, ret); in mt312_write() 146 int ret; mt312_get_inversion() local 161 int ret; mt312_get_symbol_rate() local 219 int ret; mt312_get_code_rate() local 234 int ret; mt312_initfe() local 335 int ret; mt312_send_master_cmd() local 374 int ret; mt312_send_burst() local 398 int ret; mt312_set_tone() local 436 int ret; mt312_read_status() local 465 int ret; mt312_read_ber() local 481 int ret; mt312_read_signal_strength() local 503 int ret; mt312_read_snr() local 518 int ret; mt312_read_ucblocks() local 534 int ret; mt312_set_frontend() local 641 int ret; mt312_get_frontend() local 663 int ret; mt312_i2c_gate_ctrl() local 690 int ret; mt312_sleep() local [all...] |
/kernel/linux/linux-6.6/drivers/media/dvb-frontends/ |
H A D | mt312.c | 53 int ret; in mt312_read() local 66 ret = i2c_transfer(state->i2c, msg, 2); in mt312_read() 68 if (ret != 2) { in mt312_read() 69 printk(KERN_DEBUG "%s: ret == %d\n", __func__, ret); in mt312_read() 87 int ret; in mt312_write() local 113 ret = i2c_transfer(state->i2c, &msg, 1); in mt312_write() 115 if (ret != 1) { in mt312_write() 116 dprintk("%s: ret == %d\n", __func__, ret); in mt312_write() 146 int ret; mt312_get_inversion() local 161 int ret; mt312_get_symbol_rate() local 219 int ret; mt312_get_code_rate() local 234 int ret; mt312_initfe() local 335 int ret; mt312_send_master_cmd() local 374 int ret; mt312_send_burst() local 398 int ret; mt312_set_tone() local 436 int ret; mt312_read_status() local 465 int ret; mt312_read_ber() local 481 int ret; mt312_read_signal_strength() local 503 int ret; mt312_read_snr() local 518 int ret; mt312_read_ucblocks() local 534 int ret; mt312_set_frontend() local 641 int ret; mt312_get_frontend() local 663 int ret; mt312_i2c_gate_ctrl() local 690 int ret; mt312_sleep() local [all...] |
/kernel/linux/linux-6.6/drivers/devfreq/event/ |
H A D | exynos-ppmu.c | 131 int ret; in exynos_ppmu_disable() local 135 ret = regmap_write(info->regmap, PPMU_CNTENC, in exynos_ppmu_disable() 141 if (ret < 0) in exynos_ppmu_disable() 142 return ret; in exynos_ppmu_disable() 145 ret = regmap_read(info->regmap, PPMU_PMNC, &pmnc); in exynos_ppmu_disable() 146 if (ret < 0) in exynos_ppmu_disable() 147 return ret; in exynos_ppmu_disable() 150 ret = regmap_write(info->regmap, PPMU_PMNC, pmnc); in exynos_ppmu_disable() 151 if (ret < 0) in exynos_ppmu_disable() 152 return ret; in exynos_ppmu_disable() 161 int ret; exynos_ppmu_set_event() local 209 int ret; exynos_ppmu_get_event() local 283 int ret; exynos_ppmu_v2_disable() local 379 int ret; exynos_ppmu_v2_set_event() local 424 int ret; exynos_ppmu_v2_get_event() local 511 int ret; of_get_devfreq_events() local 616 int ret = 0; exynos_ppmu_parse_dt() local 656 int i, ret = 0, size; exynos_ppmu_probe() local [all...] |
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
H A D | It_posix_queue_121.cpp | 35 INT32 ret; in PthreadF01() local 43 ret = mq_timedreceive(g_gqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, NULL, &ts); in PthreadF01() 44 ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT); in PthreadF01() 56 INT32 ret; in PthreadF02() local 64 ret = mq_timedreceive(g_gqueue, msgrcd, MQUEUE_STANDARD_NAME_LENGTH, NULL, &ts); in PthreadF02() 65 ICUNIT_GOTO_EQUAL(ret, MQUEUE_SHORT_ARRAY_LENGTH, ret, EXIT); in PthreadF02() 77 INT32 ret; in PthreadF03() local 85 ret in PthreadF03() 98 INT32 ret; PthreadF04() local 118 UINT32 ret; Testcase() local [all...] |
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | bus_center_sdk_refresh_test.cpp | 122 int32_t ret; in HWTEST_F() local 124 ret = RefreshLNN(g_pkgName, &g_sInfo2, &g_refreshCb1); in HWTEST_F() 125 EXPECT_TRUE(ret == 0); in HWTEST_F() 126 ret = StopRefreshLNN(g_pkgName, g_sInfo2.subscribeId); in HWTEST_F() 129 ret = RefreshLNN(g_pkgName, &g_sInfo3, &g_refreshCb1); in HWTEST_F() 130 EXPECT_TRUE(ret == 0); in HWTEST_F() 131 ret = StopRefreshLNN(g_pkgName, g_sInfo3.subscribeId); in HWTEST_F() 134 ret = RefreshLNN(g_pkgName1, &g_sInfo3, &g_refreshCb1); in HWTEST_F() 135 EXPECT_TRUE(ret == 0); in HWTEST_F() 136 ret in HWTEST_F() 149 int32_t ret; HWTEST_F() local 202 int32_t ret; HWTEST_F() local 255 int32_t ret; HWTEST_F() local 283 int32_t ret; HWTEST_F() local 311 int32_t ret; HWTEST_F() local 339 int32_t ret; HWTEST_F() local 392 int32_t ret; HWTEST_F() local 445 int32_t ret; HWTEST_F() local 502 int32_t ret; HWTEST_F() local 536 int32_t ret; HWTEST_F() local 570 int32_t ret; HWTEST_F() local 598 int32_t ret; HWTEST_F() local 626 int32_t ret; HWTEST_F() local 654 int32_t ret; HWTEST_F() local 682 int32_t ret; HWTEST_F() local 710 int32_t ret; HWTEST_F() local 738 int32_t ret; HWTEST_F() local 786 int32_t ret; HWTEST_F() local 834 int32_t ret; HWTEST_F() local [all...] |