/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/ |
D | main.c | 43 zcbor_state_t zsd[4] = { 0 }; in ZTEST() local 52 zcbor_new_encode_state(zsd, 2, buffer, ARRAY_SIZE(buffer), 0); in ZTEST() 55 ok = zcbor_map_start_encode(zsd, 10) && in ZTEST() 56 zcbor_tstr_put_lit(zsd, "hello") && zcbor_tstr_put_lit(zsd, "world") && in ZTEST() 57 zcbor_tstr_put_lit(zsd, "one") && zcbor_uint32_put(zsd, 1) && in ZTEST() 58 zcbor_tstr_put_lit(zsd, "bool val") && zcbor_true_put(zsd) && in ZTEST() 59 zcbor_map_end_encode(zsd, 10); in ZTEST() 63 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 65 int rc = zcbor_map_decode_bulk(zsd, dm, ARRAY_SIZE(dm), &decoded); in ZTEST() 84 zcbor_state_t zsd[4] = { 0 }; in ZTEST() local [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/ |
D | main.c | 302 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 315 memset(zsd, 0, sizeof(zsd)); in ZTEST() 341 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 343 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 363 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 376 memset(zsd, 0, sizeof(zsd)); in ZTEST() 402 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 404 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 424 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 437 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
D | limited.c | 45 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 58 memset(zsd, 0, sizeof(zsd)); in ZTEST() 84 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 86 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 106 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 124 memset(zsd, 0, sizeof(zsd)); in ZTEST() 150 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 153 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 158 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 159 ok = zcbor_map_decode_bulk(zsd, error_decode, ARRAY_SIZE(error_decode), &decoded) == 0; in ZTEST()
|
D | build_date.c | 83 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 98 memset(zsd, 0, sizeof(zsd)); in ZTEST() 124 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 126 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 159 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 174 memset(zsd, 0, sizeof(zsd)); in ZTEST() 200 zcbor_new_decode_state(zsd, 3, nb->data, nb->len, 1, NULL, 0); in ZTEST() 202 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/ |
D | main.c | 153 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 170 memset(zsd, 0, sizeof(zsd)); in ZTEST() 194 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 196 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 215 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 232 memset(zsd, 0, sizeof(zsd)); in ZTEST() 256 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 258 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 279 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 296 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/shell_mgmt/src/ |
D | shell_mgmt.c | 52 zcbor_state_t *zsd = ctxt->reader->zs; in shell_mgmt_exec() local 55 if (!zcbor_map_start_decode(zsd)) { in shell_mgmt_exec() 64 ok = zcbor_tstr_decode(zsd, &key); in shell_mgmt_exec() 72 ok = zcbor_any_skip(zsd, NULL); in shell_mgmt_exec() 76 if (!ok || !zcbor_list_start_decode(zsd)) { in shell_mgmt_exec() 84 ok = zcbor_tstr_decode(zsd, &value); in shell_mgmt_exec() 101 zcbor_list_end_decode(zsd); in shell_mgmt_exec() 125 zcbor_map_end_decode(zsd); in shell_mgmt_exec()
|
/Zephyr-latest/subsys/mgmt/mcumgr/util/src/ |
D | zcbor_bulk.c | 15 int zcbor_map_decode_bulk(zcbor_state_t *zsd, struct zcbor_map_decode_key_val *map, in zcbor_map_decode_bulk() argument 21 if (!zcbor_map_start_decode(zsd)) { in zcbor_map_decode_bulk() 33 ok = zcbor_tstr_decode(zsd, &key); in zcbor_map_decode_bulk() 46 if (!dptr->decoder(zsd, dptr->value_ptr)) { in zcbor_map_decode_bulk() 67 ok = zcbor_any_skip(zsd, NULL); in zcbor_map_decode_bulk() 71 return zcbor_map_end_decode(zsd) ? 0 : -EBADMSG; in zcbor_map_decode_bulk()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/ |
D | main.c | 107 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 125 memset(zsd, 0, sizeof(zsd)); in ZTEST() 158 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 159 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 194 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 212 memset(zsd, 0, sizeof(zsd)); in ZTEST() 245 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 246 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 280 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 298 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/ |
D | main.c | 112 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 126 memset(zsd, 0, sizeof(zsd)); in ZTEST() 161 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 162 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 211 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 227 memset(zsd, 0, sizeof(zsd)); in ZTEST() 262 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 263 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 314 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 334 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/ |
D | main.c | 104 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 111 memset(zsd, 0, sizeof(zsd)); in ZTEST() 150 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 157 memset(zsd, 0, sizeof(zsd)); in ZTEST() 196 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 203 memset(zsd, 0, sizeof(zsd)); in ZTEST()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/ |
D | os_gr_stub.c | 75 zcbor_state_t zsd[3 + 2]; in os_echo_verify() local 84 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data + sizeof(struct smp_hdr), nb->len, 1, in os_echo_verify() 88 rc = zcbor_map_decode_bulk(zsd, list_res_decode, ARRAY_SIZE(list_res_decode), &decoded); in os_echo_verify()
|
D | img_gr_stub.c | 174 zcbor_state_t zsd[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in img_state_write_verify() local 184 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data + sizeof(struct smp_hdr), nb->len, 1, in img_state_write_verify() 192 rc = zcbor_map_decode_bulk(zsd, list_res_decode, ARRAY_SIZE(list_res_decode), &decoded); in img_state_write_verify() 223 zcbor_state_t zsd[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in img_upload_init_verify() local 236 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data + sizeof(struct smp_hdr), nb->len, 1, in img_upload_init_verify() 247 rc = zcbor_map_decode_bulk(zsd, list_res_decode, ARRAY_SIZE(list_res_decode), &decoded); in img_upload_init_verify()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/ |
D | main.c | 202 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 217 memset(zsd, 0, sizeof(zsd)); in ZTEST() 252 zcbor_new_decode_state(zsd, 8, nb->data, nb->len, 1, NULL, 0); in ZTEST() 253 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 329 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 343 memset(zsd, 0, sizeof(zsd)); in ZTEST() 380 zcbor_new_decode_state(zsd, 8, nb->data, nb->len, 1, NULL, 0); in ZTEST() 381 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), &decoded) == 0; in ZTEST() 401 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 416 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/handler_demo/example_as_module/src/ |
D | example_mgmt.c | 36 zcbor_state_t *zsd = ctxt->reader->zs; in example_mgmt_test() local 47 ok = zcbor_map_decode_bulk(zsd, example_test_decode, ARRAY_SIZE(example_test_decode), in example_mgmt_test() 79 zcbor_state_t *zsd = ctxt->reader->zs; in example_mgmt_other() local 95 ok = zcbor_map_decode_bulk(zsd, example_other_decode, ARRAY_SIZE(example_other_decode), in example_mgmt_other()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/ |
D | img_mgmt_client.c | 49 zcbor_state_t zsd[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in image_state_res_fn() local 77 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data, nb->len, 1, NULL, 0); in image_state_res_fn() 79 ok = zcbor_map_start_decode(zsd); in image_state_res_fn() 85 ok = zcbor_tstr_decode(zsd, &value); in image_state_res_fn() 95 ok = zcbor_list_start_decode(zsd); in image_state_res_fn() 117 rc = zcbor_map_decode_bulk(zsd, list_res_decode, ARRAY_SIZE(list_res_decode), in image_state_res_fn() 170 ok = zcbor_list_end_decode(zsd); in image_state_res_fn() 189 zcbor_state_t zsd[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in image_upload_res_fn() local 204 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data, nb->len, 1, NULL, 0); in image_upload_res_fn() 206 rc = zcbor_map_decode_bulk(zsd, upload_res_decode, ARRAY_SIZE(upload_res_decode), &decoded); in image_upload_res_fn() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt_client/src/ |
D | os_mgmt_client.c | 92 zcbor_state_t zsd[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2]; in echo_res_fn() local 107 zcbor_new_decode_state(zsd, ARRAY_SIZE(zsd), nb->data, nb->len, 1, NULL, 0); in echo_res_fn() 109 ok = zcbor_map_decode_bulk(zsd, echo_response, ARRAY_SIZE(echo_response), &decoded) == 0; in echo_res_fn()
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/ |
D | main.c | 105 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 117 memset(zsd, 0, sizeof(zsd)); in ZTEST() 235 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 247 memset(zsd, 0, sizeof(zsd)); in ZTEST() 365 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 385 memset(zsd, 0, sizeof(zsd)); in ZTEST() 490 zcbor_new_decode_state(zsd, 4, nb->data, nb->len, 1, NULL, 0); in ZTEST() 491 ok = zcbor_map_decode_bulk(zsd, output_decode, ARRAY_SIZE(output_decode), in ZTEST() 531 zcbor_state_t zsd[ZCBOR_HISTORY_ARRAY_SIZE] = { 0 }; in ZTEST() local 551 memset(zsd, 0, sizeof(zsd)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/enum_mgmt/src/ |
D | enum_mgmt.c | 219 zcbor_state_t *zsd = ctxt->reader->zs; in enum_mgmt_single() local 234 ok = zcbor_map_decode_bulk(zsd, enum_single_decode, ARRAY_SIZE(enum_single_decode), in enum_mgmt_single() 305 zcbor_state_t *zsd = ctxt->reader->zs; in enum_mgmt_details() local 308 size_t backup_element_count_reader = zsd->elem_count; in enum_mgmt_details() 321 if (!zcbor_new_backup(zsd, backup_element_count_reader)) { in enum_mgmt_details() 330 ok = zcbor_map_decode_bulk(zsd, enum_group_decode, ARRAY_SIZE(enum_group_decode), in enum_mgmt_details() 337 if (!zcbor_process_backup(zsd, (ZCBOR_FLAG_RESTORE | ZCBOR_FLAG_CONSUME), in enum_mgmt_details() 373 ok = zcbor_map_decode_bulk(zsd, enum_group_decode, ARRAY_SIZE(enum_group_decode), in enum_mgmt_details()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/settings_mgmt/src/ |
D | settings_mgmt.c | 36 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_read() local 56 ok = zcbor_map_decode_bulk(zsd, settings_read_decode, ARRAY_SIZE(settings_read_decode), in settings_mgmt_read() 160 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_write() local 177 ok = zcbor_map_decode_bulk(zsd, settings_write_decode, ARRAY_SIZE(settings_write_decode), in settings_mgmt_write() 262 zcbor_state_t *zsd = ctxt->reader->zs; in settings_mgmt_delete() local 278 ok = zcbor_map_decode_bulk(zsd, settings_delete_decode, ARRAY_SIZE(settings_delete_decode), in settings_mgmt_delete()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/src/ |
D | os_mgmt.c | 150 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_echo() local 159 ok = zcbor_map_decode_bulk(zsd, echo_decode, ARRAY_SIZE(echo_decode), &decoded) == 0; in os_mgmt_echo() 367 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_reset() local 385 (void)zcbor_map_decode_bulk(zsd, reset_decode, ARRAY_SIZE(reset_decode), &decoded); in os_mgmt_reset() 450 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_bootloader_info() local 472 if (zcbor_map_decode_bulk(zsd, bootloader_info, ARRAY_SIZE(bootloader_info), &decoded)) { in os_mgmt_bootloader_info() 531 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_info() local 569 if (zcbor_map_decode_bulk(zsd, fs_info_decode, ARRAY_SIZE(fs_info_decode), &decoded)) { in os_mgmt_info() 900 zcbor_state_t *zsd = ctxt->reader->zs; in os_mgmt_datetime_write() local 961 if (zcbor_map_decode_bulk(zsd, datetime_decode, ARRAY_SIZE(datetime_decode), &decoded)) { in os_mgmt_datetime_write()
|
/Zephyr-latest/subsys/mgmt/mcumgr/util/include/mgmt/mcumgr/util/ |
D | zcbor_bulk.h | 102 int zcbor_map_decode_bulk(zcbor_state_t *zsd, struct zcbor_map_decode_key_val *map,
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/fs_mgmt/src/ |
D | fs_mgmt.c | 212 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_download() local 233 ok = zcbor_map_decode_bulk(zsd, fs_download_decode, ARRAY_SIZE(fs_download_decode), in fs_mgmt_file_download() 358 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_upload() local 382 ok = zcbor_map_decode_bulk(zsd, fs_upload_decode, ARRAY_SIZE(fs_upload_decode), in fs_mgmt_file_upload() 575 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_status() local 595 ok = zcbor_map_decode_bulk(zsd, fs_status_decode, in fs_mgmt_file_status() 661 zcbor_state_t *zsd = ctxt->reader->zs; in fs_mgmt_file_hash_checksum() local 687 ok = zcbor_map_decode_bulk(zsd, fs_hash_checksum_decode, in fs_mgmt_file_hash_checksum()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/stat_mgmt/src/ |
D | stat_mgmt.c | 126 zcbor_state_t *zsd = ctxt->reader->zs; in stat_mgmt_show() local 137 ok = zcbor_map_decode_bulk(zsd, stat_decode, ARRAY_SIZE(stat_decode), &decoded) == 0; in stat_mgmt_show()
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/ |
D | img_mgmt.c | 414 zcbor_state_t *zsd = ctxt->reader->zs; in img_mgmt_erase() local 423 ok = zcbor_map_decode_bulk(zsd, image_erase_decode, in img_mgmt_erase() 717 zcbor_state_t *zsd = ctxt->reader->zs; in img_mgmt_upload() local 771 ok = zcbor_map_decode_bulk(zsd, image_upload_decode, in img_mgmt_upload()
|
D | img_mgmt_state.c | 701 zcbor_state_t *zsd = ctxt->reader->zs; in img_mgmt_state_write() local 703 ok = zcbor_map_decode_bulk(zsd, image_list_decode, in img_mgmt_state_write()
|