Lines Matching refs:rv
36 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()
193 return rv; in vb2_fw_parse_gbb()
210 int rv; in vb2_check_dev_switch() local
213 rv = vb2_secdata_get(ctx, VB2_SECDATA_FLAGS, &flags); in vb2_check_dev_switch()
214 if (rv) in vb2_check_dev_switch()
215 return rv; in vb2_check_dev_switch()
267 rv = vb2ex_tpm_clear_owner(ctx); in vb2_check_dev_switch()
268 if (rv) { in vb2_check_dev_switch()
274 vb2_fail(ctx, VB2_RECOVERY_TPM_CLEAR_OWNER, rv); in vb2_check_dev_switch()
275 return rv; in vb2_check_dev_switch()
279 rv = vb2_secdata_set(ctx, VB2_SECDATA_FLAGS, flags); in vb2_check_dev_switch()
280 if (rv) in vb2_check_dev_switch()
281 return rv; in vb2_check_dev_switch()
289 int rv; in vb2_check_tpm_clear() local
299 rv = vb2ex_tpm_clear_owner(ctx); in vb2_check_tpm_clear()
300 if (rv) { in vb2_check_tpm_clear()
306 vb2_fail(ctx, VB2_RECOVERY_TPM_CLEAR_OWNER, rv); in vb2_check_tpm_clear()
307 return rv; in vb2_check_tpm_clear()