Home
last modified time | relevance | path

Searched refs:sz0 (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
173 i = sz0 = primary_slot_sz = 0; in boot_slots_compatible()
177 if (sz0 == sz1) { in boot_slots_compatible()
178 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_slots_compatible()
182 } else if (sz0 < sz1) { in boot_slots_compatible()
183 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_slots_compatible()
216 if (sz0 == sz1) { in boot_slots_compatible()
217 primary_slot_sz += sz0; 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 …]