Lines Matching refs:boot
147 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device, in read_bootloader_message_from() argument
149 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from()
153 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument
158 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message()
161 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument
163 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to()
167 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument
172 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message()
176 bootloader_message boot = {}; in clear_bootloader_message() local
177 return write_bootloader_message(boot, err); in clear_bootloader_message()
181 bootloader_message boot = {}; in write_bootloader_message() local
182 update_bootloader_message_in_struct(&boot, options); in write_bootloader_message()
184 return write_bootloader_message(boot, err); in write_bootloader_message()
189 bootloader_message boot = {}; in write_bootloader_message_to() local
190 update_bootloader_message_in_struct(&boot, options); in write_bootloader_message_to()
192 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message_to()
196 bootloader_message boot; in update_bootloader_message() local
197 if (!read_bootloader_message(&boot, err)) { in update_bootloader_message()
200 update_bootloader_message_in_struct(&boot, options); in update_bootloader_message()
202 return write_bootloader_message(boot, err); in update_bootloader_message()
205 bool update_bootloader_message_in_struct(bootloader_message* boot, in update_bootloader_message_in_struct() argument
207 if (!boot) return false; in update_bootloader_message_in_struct()
209 memset(boot->command, 0, sizeof(boot->command)); in update_bootloader_message_in_struct()
210 memset(boot->recovery, 0, sizeof(boot->recovery)); in update_bootloader_message_in_struct()
212 strlcpy(boot->command, "boot-recovery", sizeof(boot->command)); in update_bootloader_message_in_struct()
221 strlcpy(boot->recovery, recovery.c_str(), sizeof(boot->recovery)); in update_bootloader_message_in_struct()
226 bootloader_message boot; in write_reboot_bootloader() local
227 if (!read_bootloader_message(&boot, err)) { in write_reboot_bootloader()
230 if (boot.command[0] != '\0') { in write_reboot_bootloader()
234 strlcpy(boot.command, "bootonce-bootloader", sizeof(boot.command)); in write_reboot_bootloader()
235 return write_bootloader_message(boot, err); in write_reboot_bootloader()