Searched refs:boot_hdr (Results 1 – 3 of 3) sorted by relevance
1039 struct boot_img_hdr_v34 *boot_hdr; in extract_boot_image_v34_header() local1044 boot_hdr = (struct boot_img_hdr_v34 *)malloc(blk_cnt * dev_desc->blksz); in extract_boot_image_v34_header()1046 if (!blk_cnt || !boot_hdr) in extract_boot_image_v34_header()1049 blks_read = blk_dread(dev_desc, boot_img->start, blk_cnt, boot_hdr); in extract_boot_image_v34_header()1056 if (android_image_check_header((void *)boot_hdr)) { in extract_boot_image_v34_header()1061 if (boot_hdr->header_version < 3) { in extract_boot_image_v34_header()1063 boot_hdr->header_version); in extract_boot_image_v34_header()1077 if (boot_hdr->header_version >= 4 && boot_hdr->os_version == 0) { in extract_boot_image_v34_header()1080 boot_hdr->os_version = 13 << 25; in extract_boot_image_v34_header()1083 return boot_hdr; in extract_boot_image_v34_header()[all …]
550 void *boot_hdr = NULL; in avb_image_distribute_finish() local558 boot_hdr = slot_data->loaded_partitions[i].data; in avb_image_distribute_finish()578 hdr = boot_hdr; in avb_image_distribute_finish()585 ret = populate_boot_info(boot_hdr, vendor_boot_hdr, in avb_image_distribute_finish()591 memcpy(boot_hdr, hdr, sizeof(*hdr)); in avb_image_distribute_finish()596 if (android_image_memcpy_separate(boot_hdr, &load_addr)) { in avb_image_distribute_finish()
1384 int populate_boot_info(const struct boot_img_hdr_v34 *boot_hdr,