Lines Matching refs:v1_raw
64 struct mcuboot_v1_raw_header *v1_raw) in boot_read_v1_header() argument
77 rc = flash_area_read(fa, 0, v1_raw, sizeof(*v1_raw)); in boot_read_v1_header()
83 v1_raw->header_magic = sys_le32_to_cpu(v1_raw->header_magic); in boot_read_v1_header()
84 v1_raw->image_load_address = in boot_read_v1_header()
85 sys_le32_to_cpu(v1_raw->image_load_address); in boot_read_v1_header()
86 v1_raw->header_size = sys_le16_to_cpu(v1_raw->header_size); in boot_read_v1_header()
87 v1_raw->image_size = sys_le32_to_cpu(v1_raw->image_size); in boot_read_v1_header()
88 v1_raw->image_flags = sys_le32_to_cpu(v1_raw->image_flags); in boot_read_v1_header()
89 v1_raw->version.revision = in boot_read_v1_header()
90 sys_le16_to_cpu(v1_raw->version.revision); in boot_read_v1_header()
91 v1_raw->version.build_num = in boot_read_v1_header()
92 sys_le32_to_cpu(v1_raw->version.build_num); in boot_read_v1_header()
101 if ((v1_raw->header_magic != BOOT_HEADER_MAGIC_V1) || in boot_read_v1_header()
102 (v1_raw->header_size < BOOT_HEADER_SIZE_V1)) { in boot_read_v1_header()
114 struct mcuboot_v1_raw_header v1_raw; in boot_read_bank_header() local
125 rc = boot_read_v1_header(area_id, &v1_raw); in boot_read_bank_header()
141 header->h.v1.image_size = v1_raw.image_size; in boot_read_bank_header()
143 sem_ver->major = v1_raw.version.major; in boot_read_bank_header()
144 sem_ver->minor = v1_raw.version.minor; in boot_read_bank_header()
145 sem_ver->revision = v1_raw.version.revision; in boot_read_bank_header()
146 sem_ver->build_num = v1_raw.version.build_num; in boot_read_bank_header()