Lines Matching full:0

58     sizeof(img_mgmt_handlers) / sizeof(img_mgmt_handlers[0])
89 if (rc != 0) { in img_mgmt_find_tlvs()
102 return 0; in img_mgmt_find_tlvs()
114 uint8_t dummy_hash[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, in img_mgmt_read_info()
115 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77}; in img_mgmt_read_info()
118 return 0; in img_mgmt_read_info()
126 memset(ver, 0xff, sizeof *ver); in img_mgmt_read_info()
130 *flags = 0; in img_mgmt_read_info()
133 return 0; in img_mgmt_read_info()
146 if (rc != 0) { in img_mgmt_read_info()
150 rc = img_mgmt_impl_read(image_slot, 0, &hdr, sizeof hdr); in img_mgmt_read_info()
151 if (rc != 0) { in img_mgmt_read_info()
189 if (rc != 0) { in img_mgmt_read_info()
196 if (rc != 0) { in img_mgmt_read_info()
199 if (tlv.it_type == 0xff && tlv.it_len == 0xffff) { in img_mgmt_read_info()
221 if (rc != 0) { in img_mgmt_read_info()
231 return 0; in img_mgmt_read_info()
244 for (i = 0; i < 2; i++) { in img_mgmt_find_by_ver()
245 if (img_mgmt_read_info(i, &ver, hash, NULL) != 0) { in img_mgmt_find_by_ver()
265 for (i = 0; i < 2; i++) { in img_mgmt_find_by_hash()
266 if (img_mgmt_read_info(i, ver, hash, NULL) != 0) { in img_mgmt_find_by_hash()
296 memset(&g_img_mgmt_state, 0, sizeof(g_img_mgmt_state)); in img_mgmt_reset_upload()
316 if (rc == 0) { in img_mgmt_erase()
331 err = 0; in img_mgmt_erase()
335 if (err != 0) { in img_mgmt_erase()
339 return 0; in img_mgmt_erase()
352 if (err != 0) { in img_mgmt_upload_good_rsp()
356 return 0; in img_mgmt_upload_good_rsp()
369 * @return 0 on success; nonzero on failure.
382 if (is_last || status != 0) { in img_mgmt_upload_log()
385 if (rc != 0) { in img_mgmt_upload_log()
395 return 0; in img_mgmt_upload_log()
408 .data_len = 0, in img_mgmt_upload()
409 .data_sha_len = 0, in img_mgmt_upload()
411 .image = 0, in img_mgmt_upload()
416 [0] = { in img_mgmt_upload()
454 [6] = { 0 }, in img_mgmt_upload()
462 if (rc != 0) { in img_mgmt_upload()
468 if (rc != 0) { in img_mgmt_upload()
485 if (rc != 0) { in img_mgmt_upload()
495 if (req.off == 0) { in img_mgmt_upload()
499 g_img_mgmt_state.off = 0; in img_mgmt_upload()
511 memset(&g_img_mgmt_state.data_sha[req.data_sha_len], 0, in img_mgmt_upload()
517 g_img_mgmt_state.sector_end = 0; in img_mgmt_upload()
521 rc = img_mgmt_impl_erase_image_data(0, req.size); in img_mgmt_upload()
522 if (rc != 0) { in img_mgmt_upload()
534 if (req.data_len != 0) { in img_mgmt_upload()
537 if (img_mgmt_impl_erase_if_needed(req.off, action.write_bytes) != 0) { in img_mgmt_upload()
550 if (rc != 0) { in img_mgmt_upload()
568 img_mgmt_upload_log(req.off == 0, g_img_mgmt_state.off == g_img_mgmt_state.size, rc); in img_mgmt_upload()
572 if (reset == true || rc != 0) { in img_mgmt_upload()
577 if (rc != 0) { in img_mgmt_upload()