Lines Matching refs:info
146 bool boot_info_save(BrilloBootInfo *info) in boot_info_save() argument
159 num_written = write(fd, (void*) info, sizeof(BrilloBootInfo)); in boot_info_save()
167 bool boot_info_validate(BrilloBootInfo* info) in boot_info_validate() argument
169 if (info->magic[0] != 'B' || in boot_info_validate()
170 info->magic[1] != 'C' || in boot_info_validate()
171 info->magic[2] != 'c') in boot_info_validate()
173 if (info->active_slot >= 2) in boot_info_validate()
178 void boot_info_reset(BrilloBootInfo* info) in boot_info_reset() argument
180 memset(info, '\0', sizeof(BrilloBootInfo)); in boot_info_reset()
181 info->magic[0] = 'B'; in boot_info_reset()
182 info->magic[1] = 'C'; in boot_info_reset()
183 info->magic[2] = 'c'; in boot_info_reset()