Lines Matching full:fa
20 static void erase_image_status_page(const struct flash_area *fa) in erase_image_status_page() argument
26 sf_dev = flash_area_get_device(fa); in erase_image_status_page()
29 ret = flash_get_page_info_by_offs(sf_dev, fa->fa_off + fa->fa_size - 1, in erase_image_status_page()
39 const struct flash_area *fa; in _test_request_upgrade_n() local
51 ret = flash_area_open(fa_id, &fa); in _test_request_upgrade_n()
54 erase_image_status_page(fa); in _test_request_upgrade_n()
60 ret = flash_area_read(fa, fa->fa_size - sizeof(expectation), in _test_request_upgrade_n()
88 const struct flash_area *fa; in _test_write_confirm_n() local
94 ret = flash_area_open(fa_id, &fa); in _test_write_confirm_n()
97 erase_image_status_page(fa); in _test_write_confirm_n()
99 ret = flash_area_read(fa, fa->fa_size - sizeof(img_magic), in _test_write_confirm_n()
104 ret = flash_area_write(fa, fa->fa_size - 16, in _test_write_confirm_n()
110 ret = flash_area_write(fa, fa->fa_size - 32, &flag, sizeof(flag)); in _test_write_confirm_n()
116 ret = flash_area_read(fa, fa->fa_size - 24, readout, in _test_write_confirm_n()