Lines Matching refs:fap_scratch
551 const struct flash_area *fap_scratch; in boot_swap_sectors() local
611 rc = flash_area_open(FLASH_AREA_IMAGE_SCRATCH, &fap_scratch); in boot_swap_sectors()
616 rc = boot_erase_region(fap_scratch, 0, flash_area_get_size(fap_scratch)); in boot_swap_sectors()
624 rc = swap_status_init(state, fap_scratch, bs); in boot_swap_sectors()
639 rc = boot_erase_region(fap_scratch, 0, in boot_swap_sectors()
640 flash_area_get_size(fap_scratch)); in boot_swap_sectors()
645 rc = boot_copy_region(state, fap_secondary_slot, fap_scratch, in boot_swap_sectors()
682 rc = boot_copy_region(state, fap_scratch, fap_primary_slot, in boot_swap_sectors()
687 scratch_trailer_off = boot_status_off(fap_scratch); in boot_swap_sectors()
690 rc = boot_copy_region(state, fap_scratch, fap_primary_slot, in boot_swap_sectors()
695 rc = boot_read_swap_state(fap_scratch, &swap_state); in boot_swap_sectors()
737 rc = boot_erase_region(fap_scratch, 0, flash_area_get_size(fap_scratch)); in boot_swap_sectors()
744 flash_area_close(fap_scratch); in boot_swap_sectors()