Lines Matching refs:BOOT_PRIMARY_SLOT
154 num_sectors_primary = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT); in boot_slots_compatible()
178 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_slots_compatible()
183 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_slots_compatible()
437 new_sz = sz + boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_copy_sz()
485 BOOT_PRIMARY_SLOT, in find_last_sector_idx()
564 img_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx); in boot_swap_sectors()
578 last_sector = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT) - 1; in boot_swap_sectors()
579 sector_sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, last_sector); in boot_swap_sectors()
588 sector_sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, --last_sector); in boot_swap_sectors()
595 boot_img_sector_off(state, BOOT_PRIMARY_SLOT, last_sector)) { in boot_swap_sectors()
786 num_sectors_primary = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT); in app_max_size()
805 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in app_max_size()
810 sz0 += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in app_max_size()
871 if (active_slot == BOOT_PRIMARY_SLOT) { in app_max_size()
874 active_slot = BOOT_PRIMARY_SLOT; in app_max_size()
935 hdr_slot = (slot == BOOT_PRIMARY_SLOT) ? BOOT_SECONDARY_SLOT : BOOT_PRIMARY_SLOT; in boot_read_image_header()
946 } else if (slot == BOOT_PRIMARY_SLOT && bs->state >= BOOT_STATUS_STATE_2) { in boot_read_image_header()