Lines Matching full:fa
101 const struct flash_area *fa; in boot_read_v1_header() local
104 rc = flash_area_open(area_id, &fa); in boot_read_v1_header()
112 rc = flash_area_read(fa, 0, v1_raw, sizeof(*v1_raw)); in boot_read_v1_header()
113 flash_area_close(fa); in boot_read_v1_header()
227 const struct flash_area *fa; in boot_is_img_confirmed() local
230 rc = flash_area_open(ACTIVE_SLOT_FLASH_AREA_ID, &fa); in boot_is_img_confirmed()
235 rc = boot_read_swap_state(fa, &state); in boot_is_img_confirmed()
254 const struct flash_area *fa; in boot_write_img_confirmed() local
257 if (flash_area_open(ACTIVE_SLOT_FLASH_AREA_ID, &fa) != 0) { in boot_write_img_confirmed()
261 rc = boot_set_next(fa, true, true); in boot_write_img_confirmed()
263 flash_area_close(fa); in boot_write_img_confirmed()
282 const struct flash_area *fa; in boot_erase_img_bank() local
285 rc = flash_area_open(area_id, &fa); in boot_erase_img_bank()
290 rc = flash_area_flatten(fa, 0, fa->fa_size); in boot_erase_img_bank()
292 flash_area_close(fa); in boot_erase_img_bank()
305 const struct flash_area *fa; in boot_get_area_trailer_status_offset() local
308 rc = flash_area_open(area_id, &fa); in boot_get_area_trailer_status_offset()
313 offset = boot_get_trailer_status_offset(fa->fa_size); in boot_get_area_trailer_status_offset()
315 flash_area_close(fa); in boot_get_area_trailer_status_offset()