Searched refs:smp_hdr (Results 1 – 7 of 7) sorted by relevance
/subsys/mgmt/mcumgr/smp/src/ |
A D | smp.c | 63 cnw->nb->len = sizeof(struct smp_hdr); in cbor_nb_writer_init() 64 zcbor_new_encode_state(cnw->zs, ARRAY_SIZE(cnw->zs), nb->data + sizeof(struct smp_hdr), in cbor_nb_writer_init() 80 static void smp_make_rsp_hdr(const struct smp_hdr *req_hdr, struct smp_hdr *rsp_hdr, size_t len) in smp_make_rsp_hdr() 82 *rsp_hdr = (struct smp_hdr) { in smp_make_rsp_hdr() 94 static int smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_read_hdr() 113 static int smp_build_err_rsp(struct smp_streamer *streamer, const struct smp_hdr *req_hdr, in smp_build_err_rsp() 116 struct smp_hdr rsp_hdr; in smp_build_err_rsp() 277 struct smp_hdr rsp_hdr; in smp_handle_single_req() 339 static void smp_on_err(struct smp_streamer *streamer, const struct smp_hdr *req_hdr, in smp_on_err() 389 struct smp_hdr req_hdr = { 0 }; in smp_process_request_packet() [all …]
|
/subsys/mgmt/mcumgr/smp_client/src/ |
A D | client.c | 46 static void smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr); 66 static void smp_header_init(struct smp_hdr *header, uint16_t group, uint8_t id, uint8_t op, in smp_header_init() 70 memset(header, 0, sizeof(struct smp_hdr)); in smp_header_init() 184 static struct smp_client_cmd_req *smp_client_response_discover(const struct smp_hdr *res_hdr) in smp_client_response_discover() 186 struct smp_hdr smp_header; in smp_client_response_discover() 227 int smp_client_single_response(struct net_buf *nb, const struct smp_hdr *res_hdr) in smp_client_single_response() 257 struct smp_hdr smp_header; in smp_client_buf_allocation() 276 static void smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_read_hdr() 286 struct smp_hdr smp_header; in smp_client_send_cmd()
|
/subsys/mgmt/mcumgr/transport/src/ |
A D | smp_reassembly.c | 40 if (len >= sizeof(struct smp_hdr)) { in smp_reassembly_collect() 41 uint16_t expected = sys_be16_to_cpu(((struct smp_hdr *)buf)->nh_len); in smp_reassembly_collect() 48 expected += sizeof(struct smp_hdr); in smp_reassembly_collect()
|
A D | smp_lorawan.c | 160 if (len > sizeof(struct smp_hdr)) { in smp_lorawan_downlink()
|
/subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/ |
A D | smp_internal.h | 20 struct smp_hdr { struct
|
/subsys/mgmt/mcumgr/grp/enum_mgmt/src/ |
A D | enum_mgmt.c | 425 ctxt->writer->nb->len = sizeof(struct smp_hdr); in enum_mgmt_details() 427 ctxt->writer->nb->data + sizeof(struct smp_hdr), in enum_mgmt_details()
|
/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
A D | img_mgmt.c | 139 ctxt->writer->nb->len = sizeof(struct smp_hdr); in img_mgmt_reset_zse() 141 ctxt->writer->nb->data + sizeof(struct smp_hdr), in img_mgmt_reset_zse()
|
Completed in 47 milliseconds