Searched refs:smp_header (Results  1 – 3 of 3) sorted by relevance
| /Zephyr-latest/subsys/mgmt/mcumgr/smp_client/src/ | 
| D | client.c | 186 	struct smp_hdr smp_header;  in smp_client_response_discover()  local 195 		smp_read_hdr(cmd_req->nb, &smp_header);  in smp_client_response_discover() 196 		if (smp_header.nh_op == MGMT_OP_READ) {  in smp_client_response_discover() 202 		if (smp_header.nh_seq != res_hdr->nh_seq) {  in smp_client_response_discover() 257 	struct smp_hdr smp_header;  in smp_client_buf_allocation()  local 263 		smp_header_init(&smp_header, group, command_id, op, 0, smp_client->smp_seq++,  in smp_client_buf_allocation() 265 		memcpy(nb->data, &smp_header, sizeof(smp_header));  in smp_client_buf_allocation() 266 		nb->len = sizeof(smp_header);  in smp_client_buf_allocation() 286 	struct smp_hdr smp_header;  in smp_client_send_cmd()  local 298 	smp_read_hdr(nb, &smp_header);  in smp_client_send_cmd() [all …] 
 | 
| /Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ | 
| D | main.c | 373 	struct smp_hdr *smp_header;  in ZTEST()  local 475 		smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr));  in ZTEST() 477 		zassert_true(smp_header->nh_len > sys_cpu_to_be16(TEST_RESPONSE_READ_DATA_LENGTH),  in ZTEST() 479 		zassert_equal(smp_header->nh_flags, 0, "SMP header flags mismatch");  in ZTEST() 480 		zassert_equal(smp_header->nh_op, MGMT_OP_READ_RSP,  in ZTEST() 482 		zassert_equal(smp_header->nh_group, sys_cpu_to_be16(MGMT_GROUP_ID_SETTINGS),  in ZTEST() 484 		zassert_equal(smp_header->nh_seq, 1, "SMP header sequence number mismatch");  in ZTEST() 485 		zassert_equal(smp_header->nh_id, SETTINGS_MGMT_ID_READ_WRITE,  in ZTEST() 487 		zassert_equal(smp_header->nh_version, 1, "SMP header version mismatch");  in ZTEST() 538 	struct smp_hdr *smp_header;  in ZTEST()  local [all …] 
 | 
| /Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/ | 
| D | main.c | 111 	struct smp_hdr *smp_header;  in ZTEST()  local 154 	smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr));  in ZTEST() 155 	zassert_equal(smp_header->nh_version, LEGACY_VERSION,  in ZTEST() 198 	struct smp_hdr *smp_header;  in ZTEST()  local 241 	smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr));  in ZTEST() 242 	zassert_equal(smp_header->nh_version, CURRENT_VERSION,  in ZTEST() 284 	struct smp_hdr *smp_header;  in ZTEST()  local 327 	smp_header = net_buf_pull_mem(nb, sizeof(struct smp_hdr));  in ZTEST() 328 	zassert_equal(smp_header->nh_version, CURRENT_VERSION,  in ZTEST()
  |