Home
last modified time | relevance | path

Searched refs:res_buf (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c136 struct mcumgr_image_state res_buf; in ZTEST() local
140 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
145 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
147 zassert_equal(1, res_buf.image_list_length, "Expected to receive %d response %d", 1, in ZTEST()
148 res_buf.image_list_length); in ZTEST()
150 rc = img_mgmt_client_state_read(&img_client, &res_buf); in ZTEST()
152 zassert_equal(2, res_buf.image_list_length, "Expected to receive %d response %d", 2, in ZTEST()
153 res_buf.image_list_length); in ZTEST()
160 struct mcumgr_image_state res_buf; in ZTEST() local
166 rc = img_mgmt_client_state_write(&img_client, NULL, false, &res_buf); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_client/src/
Dmain.c25 static struct net_buf *res_buf; variable
30 res_buf = nb; in smp_client_res_cb()
71 zassert_is_null(res_buf, "NULL pointer was not returned"); in ZTEST()
82 res_buf = NULL; in ZTEST()
95 zassert_is_null(res_buf, "NULL pointer was not returned"); in ZTEST()
100 zassert_equal_ptr(res_buf, buf[1], "Response Buf not correct"); in ZTEST()
103 res_buf = NULL; in ZTEST()
105 zassert_is_null(res_buf, "NULL pointer was not returned"); in ZTEST()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/img_mgmt/
Dimg_mgmt_client.h156 struct mcumgr_image_upload *res_buf);
171 struct mcumgr_image_state *res_buf);
182 int img_mgmt_client_state_read(struct img_mgmt_client *client, struct mcumgr_image_state *res_buf);
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/
Dimg_mgmt_client.c332 struct mcumgr_image_upload *res_buf) in img_mgmt_client_upload() argument
344 image_upload_buf = res_buf; in img_mgmt_client_upload()
453 struct mcumgr_image_state *res_buf) in img_mgmt_client_state_write() argument
463 image_info = res_buf; in img_mgmt_client_state_write()
465 res_buf->image_list_length = 0; in img_mgmt_client_state_write()
466 res_buf->image_list = active_client->image_list; in img_mgmt_client_state_write()
471 res_buf->status = MGMT_ERR_ENOMEM; in img_mgmt_client_state_write()
497 res_buf->status = MGMT_ERR_ENOMEM; in img_mgmt_client_state_write()
506 res_buf->status = rc; in img_mgmt_client_state_write()
512 rc = res_buf->status; in img_mgmt_client_state_write()
[all …]