Lines Matching refs:rv
39 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()
81 int rv; in vb2api_fw_phase2() local
88 rv = vb2_check_tpm_clear(ctx); in vb2api_fw_phase2()
89 if (rv) { in vb2api_fw_phase2()
90 vb2_fail(ctx, VB2_RECOVERY_TPM_CLEAR_OWNER, rv); in vb2api_fw_phase2()
91 return rv; in vb2api_fw_phase2()
95 rv = vb2_select_fw_slot(ctx); in vb2api_fw_phase2()
96 if (rv) { in vb2api_fw_phase2()
97 vb2_fail(ctx, VB2_RECOVERY_FW_SLOT, rv); in vb2api_fw_phase2()
98 return rv; in vb2api_fw_phase2()