Home
last modified time | relevance | path

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

12345678910>>...16

/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 …]
/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 …]
/external/libchrome/base/synchronization/
Dlock_impl_posix.cc19 int rv = pthread_mutexattr_init(&mta); in LockImpl() local
20 DCHECK_EQ(rv, 0) << ". " << strerror(rv); in LockImpl()
21 rv = pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_ERRORCHECK); in LockImpl()
22 DCHECK_EQ(rv, 0) << ". " << strerror(rv); in LockImpl()
23 rv = pthread_mutex_init(&native_handle_, &mta); in LockImpl()
24 DCHECK_EQ(rv, 0) << ". " << strerror(rv); in LockImpl()
25 rv = pthread_mutexattr_destroy(&mta); in LockImpl()
26 DCHECK_EQ(rv, 0) << ". " << strerror(rv); in LockImpl()
34 int rv = pthread_mutex_destroy(&native_handle_); in ~LockImpl() local
35 DCHECK_EQ(rv, 0) << ". " << strerror(rv); in ~LockImpl()
[all …]
Dcondition_variable_posix.cc24 int rv = 0; in ConditionVariable() local
34 rv = pthread_condattr_init(&attrs); in ConditionVariable()
35 DCHECK_EQ(0, rv); in ConditionVariable()
37 rv = pthread_cond_init(&condition_, &attrs); in ConditionVariable()
40 rv = pthread_cond_init(&condition_, NULL); in ConditionVariable()
42 DCHECK_EQ(0, rv); in ConditionVariable()
60 int rv = pthread_cond_destroy(&condition_); in ~ConditionVariable() local
61 DCHECK_EQ(0, rv); in ~ConditionVariable()
69 int rv = pthread_cond_wait(&condition_, user_mutex_); in Wait() local
70 DCHECK_EQ(0, rv); in Wait()
[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/curl/docs/examples/
Dcacertinmem.c117 CURLcode rv; in main() local
119 rv=curl_global_init(CURL_GLOBAL_ALL); in main()
121 rv=curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L); in main()
122 rv=curl_easy_setopt(ch,CURLOPT_HEADER, 0L); in main()
123 rv=curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L); in main()
124 rv=curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L); in main()
125 rv=curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction); in main()
126 rv=curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout); in main()
127 rv=curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction); in main()
128 rv=curl_easy_setopt(ch,CURLOPT_HEADERDATA, stderr); in main()
[all …]
Dusercertinmem.c176 CURLcode rv; in main() local
178 rv = curl_global_init(CURL_GLOBAL_ALL); in main()
180 rv = curl_easy_setopt(ch,CURLOPT_VERBOSE, 0L); in main()
181 rv = curl_easy_setopt(ch,CURLOPT_HEADER, 0L); in main()
182 rv = curl_easy_setopt(ch,CURLOPT_NOPROGRESS, 1L); in main()
183 rv = curl_easy_setopt(ch,CURLOPT_NOSIGNAL, 1L); in main()
184 rv = curl_easy_setopt(ch,CURLOPT_WRITEFUNCTION, *writefunction); in main()
185 rv = curl_easy_setopt(ch,CURLOPT_WRITEDATA, stdout); in main()
186 rv = curl_easy_setopt(ch,CURLOPT_HEADERFUNCTION, *writefunction); in main()
187 rv = curl_easy_setopt(ch,CURLOPT_HEADERDATA, stderr); in main()
[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/autotest/client/common_lib/
Drevision_control.py146 rv = self._run(cmd, ignore_status=ignore_status)
147 if rv.exit_status != 0 and error_class is not None:
150 logging.error(rv.stderr)
152 else rv.stderr)
154 return rv
172 rv = self.gitcmd(cmd, True)
173 if rv.exit_status != 0:
174 logging.error(rv.stderr)
175 raise GitCloneError('Failed to clone git url', rv)
177 logging.info(rv.stdout)
[all …]
/external/libmicrohttpd/src/examples/
Dmhd2spdy_spdy.c147 ssize_t rv; in spdy_cb_send() local
167 rv = SSL_write(connection->ssl, data, length); in spdy_cb_send()
168 if(rv < 0) { in spdy_cb_send()
169 int err = SSL_get_error(connection->ssl, rv); in spdy_cb_send()
173 rv = SPDYLAY_ERR_WOULDBLOCK; in spdy_cb_send()
175 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in spdy_cb_send()
181 rv = write(connection->fd, in spdy_cb_send()
185 if (rv < 0) in spdy_cb_send()
194 rv = SPDYLAY_ERR_WOULDBLOCK; in spdy_cb_send()
198 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in spdy_cb_send()
[all …]
/external/chromium-trace/catapult/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/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/libmicrohttpd/src/testspdy/
Dtest_request_response.c186 int rv; in check_gzip() local
190 rv = spdylay_gzip_inflate_new(&req->inflater); in check_gzip()
191 if(rv != 0) { in check_gzip()
211 ssize_t rv; in send_callback() local
215 rv = SSL_write(connection->ssl, data, length); in send_callback()
216 if(rv < 0) { in send_callback()
217 int err = SSL_get_error(connection->ssl, rv); in send_callback()
221 rv = SPDYLAY_ERR_WOULDBLOCK; in send_callback()
223 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in send_callback()
226 return rv; in send_callback()
[all …]
Dtest_new_connection.c204 int rv; in check_gzip() local
208 rv = spdylay_gzip_inflate_new(&req->inflater); in check_gzip()
209 if(rv != 0) { in check_gzip()
229 ssize_t rv; in send_callback() local
233 rv = SSL_write(connection->ssl, data, length); in send_callback()
234 if(rv < 0) { in send_callback()
235 int err = SSL_get_error(connection->ssl, rv); in send_callback()
239 rv = SPDYLAY_ERR_WOULDBLOCK; in send_callback()
241 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in send_callback()
244 return rv; in send_callback()
[all …]
Dtest_notls.c183 int rv; in check_gzip() local
187 rv = spdylay_gzip_inflate_new(&req->inflater); in check_gzip()
188 if(rv != 0) { in check_gzip()
208 ssize_t rv; in send_callback() local
212 rv = write(connection->fd, in send_callback()
216 if (rv < 0) in send_callback()
225 rv = SPDYLAY_ERR_WOULDBLOCK; in send_callback()
229 rv = SPDYLAY_ERR_CALLBACK_FAILURE; in send_callback()
232 return rv; in send_callback()
249 ssize_t rv; in recv_callback() local
[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/chromium-trace/catapult/third_party/html5lib-python/html5lib/
Dihatexml.py105 rv = []
111 rv.append([hexToInt(item) for item in match.groups()])
112 if len(rv[-1]) == 1:
113 rv[-1] = rv[-1] * 2
119 rv.append([ord(item)] * 2)
120 rv = normaliseCharList(rv)
121 return rv
128 rv = []
132 rv.append(charList[i])
133 while i + j < len(charList) and charList[i + j][0] <= rv[-1][1] + 1:
[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.go644 func (v Value) Metadata(kind int) (rv Value) {
645 rv.C = C.LLVMGetMetadata(v.C, C.unsigned(kind))
655 func (v Value) IsAArgument() (rv Value) { rv.C = C.LLVMIsAArgument(v.C); return }
656 func (v Value) IsABasicBlock() (rv Value) { rv.C = C.LLVMIsABasicBlock(v.C); return }
657 func (v Value) IsAInlineAsm() (rv Value) { rv.C = C.LLVMIsAInlineAsm(v.C); return }
658 func (v Value) IsAUser() (rv Value) { rv.C = C.LLVMIsAUser(v.C); return }
659 func (v Value) IsAConstant() (rv Value) { rv.C = C.LLVMIsAConstant(v.C); return }
660 func (v Value) IsAConstantAggregateZero() (rv Value) {
661 rv.C = C.LLVMIsAConstantAggregateZero(v.C)
664 func (v Value) IsAConstantArray() (rv Value) { rv.C = C.LLVMIsAConstantArray(v.C); return }
[all …]
/external/libchrome/crypto/third_party/nss/
Dsecsign.cc92 SECStatus rv = HASH_HashBuf( in DerSignData() local
94 if (rv != SECSuccess) in DerSignData()
95 return rv; in DerSignData()
104 rv = PK11_Sign(key, &sig, &hash); in DerSignData()
105 if (rv != SECSuccess) in DerSignData()
106 return rv; in DerSignData()
115 rv = SECOID_SetAlgorithmID(arena, &sd.signatureAlgorithm, algo_id, 0); in DerSignData()
116 if (rv != SECSuccess) in DerSignData()
117 return rv; in DerSignData()
120 rv = DSAU_EncodeDerSigWithLen(&sd.signature, &sig, sig.len); in DerSignData()
[all …]

12345678910>>...16