Lines Matching refs:slots

106 	data->slots[0].priority = AVB_AB_MAX_PRIORITY;  in spl_ab_data_init()
107 data->slots[0].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in spl_ab_data_init()
108 data->slots[0].successful_boot = 0; in spl_ab_data_init()
109 data->slots[1].priority = AVB_AB_MAX_PRIORITY - 1; in spl_ab_data_init()
110 data->slots[1].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in spl_ab_data_init()
111 data->slots[1].successful_boot = 0; in spl_ab_data_init()
238 if (spl_slot_is_bootable(&ab_data.slots[0]) && in spl_get_current_slot()
239 spl_slot_is_bootable(&ab_data.slots[1])) { in spl_get_current_slot()
240 if (ab_data.slots[1].priority > ab_data.slots[0].priority) in spl_get_current_slot()
244 } else if (spl_slot_is_bootable(&ab_data.slots[0])) { in spl_get_current_slot()
246 } else if (spl_slot_is_bootable(&ab_data.slots[1])) { in spl_get_current_slot()
270 ab_data.slots[slot_index_to_boot].successful_boot, in spl_get_current_slot()
271 ab_data.slots[slot_index_to_boot].tries_remaining); in spl_get_current_slot()
369 spl_slot_normalize(&ab_data.slots[0]); in spl_ab_decrease_tries()
370 spl_slot_normalize(&ab_data.slots[1]); in spl_ab_decrease_tries()
373 if (!ab_data.slots[slot_index].successful_boot && in spl_ab_decrease_tries()
374 ab_data.slots[slot_index].tries_remaining > 0) in spl_ab_decrease_tries()
375 ab_data.slots[slot_index].tries_remaining -= 1; in spl_ab_decrease_tries()
397 if (!spl_slot_is_bootable(&ab_data.slots[0]) && in spl_ab_decrease_reset()
398 !spl_slot_is_bootable(&ab_data.slots[1])) { in spl_ab_decrease_reset()