Lines Matching refs:BOOT_PRIMARY_SLOT
231 active_slot = BOOT_PRIMARY_SLOT; in fill_rsp()
333 out_sectors = BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors; in boot_initialize_area()
334 out_num_sectors = &BOOT_IMG(state, BOOT_PRIMARY_SLOT).num_sectors; in boot_initialize_area()
412 : BOOT_PRIMARY_SLOT; in boot_verify_slot_dependency()
474 slot = BOOT_PRIMARY_SLOT; in boot_verify_dependencies()
627 elem_sz = flash_area_align(BOOT_IMG_AREA(state, BOOT_PRIMARY_SLOT)); in boot_write_sz()
1053 if (slot != BOOT_PRIMARY_SLOT) {
1062 BOOT_PRIMARY_SLOT),
1085 if (slot != BOOT_PRIMARY_SLOT && boot_status_is_reset(bs) &&
1105 if (slot != BOOT_PRIMARY_SLOT) {
1109 &boot_img_hdr(state, BOOT_PRIMARY_SLOT)->ih_ver);
1110 if (rc < 0 && boot_check_header_erased(state, BOOT_PRIMARY_SLOT)) {
1134 if ((slot != BOOT_PRIMARY_SLOT) || ARE_SLOTS_EQUIVALENT()) {
1142 (slot == BOOT_PRIMARY_SLOT) ? "primary" : "secondary");
1155 const struct flash_area *pri_fa = BOOT_IMG_AREA(state, BOOT_PRIMARY_SLOT);
1365 hdr = boot_img_hdr(state, BOOT_PRIMARY_SLOT);
1511 sect_count = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT);
1513 this_size = boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sect);
1530 sector = boot_img_num_sectors(state, BOOT_PRIMARY_SLOT) - 1;
1533 sz += boot_img_sector_size(state, BOOT_PRIMARY_SLOT, sector);
1534 off = boot_img_sector_off(state, BOOT_PRIMARY_SLOT, sector);
1583 BOOT_IMG_AREA(state, BOOT_PRIMARY_SLOT), size);
1594 rc = boot_update_security_counter(state, BOOT_PRIMARY_SLOT, BOOT_SECONDARY_SLOT);
1669 hdr = boot_img_hdr(state, BOOT_PRIMARY_SLOT);
1671 rc = boot_read_image_size(state, BOOT_PRIMARY_SLOT, ©_size);
1677 fap = BOOT_IMG_AREA(state, BOOT_PRIMARY_SLOT);
1773 BOOT_IMG_AREA(state, BOOT_PRIMARY_SLOT), size);
1804 rc = boot_check_header_erased(state, BOOT_PRIMARY_SLOT);
1805 FIH_CALL(boot_validate_slot, fih_rc, state, BOOT_PRIMARY_SLOT, bs, 0);
1840 rc = boot_update_security_counter(state, BOOT_PRIMARY_SLOT, BOOT_SECONDARY_SLOT);
2052 if (rc != 0 && boot_check_header_erased(state, BOOT_PRIMARY_SLOT) != 0) {
2131 rc = boot_check_header_erased(state, BOOT_PRIMARY_SLOT);
2133 state, BOOT_PRIMARY_SLOT, bs, 0);
2183 rc = boot_update_security_counter(state, BOOT_PRIMARY_SLOT, BOOT_PRIMARY_SLOT);
2220 rc = bootutil_get_img_security_cnt(state, BOOT_PRIMARY_SLOT,
2237 &boot_img_hdr(state, BOOT_PRIMARY_SLOT)->ih_ver);
2306 BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors =
2314 BOOT_IMG(state, BOOT_PRIMARY_SLOT).sectors =
2494 FIH_CALL(boot_validate_slot, fih_rc, state, BOOT_PRIMARY_SLOT, NULL, 0);
2509 if (BOOT_IMG(state, BOOT_PRIMARY_SLOT).hdr.ih_magic != IMAGE_MAGIC) {
2511 BOOT_IMG(state, BOOT_PRIMARY_SLOT).hdr.ih_magic,
2525 rc = boot_add_shared_data(state, BOOT_PRIMARY_SLOT);
2677 (slot == BOOT_PRIMARY_SLOT)
2748 (active_slot == BOOT_PRIMARY_SLOT) ?
2794 (active_slot == BOOT_PRIMARY_SLOT) ? "primary" : "secondary");
2815 "the %s slot.", (active_slot == BOOT_PRIMARY_SLOT) ?
3122 BOOT_IMG(&boot_data, BOOT_PRIMARY_SLOT).sectors =