Lines Matching full:if

28 #if defined(MCUBOOT_MEASURED_BOOT) || defined(MCUBOOT_DATA_SHARING)
35 #if !defined(MCUBOOT_CUSTOM_DATA_SHARING_FUNCTION)
56 if (data == NULL) { in boot_add_data_to_shared_area()
62 /* Check whether first time to call this function. If does then initialise in boot_add_data_to_shared_area()
65 if (!shared_memory_init_done) { in boot_add_data_to_shared_area()
78 /* Iterates over the TLV section looks for the same entry if found then in boot_add_data_to_shared_area()
84 if (GET_MAJOR(tlv_entry.tlv_type) == major_type && in boot_add_data_to_shared_area()
96 if (!boot_u16_safe_add(&boot_data_size, boot_data->header.tlv_tot_len, in boot_add_data_to_shared_area()
102 if (boot_data_size > MCUBOOT_SHARED_DATA_SIZE) { in boot_add_data_to_shared_area()
144 if (rc) { in boot_save_boot_status()
153 if (rc < 0) { in boot_save_boot_status()
155 } else if (rc > 0) { in boot_save_boot_status()
159 if (type == IMAGE_TLV_BOOT_RECORD) { in boot_save_boot_status()
160 if (len > sizeof(buf)) { in boot_save_boot_status()
164 if (rc) { in boot_save_boot_status()
171 } else if (type == EXPECTED_HASH_TLV) { in boot_save_boot_status()
173 if (len > sizeof(image_hash)) { in boot_save_boot_status()
177 if (rc) { in boot_save_boot_status()
192 if (!boot_record_found || !hash_found) { in boot_save_boot_status()
199 if (record_len < sizeof(image_hash)) { in boot_save_boot_status()
223 if (rc != SHARED_MEMORY_OK) { in boot_save_boot_status()
238 #if defined(MCUBOOT_SINGLE_APPLICATION_SLOT) in boot_save_shared_data()
247 #if defined(MCUBOOT_DIRECT_XIP_REVERT) in boot_save_shared_data()
260 #if defined(MCUBOOT_SIGN_RSA) in boot_save_shared_data()
270 #if defined(MCUBOOT_SERIAL_RECOVERY) in boot_save_shared_data()
278 #if defined(MCUBOOT_VERSION_AVAILABLE) in boot_save_shared_data()
283 #if defined(MCUBOOT_VERSION_PATCHLEVEL) in boot_save_shared_data()
289 #if defined(MCUBOOT_VERSION_TWEAK) in boot_save_shared_data()
301 if (!rc) { in boot_save_shared_data()
308 if (!rc) { in boot_save_shared_data()
314 if (!rc) { in boot_save_shared_data()
320 #if defined(MCUBOOT_VERSION_AVAILABLE) in boot_save_shared_data()
321 if (!rc) { in boot_save_shared_data()
330 if (max_app_sizes[image].calculated == true) { in boot_save_shared_data()