Lines Matching refs:info
143 bool boot_info_save(BrilloBootInfo *info) in boot_info_save() argument
156 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); in boot_info_save()
164 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate() argument
166 if (info->magic[0] != 'B' || in boot_info_validate()
167 info->magic[1] != 'C' || in boot_info_validate()
168 info->magic[2] != 'c') in boot_info_validate()
170 if (info->active_slot >= 2) in boot_info_validate()
175 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset() argument
177 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
178 info->magic[0] = 'B'; in boot_info_reset()
179 info->magic[1] = 'C'; in boot_info_reset()
180 info->magic[2] = 'c'; in boot_info_reset()