Home
last modified time | relevance | path

Searched refs:sz1 (Results 1 – 1 of 1) sorted by relevance

/mcuboot-latest/boot/bootutil/src/
Dswap_scratch.c146 size_t sz0, sz1; in boot_slots_compatible() local
174 j = sz1 = secondary_slot_sz = 0; in boot_slots_compatible()
177 if (sz0 == sz1) { in boot_slots_compatible()
179 sz1 += boot_img_sector_size(state, BOOT_SECONDARY_SLOT, j); in boot_slots_compatible()
182 } else if (sz0 < sz1) { in boot_slots_compatible()
204 sz1 += sector_size; in boot_slots_compatible()
216 if (sz0 == sz1) { in boot_slots_compatible()
218 secondary_slot_sz += sz1; in boot_slots_compatible()
222 if (sz0 > scratch_sz || sz1 > scratch_sz) { in boot_slots_compatible()
226 smaller = sz0 = sz1 = 0; in boot_slots_compatible()
[all …]