Home
last modified time | relevance | path

Searched refs:slot_index_to_boot (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_ab.c206 size_t slot_index_to_boot; in spl_get_current_slot() local
217 slot_index_to_boot = 1; in spl_get_current_slot()
219 slot_index_to_boot = 0; in spl_get_current_slot()
221 slot_index_to_boot = 0; in spl_get_current_slot()
223 slot_index_to_boot = 1; in spl_get_current_slot()
237 if (slot_index_to_boot == 0) in spl_get_current_slot()
239 else if (slot_index_to_boot == 1) in spl_get_current_slot()
242 if (last_slot_index != slot_index_to_boot) { in spl_get_current_slot()
243 last_slot_index = slot_index_to_boot; in spl_get_current_slot()
246 ab_data.slots[slot_index_to_boot].successful_boot, in spl_get_current_slot()
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/rk_avb_user/
H A Drk_ab_ops_user.c320 size_t slot_index_to_boot; in rk_avb_ab_slot_select() local
331 slot_index_to_boot = 1; in rk_avb_ab_slot_select()
333 slot_index_to_boot = 0; in rk_avb_ab_slot_select()
336 slot_index_to_boot = 0; in rk_avb_ab_slot_select()
338 slot_index_to_boot = 1; in rk_avb_ab_slot_select()
345 if (slot_index_to_boot == 0) { in rk_avb_ab_slot_select()
347 } else if(slot_index_to_boot == 1) { in rk_avb_ab_slot_select()
351 if (last_slot_index != slot_index_to_boot) { in rk_avb_ab_slot_select()
352 last_slot_index = slot_index_to_boot; in rk_avb_ab_slot_select()
355 ab_data.slots[slot_index_to_boot].successful_boot, in rk_avb_ab_slot_select()
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/libavb_ab/
H A Davb_ab_flow.c216 size_t slot_index_to_boot, n; in avb_ab_flow() local
303 slot_index_to_boot = 1; in avb_ab_flow()
305 slot_index_to_boot = 0; in avb_ab_flow()
308 slot_index_to_boot = 0; in avb_ab_flow()
310 slot_index_to_boot = 1; in avb_ab_flow()
363 avb_assert(slot_data[slot_index_to_boot] != NULL); in avb_ab_flow()
364 data = slot_data[slot_index_to_boot]; in avb_ab_flow()
365 slot_data[slot_index_to_boot] = NULL; in avb_ab_flow()
374 if (!ab_data.slots[slot_index_to_boot].successful_boot && in avb_ab_flow()
375 ab_data.slots[slot_index_to_boot].tries_remaining > 0) { in avb_ab_flow()
[all …]
/OK3568_Linux_fs/u-boot/common/
H A Dandroid_bootloader.c767 size_t slot_index_to_boot = 0; in android_slot_verify() local
817 slot_index_to_boot = 0; in android_slot_verify()
819 slot_index_to_boot = 1; in android_slot_verify()
821 slot_index_to_boot = 0; in android_slot_verify()
941 slot_set_unbootable(&ab_data.slots[slot_index_to_boot]); in android_slot_verify()