Lines Matching refs:sz
54 uint32_t sz; in find_last_idx() local
58 sz = 0; in find_last_idx()
61 sz += sector_sz; in find_last_idx()
63 if (sz >= swap_size) { in find_last_idx()
77 uint32_t sz; in boot_read_image_header() local
97 sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, 0); in boot_read_image_header()
104 off = sz; in boot_read_image_header()
110 off = sz; in boot_read_image_header()
239 uint32_t sz = 0; in app_max_sectors() local
249 sz += sector_sz; in app_max_sectors()
250 if (sz >= trailer_sz) { in app_max_sectors()
387 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up() argument
417 rc = boot_erase_region(fap_pri, new_off, sz); in boot_move_sector_up()
420 rc = boot_copy_region(state, fap_pri, fap_pri, old_off, new_off, sz); in boot_move_sector_up()
430 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument
444 rc = boot_erase_region(fap_pri, pri_off, sz); in boot_swap_sectors()
447 rc = boot_copy_region(state, fap_sec, fap_pri, sec_off, pri_off, sz); in boot_swap_sectors()
456 rc = boot_erase_region(fap_sec, sec_off, sz); in boot_swap_sectors()
459 rc = boot_copy_region(state, fap_pri, fap_sec, pri_up_off, sec_off, sz); in boot_swap_sectors()
521 uint32_t sz; in swap_run() local
541 sz = 0; in swap_run()
546 sz += sector_sz; in swap_run()
547 if (sz >= trailer_sz) { in swap_run()