Home
last modified time | relevance | path

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

/system/core/fastboot/
Dbootimg_utils.cpp42 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline) { in bootimg_set_cmdline()
51 const std::vector<char>& ramdisk, const boot_img_hdr_v2& src, in mkbootimg_v3_and_above()
81 const boot_img_hdr_v2& src, std::vector<char>* out) { in mkbootimg()
102 boot_img_hdr_v2* hdr = reinterpret_cast<boot_img_hdr_v2*>(out->data()); in mkbootimg()
119 hdr->header_size = sizeof(boot_img_hdr_v2); in mkbootimg()
Dbootimg_utils.h40 const boot_img_hdr_v2& src, std::vector<char>* out);
42 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline);
Dfastboot.cpp106 static boot_img_hdr_v2 g_boot_img_hdr = {};
661 bootimg_set_cmdline(reinterpret_cast<boot_img_hdr_v2*>(kernel_data.data()), g_cmdline); in LoadBootableImage()
701 bootimg_set_cmdline(reinterpret_cast<boot_img_hdr_v2*>(out.data()), g_cmdline); in LoadBootableImage()
/system/tools/mkbootimg/rust/
Dbootimg.rs19 boot_img_hdr_v0, boot_img_hdr_v1, boot_img_hdr_v2, boot_img_hdr_v3, boot_img_hdr_v4,
32 V2(LayoutVerified<B, boot_img_hdr_v2>),
117 2 => Ok(Self::V2(parse_header::<B, boot_img_hdr_v2>(buffer)?)), in parse()
261 let mut buffer = [0; core::mem::size_of::<boot_img_hdr_v2>()]; in parse_v2()
262 add::<boot_img_hdr_v2>( in parse_v2()
264 boot_img_hdr_v2 { in parse_v2()
277 Ok(BootImage::V2(LayoutVerified::<&[u8], boot_img_hdr_v2>::new(&buffer).unwrap())); in parse_v2()
Dbootimg_priv.rs212 pub struct boot_img_hdr_v2 { struct
219 const UNINIT: ::core::mem::MaybeUninit<boot_img_hdr_v2> = ::core::mem::MaybeUninit::uninit(); in bindgen_test_layout_boot_img_hdr_v2() argument
222 ::core::mem::size_of::<boot_img_hdr_v2>(), in bindgen_test_layout_boot_img_hdr_v2()
224 concat!("Size of: ", stringify!(boot_img_hdr_v2)) in bindgen_test_layout_boot_img_hdr_v2()
227 ::core::mem::align_of::<boot_img_hdr_v2>(), in bindgen_test_layout_boot_img_hdr_v2()
229 concat!("Alignment of ", stringify!(boot_img_hdr_v2)) in bindgen_test_layout_boot_img_hdr_v2()
234 concat!("Offset of field: ", stringify!(boot_img_hdr_v2), "::", stringify!(dtb_size)) in bindgen_test_layout_boot_img_hdr_v2()
239 concat!("Offset of field: ", stringify!(boot_img_hdr_v2), "::", stringify!(dtb_addr)) in bindgen_test_layout_boot_img_hdr_v2()
242 impl Default for boot_img_hdr_v2 { implementation
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h199 struct boot_img_hdr_v2 : public boot_img_hdr_v1 { struct