/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/transport/src/ |
D | smp_reassembly.c | 18 void smp_reassembly_init(struct smp_transport *smpt) in smp_reassembly_init() argument 20 smpt->__reassembly.current = NULL; in smp_reassembly_init() 21 smpt->__reassembly.expected = 0; in smp_reassembly_init() 24 int smp_reassembly_expected(const struct smp_transport *smpt) in smp_reassembly_expected() argument 26 if (smpt->__reassembly.current == NULL) { in smp_reassembly_expected() 30 return smpt->__reassembly.expected; in smp_reassembly_expected() 33 int smp_reassembly_collect(struct smp_transport *smpt, const void *buf, uint16_t len) in smp_reassembly_collect() argument 35 if (smpt->__reassembly.current == NULL) { in smp_reassembly_collect() 60 smpt->__reassembly.current = smp_packet_alloc(); in smp_reassembly_collect() 61 if (smpt->__reassembly.current != NULL) { in smp_reassembly_collect() [all …]
|
D | smp.c | 71 struct smp_transport *smpt = arg; in smp_alloc_rsp() local 80 if (smpt->functions.ud_copy) { in smp_alloc_rsp() 81 smpt->functions.ud_copy(rsp_nb, req_nb); in smp_alloc_rsp() 93 struct smp_transport *smpt = arg; in smp_free_buf() local 99 if (smpt->functions.ud_free) { in smp_free_buf() 100 smpt->functions.ud_free(net_buf_user_data((struct net_buf *)buf)); in smp_free_buf() 110 smp_process_packet(struct smp_transport *smpt, struct net_buf *nb) in smp_process_packet() argument 120 .smpt = smpt, in smp_process_packet() 133 struct smp_transport *smpt; in smp_handle_reqs() local 136 smpt = (void *)work; in smp_handle_reqs() [all …]
|
D | smp_uart.c | 108 smp_client_transport.smpt = &smp_uart_transport; in smp_uart_init()
|
D | smp_udp.c | 393 smp_udp_configs.ipv4_transport.smpt = &smp_udp_configs.ipv4.smp_transport; in smp_udp_start() 415 smp_udp_configs.ipv6_transport.smpt = &smp_udp_configs.ipv6.smp_transport; in smp_udp_start()
|
D | smp_shell.c | 245 smp_client_transport.smpt = &smp_shell_transport; in smp_shell_init()
|
D | smp_bt.c | 676 smp_client_transport.smpt = &smp_bt_transport; in smp_bt_setup()
|
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/smp_reassembly/src/ |
D | main.c | 17 static struct smp_transport smpt; variable 35 smp_reassembly_init(&smpt); in ZTEST() 43 zassert_equal(-ENOSR, smp_reassembly_collect(&smpt, buff, TRANSPORT_NETBUF_SIZE + 1), in ZTEST() 47 smp_reassembly_collect(&smpt, buff, sizeof(struct smp_hdr) - 1), in ZTEST() 52 smp_reassembly_collect(&smpt, buff, sizeof(struct smp_hdr) + 1), in ZTEST() 59 ret = smp_reassembly_collect(&smpt, buff, frag_used); in ZTEST() 64 ret = smp_reassembly_complete(&smpt, true); in ZTEST() 71 ret = smp_reassembly_collect(&smpt, buff, frag_used); in ZTEST() 92 ret = smp_reassembly_collect(&smpt, buff, frag_used); in ZTEST() 96 ret = smp_reassembly_drop(&smpt); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/ |
D | smp_reassembly.h | 24 void smp_reassembly_init(struct smp_transport *smpt); 54 int smp_reassembly_collect(struct smp_transport *smpt, const void *buf, uint16_t len); 67 int smp_reassembly_expected(const struct smp_transport *smpt); 91 int smp_reassembly_complete(struct smp_transport *smpt, bool force); 104 int smp_reassembly_drop(struct smp_transport *smpt); 117 void *smp_reassembly_get_ud(const struct smp_transport *smpt);
|
/Zephyr-Core-3.7.0/include/zephyr/mgmt/mcumgr/transport/ |
D | smp.h | 161 struct smp_transport *smpt; member 174 int smp_transport_init(struct smp_transport *smpt);
|
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/smp/src/ |
D | smp.c | 352 streamer->smpt->functions.output(rsp); in smp_on_err() 357 smp_free_buf(req, streamer->smpt); in smp_on_err() 358 smp_free_buf(rsp, streamer->smpt); in smp_on_err() 420 rsp = smp_alloc_rsp(req, streamer->smpt); in smp_process_request_packet() 437 rc = streamer->smpt->functions.output(rsp); in smp_process_request_packet() 487 smp_free_buf(req, streamer->smpt); in smp_process_request_packet() 488 smp_free_buf(rsp, streamer->smpt); in smp_process_request_packet()
|
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/smp_client/src/ |
D | client.c | 55 struct smp_transport *smpt; in smp_client_handle_reqs() local 59 smpt = smp_client->smpt; in smp_client_handle_reqs() 62 smpt->functions.output(nb); in smp_client_handle_reqs() 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()
|
/Zephyr-Core-3.7.0/include/zephyr/mgmt/mcumgr/smp/ |
D | smp_client.h | 32 struct smp_transport *smpt; member
|
D | smp.h | 84 struct smp_transport *smpt; member
|
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/smp_client/src/ |
D | smp_transport_stub.c | 48 smp_client_transport.smpt = &smpt_test; in stub_smp_client_transport_register()
|
/Zephyr-Core-3.7.0/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | smp_stub.c | 112 smp_client_transport.smpt = &smpt_test; in stub_smp_client_transport_register()
|
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt.c | 248 if (ctxt->smpt != fs_mgmt_ctxt.transport || in fs_mgmt_file_download() 298 fs_mgmt_ctxt.transport = ctxt->smpt; in fs_mgmt_file_download() 398 if (ctxt->smpt != fs_mgmt_ctxt.transport || in fs_mgmt_file_upload() 443 fs_mgmt_ctxt.transport = ctxt->smpt; in fs_mgmt_file_upload()
|