Lines Matching refs:rc

81 	int rc;  in boot_fetch_active_slot()  local
84 rc = blinfo_lookup(BLINFO_RUNNING_SLOT, &slot, sizeof(slot)); in boot_fetch_active_slot()
86 if (rc <= 0) { in boot_fetch_active_slot()
87 LOG_ERR("Failed to fetch active slot: %d", rc); in boot_fetch_active_slot()
102 int rc; in boot_read_v1_header() local
104 rc = flash_area_open(area_id, &fa); in boot_read_v1_header()
105 if (rc) { in boot_read_v1_header()
106 return rc; in boot_read_v1_header()
112 rc = flash_area_read(fa, 0, v1_raw, sizeof(*v1_raw)); in boot_read_v1_header()
114 if (rc) { in boot_read_v1_header()
115 return rc; in boot_read_v1_header()
148 int rc; in boot_read_bank_header() local
160 rc = boot_read_v1_header(area_id, &v1_raw); in boot_read_bank_header()
161 if (rc) { in boot_read_bank_header()
162 return rc; in boot_read_bank_header()
203 int rc; in boot_request_upgrade() local
205 rc = boot_set_pending(permanent); in boot_request_upgrade()
206 if (rc) { in boot_request_upgrade()
215 int rc; in boot_request_upgrade_multi() local
217 rc = boot_set_pending_multi(image_index, permanent); in boot_request_upgrade_multi()
218 if (rc) { in boot_request_upgrade_multi()
228 int rc; in boot_is_img_confirmed() local
230 rc = flash_area_open(ACTIVE_SLOT_FLASH_AREA_ID, &fa); in boot_is_img_confirmed()
231 if (rc) { in boot_is_img_confirmed()
235 rc = boot_read_swap_state(fa, &state); in boot_is_img_confirmed()
236 if (rc != 0) { in boot_is_img_confirmed()
255 int rc = 0; in boot_write_img_confirmed() local
261 rc = boot_set_next(fa, true, true); in boot_write_img_confirmed()
265 return rc; in boot_write_img_confirmed()
270 int rc; in boot_write_img_confirmed_multi() local
272 rc = boot_set_confirmed_multi(image_index); in boot_write_img_confirmed_multi()
273 if (rc) { in boot_write_img_confirmed_multi()
283 int rc; in boot_erase_img_bank() local
285 rc = flash_area_open(area_id, &fa); in boot_erase_img_bank()
286 if (rc) { in boot_erase_img_bank()
287 return rc; in boot_erase_img_bank()
290 rc = flash_area_flatten(fa, 0, fa->fa_size); in boot_erase_img_bank()
294 return rc; in boot_erase_img_bank()
304 int rc; in boot_get_area_trailer_status_offset() local
308 rc = flash_area_open(area_id, &fa); in boot_get_area_trailer_status_offset()
309 if (rc) { in boot_get_area_trailer_status_offset()
310 return rc; in boot_get_area_trailer_status_offset()