Home
last modified time | relevance | path

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

/system/core/fastboot/
Dvendor_boot_img_utils.cpp219 const uint32_t p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in replace_default_vendor_ramdisk()
227 new_hdr->vendor_ramdisk_size = new_ramdisk.size(); in replace_default_vendor_ramdisk()
239 if (auto res = updater.Replace(hdr->vendor_ramdisk_size, new_ramdisk); !res.ok()) in replace_default_vendor_ramdisk()
241 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_default_vendor_ramdisk()
242 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_default_vendor_ramdisk()
263 new_entry->ramdisk_size = new_hdr->vendor_ramdisk_size; in replace_default_vendor_ramdisk()
313 const uint32_t p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in replace_vendor_ramdisk_fragment()
361 new_hdr->vendor_ramdisk_size = new_total_ramdisk_size; in replace_vendor_ramdisk_fragment()
365 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_vendor_ramdisk_fragment()
366 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_vendor_ramdisk_fragment()
Dvendor_boot_img_utils_test.cpp293 EXPECT_EQ(hdr->vendor_ramdisk_size, env->replace->size()); in TEST_P()
297 auto p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in TEST_P()
311 EXPECT_EQ(entry->ramdisk_size, hdr_v4->vendor_ramdisk_size); in TEST_P()
381 EXPECT_EQ(hdr->vendor_ramdisk_size, expect_none_size + expect_platform_size); in TEST_P()
386 auto p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in TEST_P()
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h298 uint32_t vendor_ramdisk_size; /* size in bytes */ member
/system/tools/mkbootimg/
Dunpack_bootimg.py388 info.vendor_ramdisk_size = unpack('I', boot_img.read(4))[0]
401 info.vendor_ramdisk_size, page_size)
451 (ramdisk_offset_base, info.vendor_ramdisk_size, 'vendor_ramdisk'))
Dmkbootimg.py145 vendor_ramdisk_size = args.vendor_ramdisk_total_size
148 vendor_ramdisk_size = filesize(args.vendor_ramdisk)
162 args.vendor_boot.write(pack('I', vendor_ramdisk_size))
/system/tools/mkbootimg/rust/
Dbootimg_priv.rs335 pub vendor_ramdisk_size: u32, field
404 unsafe { ::core::ptr::addr_of!((*ptr).vendor_ramdisk_size) as usize - ptr as usize }, in bindgen_test_layout_vendor_boot_img_hdr_v3()
410 stringify!(vendor_ramdisk_size) in bindgen_test_layout_vendor_boot_img_hdr_v3()