Lines Matching refs:bootctrl

184   bootloader_control bootctrl;  in IsSlotMarkedSuccessful()  local
185 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in IsSlotMarkedSuccessful()
188 return (bootctrl.slot_info[slot].successful_boot && in IsSlotMarkedSuccessful()
189 bootctrl.slot_info[slot].tries_remaining); in IsSlotMarkedSuccessful()
198 bootloader_control bootctrl; in MarkBootSuccessful() local
199 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in MarkBootSuccessful()
202 bootctrl.slot_info[bootctrl_module->current_slot].successful_boot = 1; in MarkBootSuccessful()
206 bootctrl.slot_info[bootctrl_module->current_slot].tries_remaining = 1; in MarkBootSuccessful()
207 if (!SaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in MarkBootSuccessful()
228 bootloader_control bootctrl; in SetActiveBootSlot() local
229 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in SetActiveBootSlot()
237 if (bootctrl.slot_info[i].priority >= kActivePriority) in SetActiveBootSlot()
238 bootctrl.slot_info[i].priority = kActivePriority - 1; in SetActiveBootSlot()
244 bootctrl.slot_info[slot].priority = kActivePriority; in SetActiveBootSlot()
245 bootctrl.slot_info[slot].tries_remaining = kActiveTries; in SetActiveBootSlot()
253 bootctrl.slot_info[slot].verity_corrupted = 0; in SetActiveBootSlot()
255 if (!SaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in SetActiveBootSlot()
275 bootloader_control bootctrl; in SetSlotAsUnbootable() local
276 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in SetSlotAsUnbootable()
281 bootctrl.slot_info[slot].successful_boot = 0; in SetSlotAsUnbootable()
282 bootctrl.slot_info[slot].tries_remaining = 0; in SetSlotAsUnbootable()
283 if (!SaveBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in SetSlotAsUnbootable()
302 bootloader_control bootctrl; in IsSlotBootable() local
303 if (!LoadBootloaderControl(bootctrl_module->misc_device, &bootctrl)) in IsSlotBootable()
306 return bootctrl.slot_info[slot].tries_remaining; in IsSlotBootable()