Lines Matching refs:sz

52 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \  argument
53 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off)
55 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
56 boot_copy_region(state, fap_pri, fap_sec, pri_off, sec_off, sz)
62 uint32_t sz; in find_last_idx() local
66 sz = 0; in find_last_idx()
70 sz += sector_sz; in find_last_idx()
72 if (sz >= swap_size) { in find_last_idx()
85 uint32_t sz; local
115 sz = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, 0);
128 off = sz;
161 off = sz;
315 uint32_t sz = 0; local
325 sz += sector_sz;
327 if (sz >= trailer_sz) {
455 static void boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, argument
475 BOOT_LOG_DBG("Erasing secondary 0x%x of 0x%x", sec_off, sz);
476 rc = boot_erase_region(fap_sec, sec_off, sz);
479 BOOT_LOG_DBG("Copying primary 0x%x -> secondary 0x%x of 0x%x", pri_off, sec_off, sz);
480 rc = BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, 0);
495 BOOT_LOG_DBG("Erasing primary 0x%x of 0x%x", pri_off, sz);
496 rc = boot_erase_region(fap_pri, pri_off, sz);
501 sz);
502 rc = BOOT_COPY_REGION(state, fap_sec, fap_pri, sec_up_off, pri_off, sz, 0);
513 static void boot_swap_sectors_revert(int idx, uint32_t sz, struct boot_loader_state *state, argument
536 BOOT_LOG_DBG("Erasing secondary 0x%x of 0x%x", sec_off, sz);
537 rc = boot_erase_region(fap_sec, sec_off, sz);
540 BOOT_LOG_DBG("Copying primary 0x%x -> secondary 0x%x of 0x%x", pri_off, sec_off, sz);
541 rc = BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_sz);
556 BOOT_LOG_DBG("Erasing primary 0x%x of 0x%x", pri_off, sz);
557 rc = boot_erase_region(fap_pri, pri_off, sz);
562 sz);
563 rc = BOOT_COPY_REGION(state, fap_sec, fap_pri, sec_up_off, pri_off, sz, 0);
620 uint32_t sz; local
640 sz = 0;
645 sz += sector_sz;
646 if (sz >= trailer_sz) {