Home
last modified time | relevance | path

Searched defs:state (Results 1 – 25 of 26) sorted by relevance

12

/mcuboot-latest/boot/zcbor/src/
Dzcbor_decode.c40 static bool initial_checks(zcbor_state_t *state) in initial_checks()
48 static bool type_check(zcbor_state_t *state, zcbor_major_type_t exp_major_type) in type_check()
76 static void err_restore(zcbor_state_t *state, int err) in err_restore()
129 static bool value_extract(zcbor_state_t *state, in value_extract()
169 bool zcbor_int_decode(zcbor_state_t *state, void *result, size_t result_size)
207 bool zcbor_int32_decode(zcbor_state_t *state, int32_t *result)
214 bool zcbor_int64_decode(zcbor_state_t *state, int64_t *result)
221 bool zcbor_uint_decode(zcbor_state_t *state, void *result, size_t result_size)
234 bool zcbor_uint32_decode(zcbor_state_t *state, uint32_t *result)
241 bool zcbor_int32_expect_union(zcbor_state_t *state, int32_t result)
[all …]
Dzcbor_encode.c48 static bool encode_header_byte(zcbor_state_t *state, in encode_header_byte()
63 static bool value_encode_len(zcbor_state_t *state, zcbor_major_type_t major_type, in value_encode_len()
94 static bool value_encode(zcbor_state_t *state, zcbor_major_type_t major_type, in value_encode()
110 bool zcbor_int_encode(zcbor_state_t *state, const void *input_int, size_t int_size)
146 bool zcbor_uint_encode(zcbor_state_t *state, const void *input_uint, size_t uint_size)
156 bool zcbor_int32_encode(zcbor_state_t *state, const int32_t *input)
162 bool zcbor_int64_encode(zcbor_state_t *state, const int64_t *input)
168 bool zcbor_uint32_encode(zcbor_state_t *state, const uint32_t *input)
174 bool zcbor_uint64_encode(zcbor_state_t *state, const uint64_t *input)
180 bool zcbor_int32_put(zcbor_state_t *state, int32_t input)
[all …]
Dzcbor_common.c25 bool zcbor_new_backup(zcbor_state_t *state, size_t new_elem_count) in zcbor_new_backup()
53 bool zcbor_process_backup(zcbor_state_t *state, uint32_t flags, in zcbor_process_backup()
103 static void update_backups(zcbor_state_t *state, uint8_t const *new_payload_end) in update_backups()
114 bool zcbor_union_start_code(zcbor_state_t *state) in zcbor_union_start_code()
123 bool zcbor_union_elem_code(zcbor_state_t *state) in zcbor_union_elem_code()
131 bool zcbor_union_end_code(zcbor_state_t *state) in zcbor_union_end_code()
180 void zcbor_update_state(zcbor_state_t *state, in zcbor_update_state()
291 void *result, size_t *payload_len_out, zcbor_state_t *state, zcbor_decoder_t func, in zcbor_entry_function()
/mcuboot-latest/boot/zcbor/include/
Dzcbor_decode.h226 #define zcbor_search_key_bstr_lit(state, str) zcbor_search_key_bstr_ptr(state, str, sizeof(str) - 1) argument
227 #define zcbor_search_key_tstr_lit(state, str) zcbor_search_key_tstr_ptr(state, str, sizeof(str) - 1) argument
228 #define zcbor_search_key_bstr_arr(state, str) zcbor_search_key_bstr_ptr(state, str, (sizeof(str))) argument
229 #define zcbor_search_key_tstr_arr(state, str) zcbor_search_key_tstr_ptr(state, str, (sizeof(str))) argument
374 #define zcbor_bstr_expect_lit(state, str) zcbor_bstr_expect_ptr(state, str, sizeof(str) - 1) argument
375 #define zcbor_tstr_expect_lit(state, str) zcbor_tstr_expect_ptr(state, str, sizeof(str) - 1) argument
376 #define zcbor_bstr_expect_arr(state, str) zcbor_bstr_expect_ptr(state, str, sizeof(str)) argument
377 #define zcbor_tstr_expect_arr(state, str) zcbor_tstr_expect_ptr(state, str, sizeof(str)) argument
Dzcbor_encode.h216 #define zcbor_bstr_put_lit(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str) - 1) argument
217 #define zcbor_tstr_put_lit(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str) - 1) argument
218 #define zcbor_bstr_put_arr(state, str) zcbor_bstr_encode_ptr(state, str, sizeof(str)) argument
219 #define zcbor_tstr_put_arr(state, str) zcbor_tstr_encode_ptr(state, str, sizeof(str)) argument
Dzcbor_print.h28 #define zcbor_trace_raw(state) (zcbor_do_print("rem: %zu, cur: 0x%x, ec: 0x%zx, err: %d",\ argument
31 #define zcbor_trace(state, appendix) do { \ argument
35 #define zcbor_trace_file(state) do { \ argument
Dzcbor_common.h337 static inline bool zcbor_check_error(const zcbor_state_t *state) in zcbor_check_error()
345 static inline int zcbor_pop_error(zcbor_state_t *state) in zcbor_pop_error()
357 static inline int zcbor_peek_error(const zcbor_state_t *state) in zcbor_peek_error()
367 static inline void zcbor_error(zcbor_state_t *state, int err) in zcbor_error()
380 static inline bool zcbor_payload_at_end(const zcbor_state_t *state) in zcbor_payload_at_end()
/mcuboot-latest/boot/bootutil/src/
Dswap_priv.h94 #define BOOT_SCRATCH_AREA(state) ((state)->scratch.area) argument
96 static inline size_t boot_scratch_area_size(const struct boot_loader_state *state) in boot_scratch_area_size()
Dloader.c116 boot_read_image_headers(struct boot_loader_state *state, bool require_all, in boot_read_image_headers()
156 boot_add_shared_data(struct boot_loader_state *state, in boot_add_shared_data()
199 fill_rsp(struct boot_loader_state *state, struct boot_rsp *rsp) in fill_rsp()
234 close_all_flash_areas(struct boot_loader_state *state) in close_all_flash_areas()
312 boot_initialize_area(struct boot_loader_state *state, int flash_area) in boot_initialize_area()
352 boot_read_sectors_recovery(struct boot_loader_state *state) in boot_read_sectors_recovery()
389 boot_verify_slot_dependency(struct boot_loader_state *state, in boot_verify_slot_dependency()
448 boot_verify_dependencies(struct boot_loader_state *state) in boot_verify_dependencies()
500 boot_verify_dependencies(struct boot_loader_state *state) in boot_verify_dependencies()
538 boot_verify_slot_dependencies(struct boot_loader_state *state, uint32_t slot) in boot_verify_slot_dependencies()
[all …]
Dswap_move.c51 find_last_idx(struct boot_loader_state *state, uint32_t swap_size) in find_last_idx()
72 boot_read_image_header(struct boot_loader_state *state, int slot, in boot_read_image_header()
146 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes()
237 static int app_max_sectors(struct boot_loader_state *state) in app_max_sectors()
260 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible()
331 #define BOOT_LOG_SWAP_STATE(area, state) \ argument
343 swap_status_source(struct boot_loader_state *state) in swap_status_source()
387 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up()
430 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors()
480 fixup_revert(const struct boot_loader_state *state, struct boot_status *bs, in fixup_revert()
[all …]
Dswap_scratch.c58 struct boot_loader_state *state, struct boot_status *bs) in swap_read_status_bytes()
142 boot_slots_compatible(struct boot_loader_state *state) in boot_slots_compatible()
243 #define BOOT_LOG_SWAP_STATE(area, state) \ argument
342 swap_status_source(struct boot_loader_state *state) in swap_status_source()
425 boot_copy_sz(const struct boot_loader_state *state, int last_sector_idx, in boot_copy_sz()
465 find_last_sector_idx(const struct boot_loader_state *state, uint32_t copy_size) in find_last_sector_idx()
514 find_swap_count(const struct boot_loader_state *state, uint32_t copy_size) in find_swap_count()
546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors()
748 swap_run(struct boot_loader_state *state, struct boot_status *bs, in swap_run()
774 int app_max_size(struct boot_loader_state *state) in app_max_size()
[all …]
Dswap_misc.c35 swap_erase_trailer_sectors(const struct boot_loader_state *state, in swap_erase_trailer_sectors()
83 swap_status_init(const struct boot_loader_state *state, in swap_status_init()
131 swap_read_status(struct boot_loader_state *state, struct boot_status *bs) in swap_read_status()
209 struct boot_swap_state state; in swap_set_image_ok() local
Dbootutil_priv.h88 uint8_t state; /* Which part of the swapping process are we at */ member
364 #define BOOT_CURR_IMG(state) ((state)->curr_img_idx) argument
366 #define BOOT_CURR_IMG(state) 0 argument
369 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)]) argument
371 #define BOOT_CURR_ENC(state) NULL argument
373 #define BOOT_IMG(state, slot) ((state)->imgs[BOOT_CURR_IMG(state)][(slot)]) argument
374 #define BOOT_IMG_AREA(state, slot) (BOOT_IMG(state, slot).area) argument
375 #define BOOT_WRITE_SZ(state) ((state)->write_sz) argument
376 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)]) argument
385 boot_img_hdr(struct boot_loader_state *state, size_t slot) in boot_img_hdr()
[all …]
Dbootutil_public.c221 struct boot_swap_state *state) in boot_read_swap_state()
264 boot_read_swap_state_by_id(int flash_area_id, struct boot_swap_state *state) in boot_read_swap_state_by_id()
/mcuboot-latest/boot/zephyr/
Dflash_check.c19 bool swap_write_block_size_check(struct boot_loader_state *state) in swap_write_block_size_check()
Dsingle_loader.c66 static struct boot_swap_state state; in boot_image_validate_once() local
Dfirmware_loader.c70 static struct boot_swap_state state; in boot_image_validate_once() local
Dhooks_sample.c65 struct boot_swap_state *state) in boot_read_swap_state_primary_slot_hook()
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c30 struct boot_loader_state *state = &boot_data; in boot_image_validate_encrypted() local
116 decrypt_region_inplace(struct boot_loader_state *state, in decrypt_region_inplace()
214 struct boot_loader_state *state = &boot_data; in decrypt_image_inplace() local
/mcuboot-latest/boot/mynewt/src/
Dsingle_loader.c66 static struct boot_swap_state state; in boot_image_validate_once() local
/mcuboot-latest/ext/tinycrypt/lib/source/
Daes_decrypt.c131 uint8_t state[Nk*Nb]; in tc_aes_decrypt() local
Daes_encrypt.c160 uint8_t state[Nk*Nb]; in tc_aes_encrypt() local
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_cmac_mode.c260 struct tc_cmac_struct state; in main() local
/mcuboot-latest/ptest/src/
Dmain.rs64 let state = State::new(matrix.envs.len()); in main() localVariable
73 let state = state.clone(); in main() localVariable
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c251 struct boot_loader_state *state; in invoke_boot_go() local

12