Home
last modified time | relevance | path

Searched refs:fw_slot (Results 1 – 5 of 5) sorted by relevance

/external/vboot_reference/firmware/2lib/
D2misc.c88 vb2_nv_set(ctx, VB2_NV_TRY_NEXT, 1 - sd->fw_slot); in vb2_fail()
94 if (sd->last_fw_slot != 1 - sd->fw_slot || in vb2_fail()
332 sd->fw_slot = vb2_nv_get(ctx, VB2_NV_TRY_NEXT); in vb2_select_fw_slot()
338 sd->last_fw_slot == sd->fw_slot && in vb2_select_fw_slot()
344 sd->fw_slot = 1 - sd->fw_slot; in vb2_select_fw_slot()
345 vb2_nv_set(ctx, VB2_NV_TRY_NEXT, sd->fw_slot); in vb2_select_fw_slot()
357 vb2_nv_set(ctx, VB2_NV_FW_TRIED, sd->fw_slot); in vb2_select_fw_slot()
360 if (sd->fw_slot) in vb2_select_fw_slot()
/external/vboot_reference/tests/
Dvb2_misc_tests.c220 sd->fw_slot = 0; in fail_tests()
233 sd->fw_slot = 1; in fail_tests()
425 TEST_EQ(sd->fw_slot, 0, "selected A"); in select_slot_tests()
436 TEST_EQ(sd->fw_slot, 1, "selected B"); in select_slot_tests()
446 TEST_EQ(sd->fw_slot, 1, "selected B"); in select_slot_tests()
457 TEST_EQ(sd->fw_slot, 0, "selected A"); in select_slot_tests()
/external/vboot_reference/firmware/2lib/include/
D2struct.h81 uint32_t fw_slot; member
/external/vboot_reference/firmware/lib21/
Dmisc.c221 sd->last_fw_slot == sd->fw_slot && in vb2_load_fw_preamble()
/external/vboot_reference/firmware/lib20/
Dmisc.c209 sd->last_fw_slot == sd->fw_slot && in vb2_load_fw_preamble()