Home
last modified time | relevance | path

Searched refs:image_info (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/
Dimg_mgmt_client.c37 static struct mcumgr_image_state *image_info; variable
73 image_info->status = MGMT_ERR_ETIMEOUT; in image_state_res_fn()
81 image_info->status = MGMT_ERR_ECORRUPT; in image_state_res_fn()
87 image_info->status = MGMT_ERR_ECORRUPT; in image_state_res_fn()
91 image_info->status = MGMT_ERR_EINVAL; in image_state_res_fn()
97 image_info->status = MGMT_ERR_ECORRUPT; in image_state_res_fn()
120 if (image_info->image_list_length) { in image_state_res_fn()
125 image_info->status = MGMT_ERR_EINVAL; in image_state_res_fn()
133 image_info->status = MGMT_ERR_EINVAL; in image_state_res_fn()
138 image_info->image_list[image_info->image_list_length].img_num = img_num; in image_state_res_fn()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c22 static struct mcumgr_image_data image_info[2]; variable
38 img_mgmt_client_init(&img_client, &smp_client, 2, image_info); in ZTEST()
177 zassert_equal(false, image_info[1].flags.pending, "Expected to receive %d response %d", in ZTEST()
178 false, image_info[1].flags.pending); in ZTEST()
180 memcpy(hash, image_info[1].hash, 32); in ZTEST()
189 zassert_equal(true, image_info[1].flags.pending, "Expected to receive %d response %d", in ZTEST()
190 true, image_info[1].flags.pending); in ZTEST()
192 image_info[0].flags.confirmed = false; in ZTEST()
198 zassert_equal(true, image_info[0].flags.confirmed, "Expected to receive %d response %d", in ZTEST()
199 true, image_info[0].flags.confirmed); in ZTEST()
[all …]