Home
last modified time | relevance | path

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

/system/tools/mkbootimg/rust/
Dbootimg.rs20 vendor_boot_img_hdr_v3, vendor_boot_img_hdr_v4, BOOT_MAGIC, BOOT_MAGIC_SIZE, VENDOR_BOOT_MAGIC,
43 V3(LayoutVerified<B, vendor_boot_img_hdr_v3>),
148 let (hdr, _) = LayoutVerified::<&[u8], vendor_boot_img_hdr_v3>::new_from_prefix( in parse()
158 3 => Ok(Self::V3(parse_header::<B, vendor_boot_img_hdr_v3>(buffer)?)), in parse()
324 let mut buffer = [0; core::mem::size_of::<vendor_boot_img_hdr_v3>()]; in vendor_bad_magic()
325 add::<vendor_boot_img_hdr_v3>( in vendor_bad_magic()
327 vendor_boot_img_hdr_v3 { magic: *b"VNDRBOOK", header_version: 3, ..Default::default() }, in vendor_bad_magic()
334 let mut buffer = [0; core::mem::size_of::<vendor_boot_img_hdr_v3>()]; in vendor_bad_version()
335 add::<vendor_boot_img_hdr_v3>( in vendor_bad_version()
337 vendor_boot_img_hdr_v3 { in vendor_bad_version()
[all …]
Dbootimg_priv.rs329 pub struct vendor_boot_img_hdr_v3 { struct
345 const UNINIT: ::core::mem::MaybeUninit<vendor_boot_img_hdr_v3> = in bindgen_test_layout_vendor_boot_img_hdr_v3() argument
349 ::core::mem::size_of::<vendor_boot_img_hdr_v3>(), in bindgen_test_layout_vendor_boot_img_hdr_v3()
351 concat!("Size of: ", stringify!(vendor_boot_img_hdr_v3)) in bindgen_test_layout_vendor_boot_img_hdr_v3()
354 ::core::mem::align_of::<vendor_boot_img_hdr_v3>(), in bindgen_test_layout_vendor_boot_img_hdr_v3()
356 concat!("Alignment of ", stringify!(vendor_boot_img_hdr_v3)) in bindgen_test_layout_vendor_boot_img_hdr_v3()
361 concat!("Offset of field: ", stringify!(vendor_boot_img_hdr_v3), "::", stringify!(magic)) in bindgen_test_layout_vendor_boot_img_hdr_v3()
368 stringify!(vendor_boot_img_hdr_v3), in bindgen_test_layout_vendor_boot_img_hdr_v3()
378 stringify!(vendor_boot_img_hdr_v3), in bindgen_test_layout_vendor_boot_img_hdr_v3()
388 stringify!(vendor_boot_img_hdr_v3), in bindgen_test_layout_vendor_boot_img_hdr_v3()
[all …]
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h286 struct vendor_boot_img_hdr_v3 { struct
404 struct vendor_boot_img_hdr_v4 : public vendor_boot_img_hdr_v3 {
/system/core/fastboot/
Dvendor_boot_img_utils.cpp130 [[nodiscard]] Result<uint32_t> get_vendor_boot_header_size(const vendor_boot_img_hdr_v3* hdr) { in get_vendor_boot_header_size()
131 if (hdr->header_version == 3) return sizeof(vendor_boot_img_hdr_v3); in get_vendor_boot_header_size()
140 if (content.size() < sizeof(vendor_boot_img_hdr_v3)) { in check_vendor_boot_hdr()
142 content.size(), sizeof(vendor_boot_img_hdr_v3)); in check_vendor_boot_hdr()
145 auto hdr = reinterpret_cast<const vendor_boot_img_hdr_v3*>(content.data()); in check_vendor_boot_hdr()
214 auto hdr = reinterpret_cast<const vendor_boot_img_hdr_v3*>(vendor_boot.data()); in replace_default_vendor_ramdisk()
226 auto new_hdr = reinterpret_cast<vendor_boot_img_hdr_v3*>(updater.new_begin()); in replace_default_vendor_ramdisk()
Dvendor_boot_img_utils_test.cpp290 auto hdr = reinterpret_cast<const vendor_boot_img_hdr_v3*>(new_content.data()); in TEST_P()
296 auto o = round_up(sizeof(vendor_boot_img_hdr_v3), hdr->page_size); in TEST_P()
385 auto o = round_up(sizeof(vendor_boot_img_hdr_v3), hdr->page_size); in TEST_P()