/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/smp_client/src/ |
D | main.c | 26 static struct smp_client_object smp_client; variable 35 ZTEST(smp_client, test_buf_alloc) in ZTEST() argument 37 struct smp_client_object smp_client; in ZTEST() local 41 buf[i] = smp_client_buf_allocation(&smp_client, MGMT_GROUP_ID_IMAGE, 1, in ZTEST() 59 ZTEST(smp_client, test_msg_send_timeout) in ZTEST() argument 65 nb = smp_client_buf_allocation(&smp_client, MGMT_GROUP_ID_IMAGE, 1, MGMT_OP_WRITE, in ZTEST() 68 rc = smp_client_send_cmd(&smp_client, nb, smp_client_res_cb, &testing_user_data, 2); in ZTEST() 75 ZTEST(smp_client, test_msg_response_handler) in ZTEST() argument 84 buf[0] = smp_client_buf_allocation(&smp_client, MGMT_GROUP_ID_IMAGE, 1, MGMT_OP_WRITE, in ZTEST() 87 rc = smp_client_send_cmd(&smp_client, buf[0], smp_client_res_cb, &testing_user_data, 8); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp_client/src/ |
D | client.c | 30 struct smp_client_object *smp_client; member 54 struct smp_client_object *smp_client; in smp_client_handle_reqs() local 58 smp_client = (void *)work; in smp_client_handle_reqs() 59 smpt = smp_client->smpt; in smp_client_handle_reqs() 61 while ((nb = net_buf_get(&smp_client->tx_fifo, K_NO_WAIT)) != NULL) { in smp_client_handle_reqs() 114 net_buf_put(&entry->smp_client->tx_fifo, entry->nb); in smp_client_transport_work_fn() 115 smp_tx_req(&entry->smp_client->work); in smp_client_transport_work_fn() 211 int smp_client_object_init(struct smp_client_object *smp_client, int smp_type) in smp_client_object_init() argument 213 smp_client->smpt = smp_client_transport_get(smp_type); in smp_client_object_init() 214 if (!smp_client->smpt) { in smp_client_object_init() [all …]
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/os_mgmt_client/src/ |
D | os_mgmt_client.c | 36 void os_mgmt_client_init(struct os_mgmt_client *client, struct smp_client_object *smp_client) in os_mgmt_client_init() argument 38 client->smp_client = smp_client; in os_mgmt_client_init() 62 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_OS, in os_mgmt_client_reset() 69 rc = smp_client_send_cmd(active_client->smp_client, nb, reset_res_fn, in os_mgmt_client_reset() 131 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_OS, OS_MGMT_ID_ECHO, in os_mgmt_client_echo() 154 rc = smp_client_send_cmd(active_client->smp_client, nb, echo_res_fn, in os_mgmt_client_echo()
|
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/smp/ |
D | smp_client.h | 43 int smp_client_object_init(struct smp_client_object *smp_client, int smp_type); 79 struct net_buf *smp_client_buf_allocation(struct smp_client_object *smp_client, uint16_t group, 102 int smp_client_send_cmd(struct smp_client_object *smp_client, struct net_buf *nb,
|
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/grp/os_mgmt/ |
D | os_mgmt_client.h | 22 struct smp_client_object *smp_client; member 34 void os_mgmt_client_init(struct os_mgmt_client *client, struct smp_client_object *smp_client);
|
/Zephyr-Core-3.5.0/include/zephyr/mgmt/mcumgr/grp/img_mgmt/ |
D | img_mgmt_client.h | 97 struct smp_client_object *smp_client; member 119 void img_mgmt_client_init(struct img_mgmt_client *client, struct smp_client_object *smp_client,
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/ |
D | img_mgmt_client.c | 296 void img_mgmt_client_init(struct img_mgmt_client *client, struct smp_client_object *smp_client, in img_mgmt_client_init() argument 299 client->smp_client = smp_client; in img_mgmt_client_init() 366 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_IMAGE, in img_mgmt_client_upload() 420 rc = smp_client_send_cmd(active_client->smp_client, nb, image_upload_res_fn, in img_mgmt_client_upload() 468 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_IMAGE, in img_mgmt_client_state_write() 503 rc = smp_client_send_cmd(active_client->smp_client, nb, image_state_res_fn, in img_mgmt_client_state_write() 533 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_IMAGE, in img_mgmt_client_state_read() 550 rc = smp_client_send_cmd(active_client->smp_client, nb, image_state_res_fn, in img_mgmt_client_state_read() 576 nb = smp_client_buf_allocation(active_client->smp_client, MGMT_GROUP_ID_IMAGE, in img_mgmt_client_erase() 595 rc = smp_client_send_cmd(client->smp_client, nb, erase_res_fn, &mcumgr_img_client_grp_sem, in img_mgmt_client_erase()
|
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | main.c | 26 static struct smp_client_object smp_client; variable 38 img_mgmt_client_init(&img_client, &smp_client, 2, image_info); in ZTEST() 240 smp_client_object_init(&smp_client, SMP_SERIAL_TRANSPORT); in setup_custom_os() 241 os_mgmt_client_init(&os_client, &smp_client); in setup_custom_os() 242 img_mgmt_client_init(&img_client, &smp_client, 2, image_info); in setup_custom_os()
|
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/smp_client/ |
D | CMakeLists.txt | 9 project(smp_client) project
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/ |
D | CMakeLists.txt | 16 add_subdirectory_ifdef(CONFIG_SMP_CLIENT smp_client)
|
D | Kconfig | 38 rsource "smp_client/Kconfig"
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp_client/ |
D | Kconfig | 4 # The Kconfig file is dedicated to smp_client subdirectory of MCUmgr
|