Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 17 of 17) sorted by relevance

/mcuboot-latest/boot/bootutil/src/
Dswap_move.c103 if (bs->op == BOOT_STATUS_OP_MOVE && slot == 0 && bs->idx > last_idx) { in boot_read_image_header()
106 if (bs->idx > 1 && bs->idx <= last_idx) { in boot_read_image_header()
108 } else if (bs->idx == 1) { in boot_read_image_header()
209 bs->idx = (found_idx / BOOT_STATUS_MOVE_STATE_COUNT) + BOOT_STATUS_IDX_0; in swap_read_status_bytes()
213 bs->idx = ((found_idx - move_entries) / BOOT_STATUS_SWAP_STATE_COUNT) + BOOT_STATUS_IDX_0; in swap_read_status_bytes()
231 (bs->idx - BOOT_STATUS_IDX_0) * idx_sz + in boot_status_internal_off()
387 boot_move_sector_up(int idx, uint32_t sz, struct boot_loader_state *state, in boot_move_sector_up() argument
401 new_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx); in boot_move_sector_up()
402 old_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx - 1); in boot_move_sector_up()
404 if (bs->idx == BOOT_STATUS_IDX_0) { in boot_move_sector_up()
[all …]
Dswap_offset.c124 if (((bs->idx - BOOT_STATUS_IDX_0) > last_idx ||
125 ((bs->idx - BOOT_STATUS_IDX_0) == last_idx &&
134 if ((bs->idx - BOOT_STATUS_IDX_0) > last_idx ||
135 ((bs->idx - BOOT_STATUS_IDX_0) == last_idx &&
146 if ((bs->idx > BOOT_STATUS_IDX_0 ||
147 (bs->idx == BOOT_STATUS_IDX_0 && bs->state == BOOT_STATUS_STATE_1)) &&
148 bs->idx <= last_idx) {
156 if (bs->idx > BOOT_STATUS_IDX_0) {
294 bs->idx = (found_idx / BOOT_STATUS_SWAP_STATE_COUNT) + BOOT_STATUS_IDX_0;
307 off = (bs->idx - BOOT_STATUS_IDX_0) * idx_sz +
[all …]
Dswap_scratch.c117 bs->idx = (found_idx / BOOT_STATUS_STATE_COUNT) + 1; in swap_read_status_bytes()
131 return (bs->idx - BOOT_STATUS_IDX_0) * idx_sz + in boot_status_internal_off()
546 boot_swap_sectors(int idx, uint32_t sz, struct boot_loader_state *state, in boot_swap_sectors() argument
564 img_off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, idx); in boot_swap_sectors()
599 bs->use_scratch = (bs->idx == BOOT_STATUS_IDX_0 && copy_sz != sz); in boot_swap_sectors()
619 if (bs->idx == BOOT_STATUS_IDX_0) { in boot_swap_sectors()
662 if (bs->idx == BOOT_STATUS_IDX_0 && !bs->use_scratch) { in boot_swap_sectors()
732 bs->idx++; in boot_swap_sectors()
763 if (swap_idx >= (bs->idx - BOOT_STATUS_IDX_0)) { in swap_run()
933 if (bs->idx - BOOT_STATUS_IDX_0 >= swap_count) { in boot_read_image_header()
[all …]
Dram_load.c136 uint16_t idx; in boot_decrypt_and_copy_image_to_sram() local
176 idx = 0; in boot_decrypt_and_copy_image_to_sram()
184 (bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in boot_decrypt_and_copy_image_to_sram()
Dloader.c485 for (int idx = 0; idx < BOOT_IMAGE_NUMBER; idx++) { in boot_verify_dependencies() local
486 BOOT_CURR_IMG(state) = idx; in boot_verify_dependencies()
694 bs->idx = BOOT_STATUS_IDX_0; in boot_status_reset()
708 bs->idx == BOOT_STATUS_IDX_0 && in boot_status_is_reset()
1338 uint16_t idx; local
1408 idx = hdr->ih_hdr_size - abs_off;
1414 idx = 0;
1432 (abs_off + idx) - hdr->ih_hdr_size, blk_sz,
1433 blk_off, &buf[idx]);
1436 (abs_off + idx) - hdr->ih_hdr_size, blk_sz,
[all …]
Dbootutil_priv.h95 uint32_t idx; /* Which area we're operating on */ member
/mcuboot-latest/boot/zephyr/
Dflash_map_legacy.c60 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument
67 if (flash_area_open(idx, &fa)) { in flash_area_get_sectors()
71 BOOT_LOG_DBG("area %d: offset=0x%x, length=0x%x", idx, fa->fa_off, in flash_area_get_sectors()
83 idx, fa->fa_size, FLASH_AREA_IMAGE_SECTOR_SIZE); in flash_area_get_sectors()
94 BOOT_LOG_ERR("flash area %d sector count overflow", idx); in flash_area_get_sectors()
/mcuboot-latest/boot/bootutil/include/bootutil/
Dimage.h186 #define MUST_DECRYPT(fap, idx, hdr) \ argument
187 (flash_area_get_id(fap) == FLASH_AREA_IMAGE_SECONDARY(idx) && IS_ENCRYPTED(hdr))
192 #define MUST_DECOMPRESS(fap, idx, hdr) \ argument
193 (flash_area_get_id(fap) == FLASH_AREA_IMAGE_SECONDARY(idx) && IS_COMPRESSED(hdr))
/mcuboot-latest/boot/boot_serial/src/
Dboot_serial_encryption.c138 uint16_t idx; in decrypt_region_inplace() local
161 idx = 0; in decrypt_region_inplace()
173 idx = hdr->ih_hdr_size; in decrypt_region_inplace()
187 (off + bytes_copied + idx) - hdr->ih_hdr_size, blk_sz, in decrypt_region_inplace()
188 blk_off, &buf[idx]); in decrypt_region_inplace()
/mcuboot-latest/boot/cypress/cy_flash_pal/include/flash_map_backend/
Dflash_map_backend.h172 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
179 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret);
/mcuboot-latest/boot/cypress/cy_flash_pal/
Dcy_flash_map.c381 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa) in flash_area_to_sectors() argument
387 (void)idx; in flash_area_to_sectors()
394 (void)idx; in flash_area_to_sectors()
484 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument
492 if(idx == boot_area_descs[i]->fa_id) in flash_area_get_sectors()
/mcuboot-latest/sim/mcuboot-sys/csupport/storage/
Dflash_map.h161 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret);
/mcuboot-latest/boot/espressif/include/flash_map_backend/
Dflash_map_backend.h93 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa);
/mcuboot-latest/ext/tinycrypt/tests/
Dtest_ctr_prng.c252 static unsigned int executePRNG_TestVector(PRNG_Vector vector, unsigned int idx) in executePRNG_TestVector() argument
297 TC_ERROR("CTR PRNG test #%d failed\n", idx); in executePRNG_TestVector()
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c371 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *ret) in flash_area_to_sectors() argument
380 if (flash_areas->slots[i].id == idx) in flash_area_to_sectors()
/mcuboot-latest/boot/espressif/port/
Desp_mcuboot.c419 int flash_area_to_sectors(int idx, int *cnt, struct flash_area *fa) in flash_area_to_sectors() argument
/mcuboot-latest/sim/src/
Dimage.rs1310 for (idx, _image) in (&self.images).iter().enumerate() { in run_split_ram_load()
1313 None, Some(idx as i32), true)); in run_split_ram_load()