Searched refs:tries_remaining (Results 1 – 4 of 4) sorted by relevance
68 data->slots[0].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()71 data->slots[1].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()136 (slot->successful_boot || (slot->tries_remaining > 0)); in slot_is_bootable()141 slot->tries_remaining = 0; in slot_set_unbootable()151 if (slot->tries_remaining == 0 && !slot->successful_boot) { in slot_normalize()155 if (slot->tries_remaining > 0 && slot->successful_boot) { in slot_normalize()370 ab_data.slots[slot_index_to_boot].tries_remaining > 0) { in avb_ab_flow()371 ab_data.slots[slot_index_to_boot].tries_remaining -= 1; in avb_ab_flow()420 ab_data.slots[slot_number].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_mark_slot_active()479 ab_data.slots[slot_number].tries_remaining = 0; in avb_ab_mark_slot_successful()
69 uint8_t tries_remaining; member
59 EXPECT_EQ(AVB_AB_MAX_TRIES_REMAINING, data.slots[0].tries_remaining); in TEST_F()62 EXPECT_EQ(AVB_AB_MAX_TRIES_REMAINING, data.slots[1].tries_remaining); in TEST_F()250 data.slots[0].tries_remaining = a_tries; in SetMD()253 data.slots[1].tries_remaining = b_tries; in SetMD()282 EXPECT_EQ(a_tries, data.slots[0].tries_remaining); \285 EXPECT_EQ(b_tries, data.slots[1].tries_remaining); \298 EXPECT_EQ(AVB_AB_MAX_TRIES_REMAINING, loaded.slots[0].tries_remaining); in TEST_F()301 EXPECT_EQ(AVB_AB_MAX_TRIES_REMAINING, loaded.slots[1].tries_remaining); in TEST_F()308 data.slots[0].tries_remaining = 3; in TEST_F()312 EXPECT_EQ(3, loaded.slots[0].tries_remaining); in TEST_F()[all …]
114 (ab_data.slots[slot].tries_remaining > 0)); in module_isSlotBootable()