Home
last modified time | relevance | path

Searched defs:state (Results 1 – 25 of 32) 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/
Dloader.c114 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
117 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
127 boot_read_image_headers(struct boot_loader_state *state, bool require_all, in boot_read_image_headers()
167 boot_add_shared_data(struct boot_loader_state *state, in boot_add_shared_data()
210 fill_rsp(struct boot_loader_state *state, struct boot_rsp *rsp) in fill_rsp()
245 close_all_flash_areas(struct boot_loader_state *state) in close_all_flash_areas()
323 boot_initialize_area(struct boot_loader_state *state, int flash_area) in boot_initialize_area()
363 boot_read_sectors_recovery(struct boot_loader_state *state) in boot_read_sectors_recovery()
400 boot_verify_slot_dependency(struct boot_loader_state *state, in boot_verify_slot_dependency()
459 boot_verify_dependencies(struct boot_loader_state *state) in boot_verify_dependencies()
[all …]
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()
Dram_load.c61 boot_verify_ram_load_address(struct boot_loader_state *state) in boot_verify_ram_load_address()
117 boot_decrypt_and_copy_image_to_sram(struct boot_loader_state *state, in boot_decrypt_and_copy_image_to_sram()
209 boot_copy_image_to_sram(struct boot_loader_state *state, int slot, in boot_copy_image_to_sram()
274 boot_check_ram_load_overlapping(struct boot_loader_state *state) in boot_check_ram_load_overlapping()
318 boot_load_image_to_sram(struct boot_loader_state *state) in boot_load_image_to_sram()
396 boot_remove_image_from_sram(struct boot_loader_state *state) in boot_remove_image_from_sram()
422 boot_remove_image_from_flash(struct boot_loader_state *state, uint32_t slot) in boot_remove_image_from_flash()
442 int boot_load_image_from_flash_to_sram(struct boot_loader_state *state, in boot_load_image_from_flash_to_sram()
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_offset.c52 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
55 #define BOOT_COPY_REGION(state, fap_pri, fap_sec, pri_off, sec_off, sz, sector_off) \ argument
59 uint32_t find_last_idx(struct boot_loader_state *state, uint32_t swap_size) in find_last_idx()
80 int boot_read_image_header(struct boot_loader_state *state, int slot,
231 int swap_read_status_bytes(const struct flash_area *fap, struct boot_loader_state *state,
313 static int app_max_sectors(struct boot_loader_state *state)
337 int boot_slots_compatible(struct boot_loader_state *state)
408 #define BOOT_LOG_SWAP_STATE(area, state) \ argument
419 int swap_status_source(struct boot_loader_state *state)
455 static void boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state,
[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.h96 uint8_t state; /* Which part of the swapping process are we at */ member
398 #define BOOT_CURR_IMG(state) ((state)->curr_img_idx) argument
400 #define BOOT_CURR_IMG(state) 0 argument
403 #define BOOT_CURR_ENC(state) ((state)->enc[BOOT_CURR_IMG(state)]) argument
405 #define BOOT_CURR_ENC(state) NULL argument
407 #define BOOT_IMG(state, slot) ((state)->imgs[BOOT_CURR_IMG(state)][(slot)]) argument
408 #define BOOT_IMG_AREA(state, slot) (BOOT_IMG(state, slot).area) argument
409 #define BOOT_WRITE_SZ(state) ((state)->write_sz) argument
410 #define BOOT_SWAP_TYPE(state) ((state)->swap_type[BOOT_CURR_IMG(state)]) argument
419 boot_img_hdr(struct boot_loader_state *state, size_t slot) in boot_img_hdr()
[all …]
Dimage_validate.c68 bootutil_img_hash(struct boot_loader_state *state, in bootutil_img_hash()
353 bootutil_get_img_security_cnt(struct boot_loader_state *state, int slot, in bootutil_get_img_security_cnt()
478 bootutil_img_validate(struct boot_loader_state *state, in bootutil_img_validate()
/mcuboot-latest/boot/zephyr/
Dsingle_loader.c74 static struct boot_swap_state state; in boot_image_validate_once() local
123 static struct boot_loader_state state; in boot_go() local
Dflash_check.c19 bool swap_write_block_size_check(struct boot_loader_state *state) in swap_write_block_size_check()
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.c34 struct boot_loader_state *state = &boot_data; in boot_image_validate_encrypted() local
128 decrypt_region_inplace(struct boot_loader_state *state, in decrypt_region_inplace()
226 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/samples/runtime-source/zephyr/hooks/
Dhooks.c35 struct boot_loader_state *state; in boot_go_hook() 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

12