Lines Matching refs:sz
430 uint32_t sz; in boot_copy_sz() local
433 sz = 0; in boot_copy_sz()
437 new_sz = sz + boot_img_sector_size(state, BOOT_PRIMARY_SLOT, i); in boot_copy_sz()
446 sz = new_sz; in boot_copy_sz()
453 return sz; in boot_copy_sz()
546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument
566 copy_sz = sz; in boot_swap_sectors()
594 if ((img_off + sz) > in boot_swap_sectors()
599 bs->use_scratch = (bs->idx == BOOT_STATUS_IDX_0 && copy_sz != sz); in boot_swap_sectors()
655 rc = boot_erase_region(fap_secondary_slot, img_off, sz); in boot_swap_sectors()
676 rc = boot_erase_region(fap_primary_slot, img_off, sz); in boot_swap_sectors()
751 uint32_t sz; in swap_run() local
762 sz = boot_copy_sz(state, last_sector_idx, &first_sector_idx); in swap_run()
764 boot_swap_sectors(first_sector_idx, sz, state, bs); in swap_run()