Home
last modified time | relevance | path

Searched refs:rv (Results 1 – 25 of 228) sorted by relevance

12345678910

/external/vboot_reference/firmware/lib21/
Dmisc.c39 int rv; in vb2_read_resource_object() local
44 rv = vb2ex_read_resource(ctx, index, offset, &c, sizeof(c)); in vb2_read_resource_object()
45 if (rv) in vb2_read_resource_object()
46 return rv; in vb2_read_resource_object()
54 rv = vb2ex_read_resource(ctx, index, offset, buf, c.total_size); in vb2_read_resource_object()
55 if (rv) { in vb2_read_resource_object()
57 return rv; in vb2_read_resource_object()
76 int rv; in vb2_load_fw_keyblock() local
86 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, sd->gbb_rootkey_offset, in vb2_load_fw_keyblock()
88 if (rv) in vb2_load_fw_keyblock()
[all …]
Dcommon.c103 int rv; in vb2_verify_common_subobject() local
109 rv = vb2_verify_common_member(parent, min_offset, member_offset, in vb2_verify_common_subobject()
111 if (rv) in vb2_verify_common_subobject()
112 return rv; in vb2_verify_common_subobject()
119 rv = vb2_verify_common_header(m, p->total_size - member_offset); in vb2_verify_common_subobject()
120 if (rv) in vb2_verify_common_subobject()
121 return rv; in vb2_verify_common_subobject()
180 int rv; in vb2_verify_signature() local
187 rv = vb2_verify_common_header(sig, size); in vb2_verify_signature()
188 if (rv) in vb2_verify_signature()
[all …]
Dapi.c21 int rv; in vb2api_fw_phase3() local
24 rv = vb2_load_fw_keyblock(ctx); in vb2api_fw_phase3()
25 if (rv) { in vb2api_fw_phase3()
26 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
27 return rv; in vb2api_fw_phase3()
31 rv = vb2_load_fw_preamble(ctx); in vb2api_fw_phase3()
32 if (rv) { in vb2api_fw_phase3()
33 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
34 return rv; in vb2api_fw_phase3()
50 int i, rv; in vb2api_init_hash2() local
[all …]
Dpacked_key.c53 int rv; in vb2_unpack_key() local
59 rv = vb2_verify_common_header(buf, size); in vb2_unpack_key()
60 if (rv) in vb2_unpack_key()
61 return rv; in vb2_unpack_key()
64 rv = vb2_verify_common_member(pkey, &min_offset, in vb2_unpack_key()
66 if (rv) in vb2_unpack_key()
67 return rv; in vb2_unpack_key()
87 rv = vb2_unpack_key_data( in vb2_unpack_key()
91 if (rv) in vb2_unpack_key()
92 return rv; in vb2_unpack_key()
/external/vboot_reference/firmware/lib20/
Dmisc.c30 int rv; in vb2_load_fw_keyblock() local
40 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, sd->gbb_rootkey_offset, in vb2_load_fw_keyblock()
42 if (rv) in vb2_load_fw_keyblock()
43 return rv; in vb2_load_fw_keyblock()
46 rv = vb2_unpack_key(&root_key, key_data, key_size); in vb2_load_fw_keyblock()
47 if (rv) in vb2_load_fw_keyblock()
48 return rv; in vb2_load_fw_keyblock()
55 rv = vb2ex_read_resource(ctx, VB2_RES_FW_VBLOCK, 0, kb, sizeof(*kb)); in vb2_load_fw_keyblock()
56 if (rv) in vb2_load_fw_keyblock()
57 return rv; in vb2_load_fw_keyblock()
[all …]
Dapi.c20 int rv; in vb2api_fw_phase3() local
23 rv = vb2_load_fw_keyblock(ctx); in vb2api_fw_phase3()
24 if (rv) { in vb2api_fw_phase3()
25 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
26 return rv; in vb2api_fw_phase3()
30 rv = vb2_load_fw_preamble(ctx); in vb2api_fw_phase3()
31 if (rv) { in vb2api_fw_phase3()
32 vb2_fail(ctx, VB2_RECOVERY_RO_INVALID_RW, rv); in vb2api_fw_phase3()
33 return rv; in vb2api_fw_phase3()
46 int rv; in vb2api_init_hash() local
[all …]
Dcommon.c95 int rv; in vb2_verify_data() local
116 rv = vb2_digest_init(dc, key->hash_alg); in vb2_verify_data()
117 if (rv) in vb2_verify_data()
118 return rv; in vb2_verify_data()
120 rv = vb2_digest_extend(dc, data, sig->data_size); in vb2_verify_data()
121 if (rv) in vb2_verify_data()
122 return rv; in vb2_verify_data()
124 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2_verify_data()
125 if (rv) in vb2_verify_data()
126 return rv; in vb2_verify_data()
[all …]
/external/vboot_reference/tests/
Dvb20_verify_fw.c95 int rv; in hash_body() local
101 rv = vb2api_init_hash(ctx, VB2_HASH_TAG_FW_BODY, &expect_size); in hash_body()
102 if (rv) in hash_body()
103 return rv; in hash_body()
119 rv = vb2api_extend_hash(ctx, block, size); in hash_body()
120 if (rv) in hash_body()
121 return rv; in hash_body()
127 rv = vb2api_check_hash(ctx); in hash_body()
128 if (rv) in hash_body()
129 return rv; in hash_body()
[all …]
/external/llvm/lib/ExecutionEngine/Orc/
DOrcMCJITReplacement.cpp54 GenericValue rv; in runFunction() local
55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction()
58 return rv; in runFunction()
67 GenericValue rv; in runFunction() local
68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction()
70 return rv; in runFunction()
75 GenericValue rv; in runFunction() local
77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction()
78 return rv; in runFunction()
86 GenericValue rv; in runFunction() local
[all …]
/external/vboot_reference/firmware/2lib/
D2api.c39 int rv; in vb2api_fw_phase1() local
48 rv = vb2_secdata_init(ctx); in vb2api_fw_phase1()
49 if (rv) in vb2api_fw_phase1()
50 vb2_fail(ctx, VB2_RECOVERY_SECDATA_INIT, rv); in vb2api_fw_phase1()
53 rv = vb2_fw_parse_gbb(ctx); in vb2api_fw_phase1()
54 if (rv) in vb2api_fw_phase1()
55 vb2_fail(ctx, VB2_RECOVERY_GBB_HEADER, rv); in vb2api_fw_phase1()
58 rv = vb2_check_dev_switch(ctx); in vb2api_fw_phase1()
59 if (rv) in vb2api_fw_phase1()
60 vb2_fail(ctx, VB2_RECOVERY_DEV_SWITCH, rv); in vb2api_fw_phase1()
[all …]
D2misc.c36 int rv; in vb2_read_gbb_header() local
39 rv = vb2ex_read_resource(ctx, VB2_RES_GBB, 0, gbb, sizeof(*gbb)); in vb2_read_gbb_header()
40 if (rv) in vb2_read_gbb_header()
41 return rv; in vb2_read_gbb_header()
44 rv = vb2_validate_gbb_signature(gbb->signature); in vb2_read_gbb_header()
45 if (rv) in vb2_read_gbb_header()
46 return rv; in vb2_read_gbb_header()
182 int rv; in vb2_fw_parse_gbb() local
191 rv = vb2_read_gbb_header(ctx, gbb); in vb2_fw_parse_gbb()
192 if (rv) in vb2_fw_parse_gbb()
[all …]
/external/chromium-trace/trace-viewer/third_party/webapp2/tests/
Dextras_auth_test.py21 rv = models.UserToken.get(user=user_id, subject=subject, token=token)
22 return rv is not None
54 rv = a.get_user_by_session()
55 self.assertTrue(rv is None)
58 rv = a.get_user_by_password('auth_id', 'password')
59 self.assertEqual(rv['user_id'], user_id)
73 rv = a.get_user_by_session()
74 self.assertEqual(rv['user_id'], user_id)
77 rv2 = a.get_user_by_token(rv['user_id'], rv['token'])
78 self.assertTrue(rv is rv2)
[all …]
Dextras_securecookie_test.py15 rv = serializer.serialize('foo', value)
16 self.assertEqual(rv, result)
18 rv = serializer.deserialize('foo', result)
19 self.assertEqual(rv, value)
22 rv = serializer.deserialize('foo', None)
23 self.assertEqual(rv, None)
26 rv = serializer.deserialize('foo', 'a|b')
27 self.assertEqual(rv, None)
30 rv = serializer.deserialize('foo', result + 'foo')
31 self.assertEqual(rv, None)
[all …]
/external/openssh/
Dssh-pkcs11.c94 CK_RV rv; in pkcs11_provider_finalize() local
103 (rv = p->function_list->C_CloseSession( in pkcs11_provider_finalize()
105 error("C_CloseSession failed: %lu", rv); in pkcs11_provider_finalize()
107 if ((rv = p->function_list->C_Finalize(NULL)) != CKR_OK) in pkcs11_provider_finalize()
108 error("C_Finalize failed: %lu", rv); in pkcs11_provider_finalize()
178 int rv = -1; in pkcs11_rsa_finish() local
182 rv = k11->orig_finish(rsa); in pkcs11_rsa_finish()
188 return (rv); in pkcs11_rsa_finish()
199 CK_RV rv; in pkcs11_find() local
204 if ((rv = f->C_FindObjectsInit(session, attr, nattr)) != CKR_OK) { in pkcs11_find()
[all …]
/external/libedit/src/
Del.c202 int rv = 0; in FUN() local
213 rv = prompt_set(el, p, 0, op, 1); in FUN()
220 rv = ch_resizefun(el, p, arg); in FUN()
229 rv = prompt_set(el, p, c, op, 1); in FUN()
234 rv = terminal_set(el, va_arg(ap, char *)); in FUN()
238 rv = map_set_editor(el, va_arg(ap, Char *)); in FUN()
264 rv = map_bind(el, i, argv); in FUN()
269 rv = terminal_telltc(el, i, argv); in FUN()
274 rv = terminal_settc(el, i, argv); in FUN()
279 rv = terminal_echotc(el, i, argv); in FUN()
[all …]
/external/compiler-rt/test/dfsan/
Dcustom.cc69 int rv = fstat(fd, &s); in test_fstat() local
70 assert(0 == rv); in test_fstat()
79 int rv = memcmp(str1, str2, sizeof(str1)); in test_memcmp() local
80 assert(rv < 0); in test_memcmp()
82 ASSERT_ZERO_LABEL(rv); in test_memcmp()
84 ASSERT_LABEL(rv, i_j_label); in test_memcmp()
116 int rv = strcmp(str1, str2); in test_strcmp() local
117 assert(rv < 0); in test_strcmp()
119 ASSERT_ZERO_LABEL(rv); in test_strcmp()
121 ASSERT_LABEL(rv, i_j_label); in test_strcmp()
[all …]
/external/llvm/bindings/go/llvm/
Dir.go642 func (v Value) Metadata(kind int) (rv Value) {
643 rv.C = C.LLVMGetMetadata(v.C, C.unsigned(kind))
653 func (v Value) IsAArgument() (rv Value) { rv.C = C.LLVMIsAArgument(v.C); return }
654 func (v Value) IsABasicBlock() (rv Value) { rv.C = C.LLVMIsABasicBlock(v.C); return }
655 func (v Value) IsAInlineAsm() (rv Value) { rv.C = C.LLVMIsAInlineAsm(v.C); return }
656 func (v Value) IsAUser() (rv Value) { rv.C = C.LLVMIsAUser(v.C); return }
657 func (v Value) IsAConstant() (rv Value) { rv.C = C.LLVMIsAConstant(v.C); return }
658 func (v Value) IsAConstantAggregateZero() (rv Value) {
659 rv.C = C.LLVMIsAConstantAggregateZero(v.C)
662 func (v Value) IsAConstantArray() (rv Value) { rv.C = C.LLVMIsAConstantArray(v.C); return }
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_api_kernel.c622 int rv = VbExEcProtectRW(devidx); in EcProtectRW() local
624 if (rv == VBERROR_EC_REBOOT_TO_RO_REQUIRED) { in EcProtectRW()
626 } else if (rv != VBERROR_SUCCESS) { in EcProtectRW()
627 VBDEBUG(("VbExEcProtectRW() returned %d\n", rv)); in EcProtectRW()
630 return rv; in EcProtectRW()
638 int rv; in VbEcSoftwareSync() local
652 rv = VbExEcRunningRW(devidx, &in_rw); in VbEcSoftwareSync()
656 if (rv == VBERROR_SUCCESS && in_rw == 1) { in VbEcSoftwareSync()
681 if (rv != VBERROR_SUCCESS) { in VbEcSoftwareSync()
683 "VbExEcRunningRW() returned %d\n", rv)); in VbEcSoftwareSync()
[all …]
/external/boringssl/src/crypto/x509/
Dx509_cmp.c176 int rv; in X509_cmp() local
181 rv = memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH); in X509_cmp()
182 if (rv) in X509_cmp()
183 return rv; in X509_cmp()
187 rv = (int)(a->cert_info->enc.len - b->cert_info->enc.len); in X509_cmp()
188 if (rv) in X509_cmp()
189 return rv; in X509_cmp()
193 return rv; in X509_cmp()
396 int rv, sign_nid; in X509_chain_check_suiteb() local
414 rv = X509_V_ERR_SUITE_B_INVALID_VERSION; in X509_chain_check_suiteb()
[all …]
/external/mksh/src/
Dfuncs.c71 int rv; in bi_getn() local
73 if (!(rv = getn(as, ai))) in bi_getn()
75 return (rv); in bi_getn()
502 int rv = 0, optc, fcflags; in c_whence() local
537 while ((vflag || rv == 0) && (id = *wp++) != NULL) { in c_whence()
623 rv = 1; in c_whence()
630 if (vflag || !rv) in c_whence()
633 return (rv); in c_whence()
838 int rv = 0; in c_typeset() local
849 rv = 1; in c_typeset()
[all …]
/external/svox/pico/lib/
Dpicospho.c527 pico_status_t rv = PICO_OK; in sphoExtractPhonemes() local
564 rv = sphoAddPhoneme(spho,pos,fstSymbol); in sphoExtractPhonemes()
577 rv = sphoAddPhoneme(spho,pos,fstSymbol); in sphoExtractPhonemes()
602 rv = sphoAddPhoneme(spho, pos, fstSymbol); in sphoExtractPhonemes()
608 rv = sphoAddPhoneme(spho,pos,fstSymbol); in sphoExtractPhonemes()
609 if (PICO_OK != rv) { in sphoExtractPhonemes()
618 if (PICO_OK == rv) { in sphoExtractPhonemes()
619 rv = sphoAddPhoneme(spho,pos,fstSymbol); in sphoExtractPhonemes()
622 if (PICO_OK == rv) { in sphoExtractPhonemes()
627 rv = sphoAddPhoneme(spho,pos,fstSymbol); in sphoExtractPhonemes()
[all …]
/external/svox/pico_resources/tools/LingwareBuilding/PicoLingware_tools_windows/tools/
Dpicoloadphones.lua147 rv = 0
150 if pl["vowel"] then rv = 1 end
151 if pl["diphth"]then rv = rv + 2 end
152 if pl["glott"] then rv = rv + 4 end
153 if pl["nonsyllvowel"] then rv = rv + 8 end
154 if pl["syllcons"] then rv = rv + 16 end
156 return rv
Dpicoloaddbg.lua149 rv = 0
152 if pl["vowel"] then rv = 1 end
153 if pl["diphth"]then rv = rv + 2 end
154 if pl["glott"] then rv = rv + 4 end
155 if pl["nonsyllvowel"] then rv = rv + 8 end
156 if pl["syllcons"] then rv = rv + 16 end
158 return rv
/external/vboot_reference/host/lib21/
Dhost_signature.c204 int rv, i; in vb2_sig_size_for_keys() local
209 rv = vb2_sig_size_for_key(&size, key_list[i], NULL); in vb2_sig_size_for_keys()
210 if (rv) in vb2_sig_size_for_keys()
211 return rv; in vb2_sig_size_for_keys()
226 int rv; in vb2_sign_object() local
228 rv = vb2_sign_data(&sig, buf, sig_offset, key, desc); in vb2_sign_object()
229 if (rv) in vb2_sign_object()
230 return rv; in vb2_sign_object()
250 int rv, i; in vb2_sign_object_multiple() local
255 rv = vb2_sign_data(&sig, buf, sig_offset, key_list[i], NULL); in vb2_sign_object_multiple()
[all …]
/external/llvm/test/CodeGen/SPARC/
D64cond.ll43 %rv = select i1 %tobool, i32 %a, i32 %b
44 ret i32 %rv
54 %rv = select i1 %tobool, i64 %a, i64 %b
55 ret i64 %rv
65 %rv = select i1 %tobool, i64 %a, i64 %b
66 ret i64 %rv
76 %rv = select i1 %tobool, i64 %a, i64 %b
77 ret i64 %rv
87 %rv = select i1 %tobool, float %a, float %b
88 ret float %rv
[all …]

12345678910