Home
last modified time | relevance | path

Searched refs:ret (Results 51 – 75 of 317) sorted by relevance

12345678910>>...13

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_tls12_client.c133 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_write_ecjpake_kkpp_ext() local
168 ret = mbedtls_psa_ecjpake_write_round(&ssl->handshake->psa_pake_ctx, in ssl_write_ecjpake_kkpp_ext()
171 if (ret != 0) { in ssl_write_ecjpake_kkpp_ext()
174 MBEDTLS_SSL_DEBUG_RET(1, "psa_pake_output", ret); in ssl_write_ecjpake_kkpp_ext()
175 return ret; in ssl_write_ecjpake_kkpp_ext()
178 ret = mbedtls_ecjpake_write_round_one(&ssl->handshake->ecjpake_ctx, in ssl_write_ecjpake_kkpp_ext()
181 if (ret != 0) { in ssl_write_ecjpake_kkpp_ext()
183 "mbedtls_ecjpake_write_round_one", ret); in ssl_write_ecjpake_kkpp_ext()
184 return ret; in ssl_write_ecjpake_kkpp_ext()
519 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_ssl_tls12_write_client_hello_exts() local
[all …]
H A Dpkcs12.c39 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pkcs12_parse_pbe_params() local
55 if ((ret = mbedtls_asn1_get_tag(p, end, &salt->len, MBEDTLS_ASN1_OCTET_STRING)) != 0) { in pkcs12_parse_pbe_params()
56 return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT, ret); in pkcs12_parse_pbe_params()
62 if ((ret = mbedtls_asn1_get_int(p, end, iterations)) != 0) { in pkcs12_parse_pbe_params()
63 return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_PKCS12_PBE_INVALID_FORMAT, ret); in pkcs12_parse_pbe_params()
81 int ret, iterations = 0; in pkcs12_pbe_derive_key_iv() local
93 if ((ret = pkcs12_parse_pbe_params(pbe_params, &salt, in pkcs12_pbe_derive_key_iv()
95 return ret; in pkcs12_pbe_derive_key_iv()
102 if ((ret = mbedtls_pkcs12_derivation(key, keylen, unipwd, pwdlen * 2 + 2, in pkcs12_pbe_derive_key_iv()
105 return ret; in pkcs12_pbe_derive_key_iv()
[all …]
H A Dpsa_crypto_hash.c95 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_psa_hash_setup() local
106 ret = mbedtls_md5_starts(&operation->ctx.md5); in mbedtls_psa_hash_setup()
112 ret = mbedtls_ripemd160_starts(&operation->ctx.ripemd160); in mbedtls_psa_hash_setup()
118 ret = mbedtls_sha1_starts(&operation->ctx.sha1); in mbedtls_psa_hash_setup()
124 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 1); in mbedtls_psa_hash_setup()
130 ret = mbedtls_sha256_starts(&operation->ctx.sha256, 0); in mbedtls_psa_hash_setup()
136 ret = mbedtls_sha512_starts(&operation->ctx.sha512, 1); in mbedtls_psa_hash_setup()
142 ret = mbedtls_sha512_starts(&operation->ctx.sha512, 0); in mbedtls_psa_hash_setup()
148 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_224); in mbedtls_psa_hash_setup()
154 ret = mbedtls_sha3_starts(&operation->ctx.sha3, MBEDTLS_SHA3_256); in mbedtls_psa_hash_setup()
[all …]
H A Drsa_alt_helpers.c54 int ret = 0; in mbedtls_rsa_deduce_primes() local
99 ret = MBEDTLS_ERR_MPI_BAD_INPUT_DATA; in mbedtls_rsa_deduce_primes()
169 ret = MBEDTLS_ERR_MPI_BAD_INPUT_DATA; in mbedtls_rsa_deduce_primes()
175 return ret; in mbedtls_rsa_deduce_primes()
187 int ret = 0; in mbedtls_rsa_deduce_private_exponent() local
222 return ret; in mbedtls_rsa_deduce_private_exponent()
229 int ret = 0; in mbedtls_rsa_deduce_crt() local
253 return ret; in mbedtls_rsa_deduce_crt()
265 int ret = 0; in mbedtls_rsa_validate_params() local
282 (ret = mbedtls_mpi_is_prime_ext(P, 50, f_rng, p_rng)) != 0) { in mbedtls_rsa_validate_params()
[all …]
H A Dpkwrite.c125 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pk_write_ec_pubkey() local
142 if ((ret = mbedtls_ecp_point_write_binary(&ec->grp, &ec->Q, in pk_write_ec_pubkey()
145 return ret; in pk_write_ec_pubkey()
168 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pk_write_ec_private() local
175 ret = PSA_PK_ECDSA_TO_MBEDTLS_ERR(status); in pk_write_ec_private()
176 return ret; in pk_write_ec_private()
181 ret = PSA_PK_ECDSA_TO_MBEDTLS_ERR(status); in pk_write_ec_private()
186 ret = mbedtls_asn1_write_octet_string(p, start, tmp, byte_length); in pk_write_ec_private()
189 return ret; in pk_write_ec_private()
196 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in pk_write_ec_private() local
[all …]
H A Dctr_drbg.c170 int ret = 0; in block_cipher_df() local
215 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
221 if ((ret = mbedtls_aes_setkey_enc(&aes_ctx, key, in block_cipher_df()
245 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
249 if ((ret = mbedtls_aes_crypt_ecb(&aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df()
272 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
276 if ((ret = mbedtls_aes_setkey_enc(&aes_ctx, tmp, in block_cipher_df()
289 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
293 if ((ret = mbedtls_aes_crypt_ecb(&aes_ctx, MBEDTLS_AES_ENCRYPT, in block_cipher_df()
314 if (0 != ret) { in block_cipher_df()
[all …]
H A Dpsa_util.c396 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in convert_raw_to_der_single_int() local
441 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_ecdsa_raw_to_der() local
460 ret = convert_raw_to_der_single_int(s, coordinate_len, der, p); in mbedtls_ecdsa_raw_to_der()
461 if (ret < 0) { in mbedtls_ecdsa_raw_to_der()
462 return ret; in mbedtls_ecdsa_raw_to_der()
464 p -= ret; in mbedtls_ecdsa_raw_to_der()
465 len += ret; in mbedtls_ecdsa_raw_to_der()
467 ret = convert_raw_to_der_single_int(r, coordinate_len, der, p); in mbedtls_ecdsa_raw_to_der()
468 if (ret < 0) { in mbedtls_ecdsa_raw_to_der()
469 return ret; in mbedtls_ecdsa_raw_to_der()
[all …]
H A Dssl_tls13_generic.c62 int ret; in mbedtls_ssl_tls13_fetch_handshake_msg() local
64 if ((ret = mbedtls_ssl_read_record(ssl, 0)) != 0) { in mbedtls_ssl_tls13_fetch_handshake_msg()
65 MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_ssl_read_record", ret); in mbedtls_ssl_tls13_fetch_handshake_msg()
74 ret = MBEDTLS_ERR_SSL_UNEXPECTED_MESSAGE; in mbedtls_ssl_tls13_fetch_handshake_msg()
90 return ret; in mbedtls_ssl_tls13_fetch_handshake_msg()
228 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ssl_tls13_parse_certificate_verify() local
325 if ((ret = mbedtls_pk_verify_ext(sig_alg, options, in ssl_tls13_parse_certificate_verify()
331 MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_pk_verify_ext", ret); in ssl_tls13_parse_certificate_verify()
350 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_ssl_tls13_process_certificate_verify() local
368 ret = mbedtls_ssl_get_handshake_transcript( in mbedtls_ssl_tls13_process_certificate_verify()
[all …]
H A Decdh.c60 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ecdh_gen_public_restartable() local
75 return ret; in ecdh_gen_public_restartable()
100 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ecdh_compute_shared_restartable() local
109 ret = MBEDTLS_ERR_ECP_BAD_INPUT_DATA; in ecdh_compute_shared_restartable()
118 return ret; in ecdh_compute_shared_restartable()
180 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ecdh_setup_internal() local
182 ret = mbedtls_ecp_group_load(&ctx->grp, grp_id); in ecdh_setup_internal()
183 if (ret != 0) { in ecdh_setup_internal()
282 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in ecdh_make_params_internal() local
302 if ((ret = ecdh_gen_public_restartable(&ctx->grp, &ctx->d, &ctx->Q, in ecdh_make_params_internal()
[all …]
H A Dx509write_crt.c102 int ret; in mbedtls_x509write_crt_set_serial() local
113 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
114 if (ret < 0) { in mbedtls_x509write_crt_set_serial()
115 return ret; in mbedtls_x509write_crt_set_serial()
170 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_x509write_crt_set_basic_constraints() local
205 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_x509write_crt_set_key_identifier() local
234 ret = mbedtls_md(mbedtls_md_info_from_type(MBEDTLS_MD_SHA1), in mbedtls_x509write_crt_set_key_identifier()
237 if (ret != 0) { in mbedtls_x509write_crt_set_key_identifier()
238 return ret; in mbedtls_x509write_crt_set_key_identifier()
292 int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; in mbedtls_x509write_crt_set_key_usage() local
[all …]
/optee_os/core/drivers/crypto/hisilicon/
H A Dhisi_qm.c232 enum hisi_drv_status ret = HISI_QM_DRVCRYPT_NO_ERR; in hisi_qm_mb_write() local
237 ret = qm_mb_nolock(qm, &mb); in hisi_qm_mb_write()
240 return ret; in hisi_qm_mb_write()
246 enum hisi_drv_status ret = HISI_QM_DRVCRYPT_NO_ERR; in hisi_qm_mb_read() local
251 ret = qm_mb_nolock(qm, &mb); in hisi_qm_mb_read()
253 if (ret) in hisi_qm_mb_read()
254 return ret; in hisi_qm_mb_read()
322 enum hisi_drv_status ret = HISI_QM_DRVCRYPT_NO_ERR; in qm_set_xqc_vft() local
326 ret = qm_set_vft_common(qm, i, function, base, num); in qm_set_xqc_vft()
327 if (ret) { in qm_set_xqc_vft()
[all …]
H A Dsec_authenc.c133 enum hisi_drv_status ret = HISI_QM_DRVCRYPT_NO_ERR; in sec_do_aead_task() local
135 ret = hisi_qp_send(qp, msg); in sec_do_aead_task()
136 if (ret) { in sec_do_aead_task()
137 EMSG("Fail to send task, ret=%d", ret); in sec_do_aead_task()
141 ret = hisi_qp_recv_sync(qp, msg); in sec_do_aead_task()
142 if (ret) { in sec_do_aead_task()
143 EMSG("Recv task error, ret=%d", ret); in sec_do_aead_task()
187 TEE_Result ret = TEE_SUCCESS; in sec_authenc_ctx_allocate() local
194 ret = authenc_algo_check(algo); in sec_authenc_ctx_allocate()
195 if (ret) in sec_authenc_ctx_allocate()
[all …]
/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Drsassa.c180 TEE_Result ret = TEE_ERROR_BAD_PARAMETERS; in rsassa_pkcs1_v1_5_sign() local
192 ret = emsa_pkcs1_v1_5_encode(ssa_data, &EM); in rsassa_pkcs1_v1_5_sign()
194 ret = emsa_pkcs1_v1_5_encode_noasn1(ssa_data, &EM); in rsassa_pkcs1_v1_5_sign()
196 if (ret != TEE_SUCCESS) in rsassa_pkcs1_v1_5_sign()
209 ret = TEE_ERROR_NOT_IMPLEMENTED; in rsassa_pkcs1_v1_5_sign()
222 ret = rsa->decrypt(&rsa_data); in rsassa_pkcs1_v1_5_sign()
230 return ret; in rsassa_pkcs1_v1_5_sign()
241 TEE_Result ret = TEE_ERROR_BAD_PARAMETERS; in rsassa_pkcs1_v1_5_verify() local
251 ret = TEE_ERROR_OUT_OF_MEMORY; in rsassa_pkcs1_v1_5_verify()
259 ret = TEE_ERROR_OUT_OF_MEMORY; in rsassa_pkcs1_v1_5_verify()
[all …]
/optee_os/core/arch/arm/plat-k3/drivers/
H A Dsa2ul.c55 int ret = 0; in sa2ul_init() local
59 ret = ti_sci_device_get(SA2UL_TI_SCI_DEV_ID); in sa2ul_init()
60 if (ret) { in sa2ul_init()
69 ret = ti_sci_change_fwl_owner(fwl_id, sa2ul_region, owner_index, in sa2ul_init()
71 if (ret) { in sa2ul_init()
82 ret = ti_sci_get_fwl_region(fwl_id, sa2ul_region, 1, in sa2ul_init()
85 if (ret) { in sa2ul_init()
93 ret = ti_sci_set_fwl_region(fwl_id, sa2ul_region, 1, in sa2ul_init()
96 if (ret) { in sa2ul_init()
103 ret = ti_sci_change_fwl_owner(fwl_id, rng_region, owner_index, in sa2ul_init()
[all …]
/optee_os/core/drivers/
H A Dimx_i2c.c260 TEE_Result ret = TEE_SUCCESS; in i2c_idle_bus() local
263 ret = i2c_sync_bus(bid, &bus_is_idle, NULL); in i2c_idle_bus()
266 return ret; in i2c_idle_bus()
271 TEE_Result ret = TEE_SUCCESS; in i2c_write_byte() local
275 ret = i2c_sync_bus(bid, &isr_active, &status); in i2c_write_byte()
278 if (!ret && (status & I2SR_RX_NO_AK)) in i2c_write_byte()
281 return ret; in i2c_write_byte()
286 TEE_Result ret = TEE_SUCCESS; in i2c_read_byte() local
289 ret = i2c_sync_bus(bid, &isr_active, NULL); in i2c_read_byte()
292 return ret; in i2c_read_byte()
[all …]
H A Dzynqmp_huk.c116 TEE_Result ret = TEE_ERROR_GENERIC; in tee_otp_get_hw_unique_key() local
124 ret = tee_zynqmp_get_device_dna(device_dna, sizeof(device_dna)); in tee_otp_get_hw_unique_key()
125 if (ret) { in tee_otp_get_hw_unique_key()
136 ret = tee_hash_createdigest(TEE_ALG_SHA256, device_dna, in tee_otp_get_hw_unique_key()
139 if (ret) { in tee_otp_get_hw_unique_key()
152 ret = tee_zynqmp_generate_huk_src(device_dna, sizeof(device_dna), src, in tee_otp_get_hw_unique_key()
154 if (ret) { in tee_otp_get_hw_unique_key()
169 ret = zynqmp_csu_puf_regenerate(); in tee_otp_get_hw_unique_key()
170 if (ret) { in tee_otp_get_hw_unique_key()
178 ret = zynqmp_csu_aes_encrypt_data(src, sizeof(src), dst, sizeof(dst), in tee_otp_get_hw_unique_key()
[all …]
/optee_os/core/pta/tests/
H A Dtransfer_list.c150 TEE_Result ret = TEE_SUCCESS; in transfer_list_tests() local
159 ret = TEE_ERROR_GENERIC; in transfer_list_tests()
164 ret = TEE_ERROR_CORRUPT_OBJECT; in transfer_list_tests()
174 ret = TEE_ERROR_CORRUPT_OBJECT; in transfer_list_tests()
179 ret = test_add_te(tl, TEST_TE1_ID, sizeof(test_str1), test_str1, 0, in transfer_list_tests()
181 if (ret) in transfer_list_tests()
185 ret = test_add_te(tl, TEST_TE2_ID, sizeof(test_str2), test_str2, in transfer_list_tests()
187 if (ret) in transfer_list_tests()
191 ret = test_add_te(tl, TEST_TE3_ID, sizeof(test_str3), test_str3, 0, in transfer_list_tests()
193 if (ret) in transfer_list_tests()
[all …]
/optee_os/core/arch/riscv/kernel/
H A Dsbi_mpxy.c87 int ret = SBI_ERR_FAILURE; in sbi_mpxy_set_shmem() local
107 ret = sbiret.error; in sbi_mpxy_set_shmem()
113 ret = SBI_SUCCESS; in sbi_mpxy_set_shmem()
117 return ret; in sbi_mpxy_set_shmem()
197 int ret = SBI_ERR_FAILURE; in sbi_mpxy_read_attributes() local
207 ret = SBI_ERR_NO_SHMEM; in sbi_mpxy_read_attributes()
219 ret = sbiret.error; in sbi_mpxy_read_attributes()
222 return ret; in sbi_mpxy_read_attributes()
244 int ret = SBI_ERR_FAILURE; in sbi_mpxy_write_attributes() local
254 ret = SBI_ERR_NO_SHMEM; in sbi_mpxy_write_attributes()
[all …]
/optee_os/core/drivers/crypto/versal/
H A Dauthenc.c269 TEE_Result ret = TEE_SUCCESS; in do_replay() local
271 ret = replay_init(); in do_replay()
272 if (ret) in do_replay()
273 return ret; in do_replay()
277 ret = replay_aad(&node->aad); in do_replay()
278 if (ret) in do_replay()
279 return ret; in do_replay()
281 ret = replay_payload(&node->payload); in do_replay()
282 if (ret) in do_replay()
283 return ret; in do_replay()
[all …]
/optee_os/core/drivers/crypto/caam/cipher/
H A Dcaam_cipher_mac.c143 TEE_Result ret = TEE_ERROR_BAD_PARAMETERS; in do_update_mac() local
182 ret = TEE_SUCCESS; in do_update_mac()
187 ret = caam_dmaobj_init_input(&src, dupdate->src.data, in do_update_mac()
189 if (ret) in do_update_mac()
192 ret = caam_dmaobj_prepare(&src, NULL, ctx->alg->size_block); in do_update_mac()
193 if (ret) in do_update_mac()
198 ret = caam_dmaobj_output_sgtbuf(&dst, dupdate->dst.data, in do_update_mac()
201 if (ret) in do_update_mac()
213 ret = caam_dmaobj_add_first_block(&src, &ctx->blockbuf); in do_update_mac()
214 if (ret) in do_update_mac()
[all …]
H A Dcaam_cipher_xts.c79 TEE_Result ret = TEE_ERROR_GENERIC; in caam_cipher_update_xts() local
107 ret = caam_dmaobj_input_sgtbuf(&tweak, ctx->tweak.data, in caam_cipher_update_xts()
109 if (ret) in caam_cipher_update_xts()
116 ret = caam_dmaobj_output_sgtbuf(&enc_tweak, NULL, 0, ctx->tweak.length); in caam_cipher_update_xts()
117 if (ret) in caam_cipher_update_xts()
120 ret = caam_dmaobj_output_sgtbuf(&tmpdst, NULL, 0, ctx->alg->size_block); in caam_cipher_update_xts()
121 if (ret) in caam_cipher_update_xts()
128 ret = caam_status_to_tee_result(retstatus); in caam_cipher_update_xts()
150 ret = TEE_ERROR_BAD_PARAMETERS; in caam_cipher_update_xts()
167 ret = do_tweak_block(ctx, &enc_tweak.orig, &srcbuf, &dstbuf, in caam_cipher_update_xts()
[all …]
H A Dcaam_cipher.c259 TEE_Result ret = TEE_ERROR_NOT_IMPLEMENTED; in do_allocate() local
281 ret = TEE_ERROR_OUT_OF_MEMORY; in do_allocate()
299 return ret; in do_allocate()
378 TEE_Result ret = TEE_ERROR_BAD_PARAMETERS; in caam_cipher_initialize() local
386 return ret; in caam_cipher_initialize()
407 ret = TEE_ERROR_OUT_OF_MEMORY; in caam_cipher_initialize()
428 ret = TEE_ERROR_OUT_OF_MEMORY; in caam_cipher_initialize()
453 ret = TEE_ERROR_OUT_OF_MEMORY; in caam_cipher_initialize()
474 ret = TEE_ERROR_OUT_OF_MEMORY; in caam_cipher_initialize()
484 ret = caam_calloc_align_buf(&cipherdata->tweak, in caam_cipher_initialize()
[all …]
/optee_os/core/drivers/crypto/caam/mp/
H A Dcaam_mp.c51 enum caam_status ret = CAAM_FAILURE; in do_mppriv_gen() local
79 ret = caam_jr_enqueue(&jobctx, NULL); in do_mppriv_gen()
81 if (ret != CAAM_NO_ERROR) { in do_mppriv_gen()
83 ret = CAAM_NOT_SUPPORTED; in do_mppriv_gen()
87 return ret; in do_mppriv_gen()
92 TEE_Result ret = TEE_ERROR_GENERIC; in caam_mp_export_mpmr() local
100 ret = caam_hal_ctrl_read_mpmr(mp_privdata.ctrl_addr, &caam_mpmr); in caam_mp_export_mpmr()
103 return ret; in caam_mp_export_mpmr()
108 TEE_Result ret = TEE_ERROR_GENERIC; in caam_mp_export_publickey() local
129 ret = caam_dmaobj_output_sgtbuf(&reskey, pubkey, *size, in caam_mp_export_publickey()
[all …]
/optee_os/core/drivers/crypto/crypto_api/authenc/
H A Dauthenc.c81 TEE_Result ret = TEE_ERROR_NOT_IMPLEMENTED; in authenc_init() local
104 ret = authenc->op->init(&dinit); in authenc_init()
107 CRYPTO_TRACE("authenc ret 0x%" PRIx32, ret); in authenc_init()
108 return ret; in authenc_init()
121 TEE_Result ret = TEE_ERROR_NOT_IMPLEMENTED; in authenc_update_aad() local
136 ret = authenc->op->update_aad(&dupdate); in authenc_update_aad()
139 CRYPTO_TRACE("authenc ret 0x%" PRIx32, ret); in authenc_update_aad()
140 return ret; in authenc_update_aad()
156 TEE_Result ret = TEE_ERROR_NOT_IMPLEMENTED; in authenc_update_payload() local
179 ret = authenc->op->update_payload(&dupdate); in authenc_update_payload()
[all …]
/optee_os/ldelf/
H A Dmain.c64 size_t ret; member
73 int ret = 0; in print_to_pbuf() local
75 if (pbuf->buf && pbuf->blen > pbuf->ret) { in print_to_pbuf()
76 buf = pbuf->buf + pbuf->ret; in print_to_pbuf()
77 blen = pbuf->blen - pbuf->ret; in print_to_pbuf()
80 ret = vsnprintk(buf, blen, fmt, ap); in print_to_pbuf()
81 assert(ret >= 0); in print_to_pbuf()
83 pbuf->ret += ret; in print_to_pbuf()
92 if (pbuf->buf && pbuf->blen > pbuf->ret) { in copy_to_pbuf()
93 buf = pbuf->buf + pbuf->ret; in copy_to_pbuf()
[all …]

12345678910>>...13