Home
last modified time | relevance | path

Searched refs:g_img_mgmt_state (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dimg_mgmt.c93 struct img_mgmt_state g_img_mgmt_state; variable
400 memset(&g_img_mgmt_state, 0, sizeof(g_img_mgmt_state)); in img_mgmt_reset_upload()
401 g_img_mgmt_state.area_id = -1; in img_mgmt_reset_upload()
676 zcbor_size_put(zse, g_img_mgmt_state.off); in img_mgmt_upload_good_rsp()
828 g_img_mgmt_state.area_id = action.area_id; in img_mgmt_upload()
829 g_img_mgmt_state.size = action.size; in img_mgmt_upload()
840 g_img_mgmt_state.off = 0; in img_mgmt_upload()
856 g_img_mgmt_state.data_sha_len = req.data_sha.len; in img_mgmt_upload()
857 memcpy(g_img_mgmt_state.data_sha, req.data_sha.value, req.data_sha.len); in img_mgmt_upload()
858 memset(&g_img_mgmt_state.data_sha[req.data_sha.len], 0, in img_mgmt_upload()
[all …]
Dzephyr_img_mgmt.c401 if (flash_img_init_id(ctx, g_img_mgmt_state.area_id) != 0) { in img_mgmt_write_image_data()
427 if (flash_img_init_id(&ctx, g_img_mgmt_state.area_id) != 0) { in img_mgmt_write_image_data()
450 rc = flash_area_open(g_img_mgmt_state.area_id, &fa); in img_mgmt_erase_image_data()
613 if ((req->data_sha.len > 0) && (g_img_mgmt_state.area_id != -1)) { in img_mgmt_upload_inspect()
614 if ((g_img_mgmt_state.data_sha_len == req->data_sha.len) && in img_mgmt_upload_inspect()
615 !memcmp(g_img_mgmt_state.data_sha, req->data_sha.value, in img_mgmt_upload_inspect()
751 action->area_id = g_img_mgmt_state.area_id; in img_mgmt_upload_inspect()
752 action->size = g_img_mgmt_state.size; in img_mgmt_upload_inspect()
754 if (req->off != g_img_mgmt_state.off) { in img_mgmt_upload_inspect()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt.h181 extern struct img_mgmt_state g_img_mgmt_state;