Lines Matching refs:boot_ctrl
53 static uint32_t GetBootloaderControlCRC(const bootloader_control* boot_ctrl) { in GetBootloaderControlCRC() argument
54 return crc32(0, (const uint8_t*)boot_ctrl, in GetBootloaderControlCRC()
59 bootloader_control* boot_ctrl) { in LoadBootloaderControl() argument
61 if (read_bootloader_control_from(boot_ctrl, misc_device, &str_err)) in LoadBootloaderControl()
70 bootloader_control* boot_ctrl) { in SaveBootloaderControl() argument
71 boot_ctrl->crc32_le = GetBootloaderControlCRC(boot_ctrl); in SaveBootloaderControl()
74 if (write_bootloader_control_to(boot_ctrl, misc_device, &str_err)) in SaveBootloaderControl()
123 bootloader_control boot_ctrl; in BootControlInit() local
124 if (!LoadBootloaderControl(device.c_str(), &boot_ctrl)) in BootControlInit()
129 uint32_t computed_crc32 = GetBootloaderControlCRC(&boot_ctrl); in BootControlInit()
130 if (boot_ctrl.crc32_le != computed_crc32) { in BootControlInit()
133 computed_crc32, boot_ctrl.crc32_le); in BootControlInit()
137 std::string metadata_suffix = "_" + std::string(boot_ctrl.slot_suffix); in BootControlInit()
142 boot_ctrl.slot_suffix); in BootControlInit()
147 bootctrl_module->num_slots = boot_ctrl.nb_slot; in BootControlInit()
149 ALOGI("Current slot: %s(%d), number of slots: %d", boot_ctrl.slot_suffix, in BootControlInit()