Searched refs:dst_hdr (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/smp_client/src/ |
D | smp_transport_stub.c | 20 void smp_transport_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_transport_read_hdr() argument 22 memcpy(dst_hdr, nb->data, sizeof(*dst_hdr)); in smp_transport_read_hdr() 23 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr() 24 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr()
|
D | main.c | 77 struct smp_hdr dst_hdr; in ZTEST() local 93 smp_transport_read_hdr(buf[0], &dst_hdr); in ZTEST() 94 smp_client_single_response(buf[1], &dst_hdr); in ZTEST() 98 dst_hdr.nh_op = MGMT_OP_WRITE_RSP; in ZTEST() 99 smp_client_single_response(buf[1], &dst_hdr); in ZTEST() 104 smp_client_single_response(buf[1], &dst_hdr); in ZTEST()
|
D | smp_transport_stub.h | 17 void smp_transport_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr);
|
/Zephyr-Core-3.5.0/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | smp_stub.c | 58 void smp_transport_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_transport_read_hdr() argument 60 memcpy(dst_hdr, nb->data, sizeof(*dst_hdr)); in smp_transport_read_hdr() 61 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_transport_read_hdr() 62 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_transport_read_hdr()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp_client/src/ |
D | client.c | 46 static void smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr); 274 static void smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_read_hdr() argument 276 memcpy(dst_hdr, nb->data, sizeof(*dst_hdr)); in smp_read_hdr() 277 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr() 278 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr()
|
/Zephyr-Core-3.5.0/subsys/mgmt/mcumgr/smp/src/ |
D | smp.c | 94 static int smp_read_hdr(const struct net_buf *nb, struct smp_hdr *dst_hdr) in smp_read_hdr() argument 96 if (nb->len < sizeof(*dst_hdr)) { in smp_read_hdr() 100 memcpy(dst_hdr, nb->data, sizeof(*dst_hdr)); in smp_read_hdr() 101 dst_hdr->nh_len = sys_be16_to_cpu(dst_hdr->nh_len); in smp_read_hdr() 102 dst_hdr->nh_group = sys_be16_to_cpu(dst_hdr->nh_group); in smp_read_hdr()
|