Searched refs:boot_hdr (Results 1 – 3 of 3) sorted by relevance
1065 struct boot_img_hdr_v34 *boot_hdr; in extract_boot_image_v34_header() local1070 boot_hdr = (struct boot_img_hdr_v34 *)malloc(blk_cnt * dev_desc->blksz); in extract_boot_image_v34_header()1072 if (!blk_cnt || !boot_hdr) in extract_boot_image_v34_header()1075 blks_read = blk_dread(dev_desc, boot_img->start, blk_cnt, boot_hdr); in extract_boot_image_v34_header()1082 if (android_image_check_header((void *)boot_hdr)) { in extract_boot_image_v34_header()1087 if (boot_hdr->header_version < 3) { in extract_boot_image_v34_header()1089 boot_hdr->header_version); in extract_boot_image_v34_header()1094 if (boot_hdr->header_version >= 4 && boot_hdr->os_version == 0) { in extract_boot_image_v34_header()1097 boot_hdr->os_version = 13 << 25; in extract_boot_image_v34_header()1100 return boot_hdr; in extract_boot_image_v34_header()[all …]
551 void *boot_hdr = NULL; in avb_image_distribute_finish() local559 boot_hdr = slot_data->loaded_partitions[i].data; in avb_image_distribute_finish()579 hdr = boot_hdr; in avb_image_distribute_finish()586 ret = populate_boot_info(boot_hdr, vendor_boot_hdr, in avb_image_distribute_finish()592 memcpy(boot_hdr, hdr, sizeof(*hdr)); in avb_image_distribute_finish()597 if (android_image_memcpy_separate(boot_hdr, &load_addr)) { in avb_image_distribute_finish()
1376 int populate_boot_info(const struct boot_img_hdr_v34 *boot_hdr,