Lines Matching refs:boot
1012 static bool CommandIsPresent(bootloader_message* boot) { in CommandIsPresent() argument
1013 if (boot->command[0] == '\0') in CommandIsPresent()
1016 for (size_t i = 0; i < arraysize(boot->command); ++i) { in CommandIsPresent()
1017 if (boot->command[i] == '\0') in CommandIsPresent()
1019 if (!isprint(boot->command[i])) in CommandIsPresent()
1023 memset(boot->command, 0, sizeof(boot->command)); in CommandIsPresent()
1073 bootloader_message boot = {}; in HandlePowerctlMessage() local
1074 if (std::string err; !read_bootloader_message(&boot, &err)) { in HandlePowerctlMessage()
1079 if (!CommandIsPresent(&boot)) { in HandlePowerctlMessage()
1080 strlcpy(boot.command, "boot-recovery", sizeof(boot.command)); in HandlePowerctlMessage()
1081 if (std::string err; !write_bootloader_message(boot, &err)) { in HandlePowerctlMessage()
1087 bootloader_message boot = {}; in HandlePowerctlMessage() local
1088 if (std::string err; !read_bootloader_message(&boot, &err)) { in HandlePowerctlMessage()
1093 if (!CommandIsPresent(&boot)) { in HandlePowerctlMessage()
1094 strlcpy(boot.command, "boot-quiescent", sizeof(boot.command)); in HandlePowerctlMessage()
1095 if (std::string err; !write_bootloader_message(boot, &err)) { in HandlePowerctlMessage()