Home
last modified time | relevance | path

Searched refs:nh_op (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/mgmt/mcumgr/transport/include/mgmt/mcumgr/transport/
Dsmp_internal.h22 uint8_t nh_op:3; /* MGMT_OP_[...] */ member
28 uint8_t nh_op:3; /* MGMT_OP_[...] */
/Zephyr-latest/subsys/mgmt/mcumgr/smp/src/
Dsmp.c85 .nh_op = smp_rsp_op(req_hdr->nh_op), in smp_make_rsp_hdr()
182 switch (req_hdr->nh_op) { in smp_handle_single_payload()
216 cmd_recv.op = req_hdr->nh_op; in smp_handle_single_payload()
419 if (req_hdr.nh_op == MGMT_OP_READ || req_hdr.nh_op == MGMT_OP_WRITE) { in smp_process_request_packet()
439 } else if (IS_ENABLED(CONFIG_SMP_CLIENT) && (req_hdr.nh_op == MGMT_OP_READ_RSP || in smp_process_request_packet()
440 req_hdr.nh_op == MGMT_OP_WRITE_RSP)) { in smp_process_request_packet()
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/src/
Dclient.c72 header->nh_op = op; in smp_header_init()
196 if (smp_header.nh_op == MGMT_OP_READ) { in smp_client_response_discover()
204 } else if (res_hdr->nh_op != response) { in smp_client_response_discover()
236 res_hdr->nh_flags, res_hdr->nh_op, res_hdr->nh_group, res_hdr->nh_id, in smp_client_single_response()
313 smp_header.nh_op, sys_be16_to_cpu(smp_header.nh_group), smp_header.nh_id, in smp_client_send_cmd()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dmain.c146 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
200 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
276 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
330 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
417 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
480 zassert_equal(smp_header->nh_op, MGMT_OP_READ_RSP, in ZTEST()
584 zassert_equal(smp_header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
676 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
739 zassert_equal(smp_header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
807 zassert_equal(header->nh_op, MGMT_OP_WRITE_RSP, "SMP header operation mismatch"); in ZTEST()
[all …]
Dsmp_test_util.c19 .nh_op = (write ? MGMT_OP_WRITE : MGMT_OP_READ), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dsmp_test_util.c18 .nh_op = 0, in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/
Dsmp_test_util.c19 .nh_op = (write ? MGMT_OP_WRITE : MGMT_OP_READ), in smp_make_hdr()
Dmain.c244 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
372 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
445 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dsmp_test_util.c19 .nh_op = 0, in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/
Dsmp_test_util.c19 .nh_op = 0, in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/
Dmain.c153 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
254 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
360 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
566 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
650 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
738 zassert_equal(header->nh_op, MGMT_OP_READ_RSP, "SMP header operation mismatch"); in ZTEST()
Dsmp_test_util.c19 .nh_op = (write ? MGMT_OP_WRITE : MGMT_OP_READ), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dsmp_stub.c81 res_hdr.nh_op += 1; /* Request to response */ in smp_uart_tx_pkt()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dsmp_test_util.c23 .nh_op = (write == true ? MGMT_OP_WRITE : MGMT_OP_READ), in smp_make_hdr()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_client/src/
Dmain.c98 dst_hdr.nh_op = MGMT_OP_WRITE_RSP; in ZTEST()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/fs_mgmt_hash_supported/src/
Dmain.c81 zassert_equal(response_hdr->nh_op, MGMT_OP_READ_RSP, in ZTEST()