Lines Matching full:if
27 #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) || defined(MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE)
49 if (IS_ENCRYPTED(hdr)) in boot_image_validate()
52 * This flag could be set if there was a decryption in place in boot_image_validate()
53 * was performed. We will try to validate the image, and if still in boot_image_validate()
65 #if defined(MCUBOOT_VALIDATE_PRIMARY_SLOT_ONCE)
76 if (rc != 0) in boot_image_validate_once()
78 if (state.magic != BOOT_MAGIC_GOOD in boot_image_validate_once()
82 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in boot_image_validate_once()
85 if (state.magic != BOOT_MAGIC_GOOD) { in boot_image_validate_once()
87 if (rc != 0) in boot_image_validate_once()
91 if (rc != 0) in boot_image_validate_once()
115 if (rc != 0) { in validate_image_slot()
121 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in validate_image_slot()
126 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in validate_image_slot()
145 * image if none of the enabled entrance modes for the firmware loader are set,
160 if (io_detect_pin() && in boot_go()
167 if (io_detect_pin_reset()) { in boot_go()
173 if (io_detect_boot_mode()) { in boot_go()
178 /* Check if firmware loader button is pressed. TODO: check all entrance methods */ in boot_go()
179 if (boot_firmware_loader == true) { in boot_go()
182 if (FIH_EQ(fih_rc, FIH_SUCCESS)) { in boot_go()
190 if (FIH_NOT_EQ(fih_rc, FIH_SUCCESS)) { in boot_go()