• Home
  • Raw
  • Download

Lines Matching refs:boot

142 bool read_bootloader_message_from(bootloader_message* boot, const std::string& misc_blk_device,  in read_bootloader_message_from()  argument
144 return read_misc_partition(boot, sizeof(*boot), misc_blk_device, in read_bootloader_message_from()
148 bool read_bootloader_message(bootloader_message* boot, std::string* err) { in read_bootloader_message() argument
153 return read_bootloader_message_from(boot, misc_blk_device, err); in read_bootloader_message()
156 bool write_bootloader_message_to(const bootloader_message& boot, const std::string& misc_blk_device, in write_bootloader_message_to() argument
158 return write_misc_partition(&boot, sizeof(boot), misc_blk_device, in write_bootloader_message_to()
162 bool write_bootloader_message(const bootloader_message& boot, std::string* err) { in write_bootloader_message() argument
167 return write_bootloader_message_to(boot, misc_blk_device, err); in write_bootloader_message()
171 bootloader_message boot = {}; in clear_bootloader_message() local
172 return write_bootloader_message(boot, err); in clear_bootloader_message()
176 bootloader_message boot = {}; in write_bootloader_message() local
177 update_bootloader_message_in_struct(&boot, options); in write_bootloader_message()
179 return write_bootloader_message(boot, err); in write_bootloader_message()
183 bootloader_message boot; in update_bootloader_message() local
184 if (!read_bootloader_message(&boot, err)) { in update_bootloader_message()
187 update_bootloader_message_in_struct(&boot, options); in update_bootloader_message()
189 return write_bootloader_message(boot, err); in update_bootloader_message()
192 bool update_bootloader_message_in_struct(bootloader_message* boot, in update_bootloader_message_in_struct() argument
194 if (!boot) return false; in update_bootloader_message_in_struct()
196 memset(boot->command, 0, sizeof(boot->command)); in update_bootloader_message_in_struct()
197 memset(boot->recovery, 0, sizeof(boot->recovery)); in update_bootloader_message_in_struct()
199 strlcpy(boot->command, "boot-recovery", sizeof(boot->command)); in update_bootloader_message_in_struct()
200 strlcpy(boot->recovery, "recovery\n", sizeof(boot->recovery)); in update_bootloader_message_in_struct()
202 strlcat(boot->recovery, s.c_str(), sizeof(boot->recovery)); in update_bootloader_message_in_struct()
204 strlcat(boot->recovery, "\n", sizeof(boot->recovery)); in update_bootloader_message_in_struct()
211 bootloader_message boot; in write_reboot_bootloader() local
212 if (!read_bootloader_message(&boot, err)) { in write_reboot_bootloader()
215 if (boot.command[0] != '\0') { in write_reboot_bootloader()
219 strlcpy(boot.command, "bootonce-bootloader", sizeof(boot.command)); in write_reboot_bootloader()
220 return write_bootloader_message(boot, err); in write_reboot_bootloader()