Home
last modified time | relevance | path

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

/system/core/fastboot/
Dvendor_boot_img_utils.cpp222 auto new_hdr = reinterpret_cast<vendor_boot_img_hdr_v3*>(updater.new_begin()); in replace_default_vendor_ramdisk() local
223 new_hdr->vendor_ramdisk_size = new_ramdisk.size(); in replace_default_vendor_ramdisk()
226 if (new_hdr->header_version >= 4) { in replace_default_vendor_ramdisk()
227 auto new_hdr_v4 = static_cast<vendor_boot_img_hdr_v4*>(new_hdr); in replace_default_vendor_ramdisk()
237 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_default_vendor_ramdisk()
238 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_default_vendor_ramdisk()
246 if (new_hdr->header_version >= 4) { in replace_default_vendor_ramdisk()
252 auto new_hdr_v4 = static_cast<const vendor_boot_img_hdr_v4*>(new_hdr); in replace_default_vendor_ramdisk()
253 auto new_r = round_up(new_hdr_v4->vendor_ramdisk_table_size, new_hdr->page_size); in replace_default_vendor_ramdisk()
259 new_entry->ramdisk_size = new_hdr->vendor_ramdisk_size; in replace_default_vendor_ramdisk()
[all …]