Lines Matching refs:boot
194 struct bootloader_message boot; in get_args() local
195 memset(&boot, 0, sizeof(boot)); in get_args()
196 get_bootloader_message(&boot); // this may fail, leaving a zeroed structure in get_args()
197 stage = strndup(boot.stage, sizeof(boot.stage)); in get_args()
199 if (boot.command[0] != 0 && boot.command[0] != 255) { in get_args()
200 LOGI("Boot command: %.*s\n", (int)sizeof(boot.command), boot.command); in get_args()
203 if (boot.status[0] != 0 && boot.status[0] != 255) { in get_args()
204 LOGI("Boot status: %.*s\n", (int)sizeof(boot.status), boot.status); in get_args()
209 boot.recovery[sizeof(boot.recovery) - 1] = '\0'; // Ensure termination in get_args()
210 const char *arg = strtok(boot.recovery, "\n"); in get_args()
219 } else if (boot.recovery[0] != 0 && boot.recovery[0] != 255) { in get_args()
220 LOGE("Bad boot message\n\"%.20s\"\n", boot.recovery); in get_args()
251 strlcpy(boot.command, "boot-recovery", sizeof(boot.command)); in get_args()
252 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery)); in get_args()
255 strlcat(boot.recovery, (*argv)[i], sizeof(boot.recovery)); in get_args()
256 strlcat(boot.recovery, "\n", sizeof(boot.recovery)); in get_args()
258 set_bootloader_message(&boot); in get_args()
263 struct bootloader_message boot; in set_sdcard_update_bootloader_message() local
264 memset(&boot, 0, sizeof(boot)); in set_sdcard_update_bootloader_message()
265 strlcpy(boot.command, "boot-recovery", sizeof(boot.command)); in set_sdcard_update_bootloader_message()
266 strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery)); in set_sdcard_update_bootloader_message()
267 set_bootloader_message(&boot); in set_sdcard_update_bootloader_message()
399 struct bootloader_message boot; in finish_recovery() local
400 memset(&boot, 0, sizeof(boot)); in finish_recovery()
401 set_bootloader_message(&boot); in finish_recovery()