Lines Matching refs:state
74 static struct boot_swap_state state; in boot_image_validate_once() local
78 memset(&state, 0, sizeof(struct boot_swap_state)); in boot_image_validate_once()
79 rc = boot_read_swap_state(fa_p, &state); in boot_image_validate_once()
82 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once()
83 || state.image_ok != BOOT_FLAG_SET) { in boot_image_validate_once()
89 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
123 static struct boot_loader_state state; in boot_go() local
124 state.imgs[0][0].hdr = _hdr; in boot_go()
126 rc = boot_load_image_to_sram(&state); in boot_go()
135 boot_remove_image_from_sram(&state); in boot_go()
143 boot_remove_image_from_sram(&state); in boot_go()