Home
last modified time | relevance | path

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

/bootable/recovery/boot_control/
Dboot_control.cpp257 boot_control_private_t* const bootctrl_module = reinterpret_cast<boot_control_private_t*>(module); in BootControl_markBootSuccessful() local
260 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_markBootSuccessful()
262 bootctrl.slot_info[bootctrl_module->current_slot].successful_boot = 1; in BootControl_markBootSuccessful()
266 bootctrl.slot_info[bootctrl_module->current_slot].tries_remaining = 1; in BootControl_markBootSuccessful()
267 if (!UpdateAndSaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_markBootSuccessful()
272 boot_control_private_t* const bootctrl_module = reinterpret_cast<boot_control_private_t*>(module); in BootControl_setActiveBootSlot() local
274 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in BootControl_setActiveBootSlot()
280 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) return -1; in BootControl_setActiveBootSlot()
285 for (unsigned int i = 0; i < bootctrl_module->num_slots; ++i) { in BootControl_setActiveBootSlot()
302 if (slot != bootctrl_module->current_slot) bootctrl.slot_info[slot].verity_corrupted = 0; in BootControl_setActiveBootSlot()
[all …]