Home
last modified time | relevance | path

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

/mcuboot-latest/boot/zephyr/
Dmain.c148 static void do_boot(struct boot_rsp *rsp) in do_boot() argument
159 vt = (struct arm_vector_table *)(rsp->br_hdr->ih_load_addr + rsp->br_hdr->ih_hdr_size); in do_boot()
166 rc = flash_area_open(rsp->br_flash_dev_id, &fap); in do_boot()
169 rc = flash_area_read(fap, rsp->br_hdr->ih_hdr_size, dst, sizeof(dst)); in do_boot()
306 static void do_boot(struct boot_rsp *rsp) in do_boot() argument
312 BOOT_LOG_INF("br_image_off = 0x%x\n", rsp->br_image_off); in do_boot()
313 BOOT_LOG_INF("ih_hdr_size = 0x%x\n", rsp->br_hdr->ih_hdr_size); in do_boot()
316 int slot = (rsp->br_image_off == IMAGE0_PRIMARY_START_ADDRESS) ? in do_boot()
319 start_cpu0_image(IMAGE_INDEX_0, slot, rsp->br_hdr->ih_hdr_size); in do_boot()
322 copy_img_to_SRAM(0, rsp->br_hdr->ih_hdr_size); in do_boot()
[all …]
Dfirmware_loader.c106 static fih_ret validate_image_slot(int slot, struct boot_rsp *rsp) in validate_image_slot() argument
133 rsp->br_flash_dev_id = flash_area_get_device_id(_fa_p); in validate_image_slot()
134 rsp->br_image_off = flash_area_get_off(_fa_p); in validate_image_slot()
135 rsp->br_hdr = &_hdr; in validate_image_slot()
154 boot_go(struct boot_rsp *rsp) in boot_go() argument
180 FIH_CALL(validate_image_slot, fih_rc, FLASH_AREA_IMAGE_SECONDARY(0), rsp); in boot_go()
187 FIH_CALL(validate_image_slot, fih_rc, FLASH_AREA_IMAGE_PRIMARY(0), rsp); in boot_go()
191 FIH_CALL(validate_image_slot, fih_rc, FLASH_AREA_IMAGE_SECONDARY(0), rsp); in boot_go()
Dsingle_loader.c110 boot_go(struct boot_rsp *rsp) in boot_go() argument
167 rsp->br_flash_dev_id = flash_area_get_device_id(_fa_p); in boot_go()
168 rsp->br_image_off = flash_area_get_off(_fa_p); in boot_go()
169 rsp->br_hdr = &_hdr; in boot_go()
/mcuboot-latest/boot/nuttx/
Dmain.c64 static void do_boot(struct boot_rsp *rsp) in do_boot() argument
71 area_id = flash_area_id_from_image_offset(rsp->br_image_off); in do_boot()
79 info.header_size = rsp->br_hdr->ih_hdr_size; in do_boot()
100 struct boot_rsp rsp; in main() local
126 FIH_CALL(boot_go, fih_rc, &rsp); in main()
134 do_boot(&rsp); in main()
/mcuboot-latest/boot/cypress/MCUBootApp/
Dmain.c63 static void do_boot(struct boot_rsp *rsp) in do_boot() argument
67 app_addr = (rsp->br_image_off + rsp->br_hdr->ih_hdr_size); in do_boot()
82 struct boot_rsp rsp; in main() local
140 FIH_CALL(boot_go, fih_rc, &rsp); in main()
150 do_boot(&rsp); in main()
/mcuboot-latest/boot/mbed/
Dmcuboot_main.cpp75 struct boot_rsp rsp; in main() local
76 rc = boot_go(&rsp); in main()
82 uint32_t address = rsp.br_image_off + rsp.br_hdr->ih_hdr_size; in main()
/mcuboot-latest/boot/espressif/
Dmain.c52 void do_boot(struct boot_rsp *rsp) in do_boot() argument
54 BOOT_LOG_INF("br_image_off = 0x%x", rsp->br_image_off); in do_boot()
55 BOOT_LOG_INF("ih_hdr_size = 0x%x", rsp->br_hdr->ih_hdr_size); in do_boot()
56 …int slot = (rsp->br_image_off == CONFIG_ESP_IMAGE0_PRIMARY_START_ADDRESS) ? PRIMARY_SLOT : SECONDA… in do_boot()
57 start_cpu0_image(IMAGE_INDEX_0, slot, rsp->br_hdr->ih_hdr_size); in do_boot()
161 struct boot_rsp rsp; in main() local
180 FIH_CALL(boot_go, fih_rc, &rsp); in main()
295 do_boot(&rsp); in main()
/mcuboot-latest/boot/mynewt/src/
Dmain.c51 void boot_custom_start(uintptr_t flash_base, struct boot_rsp *rsp);
219 struct boot_rsp rsp; in mynewt_main() local
249 FIH_CALL(boot_go, fih_rc, &rsp); in mynewt_main()
255 rc = flash_device_base(rsp.br_flash_dev_id, &flash_base); in mynewt_main()
259 boot_custom_start(flash_base, &rsp); in mynewt_main()
262 hal_system_start((void *)(flash_base + rsp.br_image_off + in mynewt_main()
263 rsp.br_hdr->ih_hdr_size)); in mynewt_main()
Dsingle_loader.c102 boot_go(struct boot_rsp *rsp) in boot_go() argument
128 rsp->br_flash_dev_id = flash_area_get_device_id(_fa_p); in boot_go()
129 rsp->br_image_off = flash_area_get_off(_fa_p); in boot_go()
130 rsp->br_hdr = &_hdr; in boot_go()
/mcuboot-latest/boot/bootutil/include/bootutil/
Dbootutil.h86 fih_ret boot_go(struct boot_rsp *rsp);
87 fih_ret boot_go_for_image_id(struct boot_rsp *rsp, uint32_t image_id);
90 fih_ret context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp);
Dboot_hooks.h227 fih_ret boot_go_hook(struct boot_rsp *rsp);
/mcuboot-latest/samples/runtime-source/zephyr/hooks/
Dhooks.c31 fih_ret boot_go_hook(struct boot_rsp *rsp) in boot_go_hook() argument
92 rsp->br_flash_dev_id = flash_area_get_device_id(_fa_p); in boot_go_hook()
93 rsp->br_image_off = flash_area_get_off(_fa_p); in boot_go_hook()
94 rsp->br_hdr = &_hdr; in boot_go_hook()
/mcuboot-latest/sim/mcuboot-sys/src/
Dc.rs87 let mut rsp = api::BootRsp { in boot_go() localVariable
97 &mut rsp as *mut _, -1) as i32, in boot_go()
100 &mut rsp as *mut _, in boot_go()
114 BootGoResult::Normal { result, asserts, resp: rsp } in boot_go()
178 rsp: *mut BootRsp, image_index: libc::c_int) -> libc::c_int; in invoke_boot_go()
/mcuboot-latest/boot/bootutil/src/
Dloader.c210 fill_rsp(struct boot_loader_state *state, struct boot_rsp *rsp) in fill_rsp() argument
234 rsp->br_flash_dev_id = flash_area_get_device_id(BOOT_IMG_AREA(state, active_slot)); in fill_rsp()
235 rsp->br_image_off = boot_img_slot_off(state, active_slot); in fill_rsp()
236 rsp->br_hdr = boot_img_hdr(state, active_slot); in fill_rsp()
2255 context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp) argument
2541 fill_rsp(state, rsp);
2969 context_boot_go(struct boot_loader_state *state, struct boot_rsp *rsp) argument
3026 fill_rsp(state, rsp);
3048 boot_go(struct boot_rsp *rsp) argument
3054 FIH_CALL(context_boot_go, fih_rc, &boot_data, rsp);
[all …]
/mcuboot-latest/sim/mcuboot-sys/csupport/
Drun.c249 struct boot_rsp *rsp, int image_id) in invoke_boot_go() argument
278 res = context_boot_go(state, rsp); in invoke_boot_go()
/mcuboot-latest/docs/
DPORTING.md29 int boot_go(struct boot_rsp *rsp);