Lines Matching refs:pri_off
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)
460 uint32_t pri_off; local
465 pri_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx);
472 pri_off);
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);
491 BOOT_LOG_DBG("Skipping erase of primary 0x%x and copy from secondary 0x%x", pri_off,
495 BOOT_LOG_DBG("Erasing primary 0x%x of 0x%x", pri_off, sz);
496 rc = boot_erase_region(fap_pri, pri_off, sz);
500 BOOT_LOG_DBG("Copying secondary 0x%x -> primary 0x%x of 0x%x", sec_up_off, pri_off,
502 rc = BOOT_COPY_REGION(state, fap_sec, fap_pri, sec_up_off, pri_off, sz, 0);
518 uint32_t pri_off; local
526 pri_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx);
533 pri_off);
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);
552 BOOT_LOG_DBG("Skipping erase of primary 0x%x and copy from secondary 0x%x", pri_off,
556 BOOT_LOG_DBG("Erasing primary 0x%x of 0x%x", pri_off, sz);
557 rc = boot_erase_region(fap_pri, pri_off, sz);
561 BOOT_LOG_DBG("Copying secondary 0x%x -> primary 0x%x of 0x%x", sec_up_off, pri_off,
563 rc = BOOT_COPY_REGION(state, fap_sec, fap_pri, sec_up_off, pri_off, sz, 0);