Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 3523) sorted by relevance

12345678910>>...141

/external/tpm2-tss/test/integration/
Dsapi-system-api.int.c35 TSS2_RC rc; in test_invoke() local
39 rc = Tss2_Sys_GetTestResult_Prepare(0); in test_invoke()
40 if (rc != TSS2_SYS_RC_BAD_REFERENCE) { in test_invoke()
41 LOG_ERROR("Invalid prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
46 rc = Tss2_Sys_GetTestResult_Prepare(sapi_context); in test_invoke()
47 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
48 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
52 rc = Tss2_Sys_ExecuteAsync(sapi_context); in test_invoke()
53 if (rc != TSS2_RC_SUCCESS) { in test_invoke()
54 LOG_ERROR("Prepare test FAILED! Response Code : 0x%x", rc); in test_invoke()
[all …]
Dsapi-hmac-auth.int.c36 TSS2_RC rc; in create_policy() local
45 rc = Tss2_Sys_GetTctiContext (sys_ctx, &tcti_ctx); in create_policy()
46 if (rc != TSS2_RC_SUCCESS || tcti_ctx == NULL) { in create_policy()
48 return rc; in create_policy()
51 rc = create_auth_session (&trialPolicySession, in create_policy()
62 if (rc != TSS2_RC_SUCCESS) { in create_policy()
63 LOG_ERROR ("create_auth_session failed with rc: 0x%x", rc); in create_policy()
64 return rc; in create_policy()
66 rc = Tss2_Sys_PolicyAuthValue (sys_ctx, in create_policy()
70 if (rc != TSS2_RC_SUCCESS) { in create_policy()
[all …]
Dsapi-param-encrypt-decrypt.int.c30 TSS2_RC rc, rc2; in test_invoke() local
62 rc = Tss2_Sys_GetTctiContext(sapi_context, &tcti_ctx); in test_invoke()
63 if (rc) { in test_invoke()
64 LOG_ERROR("Tss2_Sys_GetTctiContext failed 0x%" PRIx32, rc); in test_invoke()
65 return rc; in test_invoke()
75 rc = Tss2_Sys_NV_DefineSpace(sapi_context, TPM2_RH_OWNER, &req_auth, in test_invoke()
77 if (rc) { in test_invoke()
78 LOG_ERROR("Tss2_Sys_NV_DefineSpace failed 0x%" PRIx32, rc); in test_invoke()
79 return rc; in test_invoke()
87 rc = create_auth_session(&session, TPM2_RH_NULL, 0, in test_invoke()
[all …]
Dsapi-nv-policy-locality.int.c54 TSS2_RC rc; in create_policy_session() local
58 rc = Tss2_Sys_StartAuthSession (sys_ctx, in create_policy_session()
70 return_if_error (rc, "Tss2_Sys_StartAuthSession"); in create_policy_session()
72 rc = Tss2_Sys_PolicyLocality (sys_ctx, in create_policy_session()
77 return_if_error (rc, "Tss2_Sys_PolicyLocality"); in create_policy_session()
78 return rc; in create_policy_session()
88 TSS2_RC rc; in setup_nv() local
112 rc = create_policy_session (sys_ctx, &auth_handle); in setup_nv()
113 return_if_error (rc, "create_policy_session"); in setup_nv()
115 rc = Tss2_Sys_PolicyGetDigest (sys_ctx, in setup_nv()
[all …]
/external/libxml2/doc/examples/
DtestWriter.c71 int rc; in testXmlwriterFilename() local
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
86 if (rc < 0) { in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
95 if (rc < 0) { in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
108 if (rc < 0) { in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
117 if (rc < 0) { in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
D2-1.c47 #define FAIL_AND_EXIT(f, rc) { \ argument
48 printf("Failed: function: %s status: %s(%u)\n", f, strerror(rc), rc); \
56 int rc; in thread_func() local
58 rc = pthread_getschedparam(pthread_self(), &policy, &sp); in thread_func()
59 if (rc) in thread_func()
60 FAIL_AND_EXIT("pthread_getschedparam()", rc); in thread_func()
62 rc = pthread_mutex_lock(&c_mutex); in thread_func()
63 if (rc) in thread_func()
64 FAIL_AND_EXIT("pthread_mutex_lock()", rc); in thread_func()
66 rc = pthread_cond_signal(&cond); in thread_func()
[all …]
/external/ltp/testcases/kernel/controllers/freezer/
Dlibcgroup_freezer91 local rc=0
94 rc=$?
100 result=${result:-$rc}
106 rc=$?
107 if [ $rc -ne 0 ]; then
108 result=${result:-$rc}
111 return $rc
116 rc=$?
117 if [ $rc -ne 0 ]; then
118 result=${result:-$rc}
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_ratectrl.c211 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() local
215 VPXMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in vp9_rc_clamp_pframe_target_size()
217 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
226 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_pframe_target_size()
230 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size()
237 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() local
241 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
244 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_iframe_target_size()
253 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level_preencode() local
254 rc->bits_off_target += rc->avg_frame_bandwidth; in update_buffer_level_preencode()
[all …]
/external/libaom/libaom/av1/encoder/
Dratectrl.c182 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_pframe_target_size() local
185 AOMMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in av1_rc_clamp_pframe_target_size()
199 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_pframe_target_size()
202 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in av1_rc_clamp_pframe_target_size()
210 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_iframe_target_size() local
214 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in av1_rc_clamp_iframe_target_size()
217 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_iframe_target_size()
230 RATE_CONTROL *lrc = &lc->rc; in update_layer_buffer_level()
242 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level() local
246 rc->bits_off_target -= encoded_frame_size; in update_buffer_level()
[all …]
/external/tpm2-tss/test/unit/
Desys-crypto.c33 TSS2_RC rc; in check_hash_functions() local
39 rc = iesys_crypto_hash_start(NULL, TPM2_ALG_SHA384); in check_hash_functions()
40 assert_int_equal (rc, TSS2_ESYS_RC_BAD_REFERENCE); in check_hash_functions()
43 rc = iesys_crypto_hash_start(&context, TPM2_ALG_SHA512); in check_hash_functions()
44 assert_int_equal (rc, TSS2_ESYS_RC_NOT_IMPLEMENTED); in check_hash_functions()
47 rc = iesys_crypto_hash_start(&context, 0); in check_hash_functions()
48 assert_int_equal (rc, TSS2_ESYS_RC_NOT_IMPLEMENTED); in check_hash_functions()
50 rc = iesys_crypto_hash_start(&context, TPM2_ALG_SHA384); in check_hash_functions()
51 assert_int_equal (rc, TSS2_RC_SUCCESS); in check_hash_functions()
53 rc = iesys_crypto_hash_finish(NULL, &buffer[0], &size); in check_hash_functions()
[all …]
/external/vboot_reference/tests/bitmaps/
DTestBmpBlock.py26 rc, out, err = runprog(prog)
27 self.assertNotEqual(0, rc)
33 rc, out, err = runprog(prog, '-c', 'case_nobmp.yaml', 'FOO')
34 self.assertNotEqual(0, rc)
39 rc, out, err = runprog(prog, '-c', 'case_badbmp.yaml', 'FOO')
40 self.assertNotEqual(0, rc)
45 rc, out, err = runprog(prog, '-z', '99', '-c', 'case_simple.yaml', 'FOO')
46 self.assertNotEqual(0, rc)
53 rc, out, err = runprog('/bin/rm', '-rf', './FOO_DIR', 'FOO')
54 self.assertEqual(0, rc)
[all …]
/external/rmi4utils/rmi4update/
Drmi4update.cpp92 int rc; in UpdateFirmware() local
95 rc = FindUpdateFunctions(); in UpdateFirmware()
96 if (rc != UPDATE_SUCCESS) in UpdateFirmware()
97 return rc; in UpdateFirmware()
99 rc = m_device.QueryBasicProperties(); in UpdateFirmware()
100 if (rc < 0) in UpdateFirmware()
107 rc = UPDATE_FAIL_FIRMWARE_IMAGE_IS_OLDER; in UpdateFirmware()
108 return rc; in UpdateFirmware()
115 rc = DisableNonessentialInterupts(); in UpdateFirmware()
116 if (rc != UPDATE_SUCCESS) in UpdateFirmware()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/external/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c41 int rc; in TEST_F() local
45 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
46 ASSERT_NE(-1, rc); in TEST_F()
55 int i, rc, irq = 0; variable
59 rc = ioctl(self->fd, RTC_UIE_ON, 0);
60 if (rc == -1) {
68 rc = read(self->fd, &data, sizeof(data));
69 ASSERT_NE(-1, rc);
75 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
76 ASSERT_NE(-1, rc);
[all …]
/external/selinux/libsepol/cil/src/
Dcil_write_ast.c53 int rc = SEPOL_ERR; in __cil_unfill_expr_helper() local
60 rc = cil_unfill_expr((struct cil_list *)curr->data, &str, paren); in __cil_unfill_expr_helper()
61 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
70 rc = SEPOL_ERR; in __cil_unfill_expr_helper()
80 rc = SEPOL_ERR; in __cil_unfill_expr_helper()
137 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren); in __cil_unfill_expr_helper()
138 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
145 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren); in __cil_unfill_expr_helper()
146 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
150 rc = __cil_unfill_expr_helper(*next, next, &operand2, paren); in __cil_unfill_expr_helper()
[all …]
Dcil_resolve_ast.c111 int rc = SEPOL_ERR; in __cil_resolve_perms() local
119 rc = __cil_resolve_perms(class_symtab, common_symtab, curr->data, &sub_list, class_flavor); in __cil_resolve_perms()
120 if (rc != SEPOL_OK) { in __cil_resolve_perms()
127 rc = cil_symtab_get_datum(class_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
128 if (rc == SEPOL_ENOENT) { in __cil_resolve_perms()
130 rc = cil_symtab_get_datum(common_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
133 if (rc != SEPOL_OK) { in __cil_resolve_perms()
150 return rc; in __cil_resolve_perms()
155 int rc = SEPOL_ERR; in cil_resolve_classperms() local
160 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
[all …]
/external/selinux/libsepol/src/
Dkernel_to_conf.c36 int rc; in cond_expr_to_str() local
38 rc = strs_stack_init(&stack); in cond_expr_to_str()
39 if (rc != 0) { in cond_expr_to_str()
90 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
91 if (rc != 0) { in cond_expr_to_str()
126 int rc; in constraint_expr_to_str() local
130 rc = strs_stack_init(&stack); in constraint_expr_to_str()
131 if (rc != 0) { in constraint_expr_to_str()
232 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
233 if (rc != 0) { in constraint_expr_to_str()
[all …]
Dkernel_to_cil.c37 int rc; in cond_expr_to_str() local
39 rc = strs_stack_init(&stack); in cond_expr_to_str()
40 if (rc != 0) { in cond_expr_to_str()
92 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
93 if (rc != 0) { in cond_expr_to_str()
128 int rc; in constraint_expr_to_str() local
132 rc = strs_stack_init(&stack); in constraint_expr_to_str()
133 if (rc != 0) { in constraint_expr_to_str()
236 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
237 if (rc != 0) { in constraint_expr_to_str()
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_frag.c81 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
84 (rc)->ctx = ctx; \
85 (rc)->unit = i; \
86 (rc)->premodulate = c->_NumArgs##chan == 4; \
87 (rc)->mode = c->Mode##chan; \
88 (rc)->source = c->Source##chan; \
89 (rc)->operand = c->Operand##chan; \
90 (rc)->logscale = c->ScaleShift##chan; \
91 (rc)->in = (rc)->out = 0; \
97 get_input_source(struct combiner_state *rc, int source) in get_input_source() argument
[all …]
Dnv04_state_frag.c65 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
68 (rc)->ctx = ctx; \
69 (rc)->unit = i; \
70 (rc)->alpha = __INIT_COMBINER_ALPHA_##chan; \
71 (rc)->premodulate = c->_NumArgs##chan == 4; \
72 (rc)->mode = c->Mode##chan; \
73 (rc)->source = c->Source##chan; \
74 (rc)->operand = c->Operand##chan; \
75 (rc)->logscale = c->ScaleShift##chan; \
76 (rc)->hw = 0; \
[all …]
/external/strace/tests-m32/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests-mx32/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]

12345678910>>...141