Lines Matching refs:rv
21 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
97 rv = vb2ex_hwcrypto_digest_init(sig->hash_alg, sig->data_size); in vb2api_init_hash2()
98 if (!rv) { in vb2api_init_hash2()
105 if (rv != VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED) in vb2api_init_hash2()
106 return rv; in vb2api_init_hash2()
128 int rv; in vb2api_check_hash() local
152 rv = vb2ex_hwcrypto_digest_finalize(digest, digest_size); in vb2api_check_hash()
154 rv = vb2_digest_finalize(dc, digest, digest_size); in vb2api_check_hash()
155 if (rv) in vb2api_check_hash()
156 return rv; in vb2api_check_hash()