Home
last modified time | relevance | path

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

/bootable/libbootloader/gbl/third_party/libzbi/src/
Dzbi_format.rs66 pub const ZBI_ALIGNMENT: u32 = 8;
67 pub const ZBI_TYPE_KERNEL_PREFIX: u32 = 5132875;
68 pub const ZBI_TYPE_KERNEL_MASK: u32 = 16777215;
69 pub const ZBI_TYPE_DRIVER_METADATA_PREFIX: u32 = 109;
70 pub const ZBI_TYPE_DRIVER_METADATA_MASK: u32 = 255;
71 pub type zbi_type_t = u32;
105 pub const ZBI_CONTAINER_MAGIC: u32 = 2257385446;
106 pub const ZBI_ITEM_MAGIC: u32 = 3044546345;
107 pub type zbi_flags_t = u32;
110 pub const ZBI_ITEM_NO_CRC32: u32 = 1250420950;
[all …]
Dlib.rs219 extra: u32, in new() argument
233 u32::try_from(payload_len).map_err(|_| ZbiError::PlatformBadLength)?; in new()
237 header.type_ = type_ as u32; in new()
296 pub fn get_payload_length_u32(&self) -> u32 { in get_payload_length_u32() argument
330 Some(ZbiItem { header, payload: _ }) if header.type_ == ZBI_ARCH_KERNEL_TYPE as u32 => { in is_bootable()
358 if header.type_ != ZbiType::Container as u32 { in parse()
389 self.header.length = u32::try_from(len).map_err(|_| ZbiError::PlatformBadLength)?; in set_payload_length_usize()
503 extra: u32, in create_entry_with_payload() argument
555 extra: u32, in create_entry() argument
694 #[repr(u32)]
[all …]
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dsparse.rs25 const HEADER_MAGIC: u32 = 0xED26FF3A;
37 pub magic: u32,
42 pub blk_sz: u32,
43 pub total_blks: u32,
44 pub total_chunks: u32,
45 pub image_checksum: u32,
53 pub chunk_sz: u32,
54 pub total_sz: u32,
98 pub fill_blocks: u32,
101 pub fill_value_or_skip_blocks: u32,
[all …]
/bootable/libbootloader/gbl/libabr/src/
Dutils.rs20 pub extern "C" fn AbrBigEndianToHost(val: u32) -> u32 { in AbrBigEndianToHost() argument
21 u32::from_be(val) in AbrBigEndianToHost()
27 pub extern "C" fn AbrHostToBigEndian(val: u32) -> u32 { in AbrHostToBigEndian() argument
Dlib.rs212 pub crc32: u32,
258 crc32: u32::from_be_bytes(bytes[28..ABR_DATA_SIZE].try_into().unwrap()), in deserialize()
635 fn reverse_u32(val: u32) -> u32 { in reverse_u32() argument
638 u32::from_be_bytes(bytes) in reverse_u32()
642 fn crc32(data: &[u8]) -> u32 { in crc32() argument
643 let mut res: u32 = 0xffffffff; in crc32()
645 res ^= (reverse_byte(*b) as u32) << 24; in crc32()
/bootable/libbootloader/gbl/libboot/src/
Dx86.rs65 pub const E820_ADDRESS_TYPE_RAM: u32 = 1;
66 pub const E820_ADDRESS_TYPE_RESERVED: u32 = 2;
67 pub const E820_ADDRESS_TYPE_ACPI: u32 = 3;
68 pub const E820_ADDRESS_TYPE_NVS: u32 = 4;
69 pub const E820_ADDRESS_TYPE_UNUSABLE: u32 = 5;
70 pub const E820_ADDRESS_TYPE_PMEM: u32 = 7;
/bootable/libbootloader/gbl/libstorage/src/
Dgpt.rs30 pub revision: u32,
31 pub size: u32,
32 pub crc32: u32,
33 pub reserved0: u32,
40 pub entries_count: u32,
41 pub entries_size: u32,
42 pub entries_crc: u32,
287 hasher.update(&[0u8; size_of::<u32>()]); in validate_gpt()
288 hasher.update(&header.as_bytes()[crc32_offset + size_of::<u32>()..]); in validate_gpt()
410 fn crc32(data: &[u8]) -> u32 { in crc32() argument
Dtestlib.rs462 size: std::mem::size_of::<GptHeader>() as u32, in partitions_to_disk_data()
465 entries_count: std::cmp::min(partitions.len(), gpt_max_entries) as u32, in partitions_to_disk_data()
466 entries_size: std::mem::size_of::<GptEntry>() as u32, in partitions_to_disk_data()
/bootable/libbootloader/gbl/libfdt/src/
Dlib.rs104 u32::from_be(self.0.totalsize) as usize in totalsize()
109 u32::from_be(self.0.off_dt_strings) in actual_size()
110 .checked_add(u32::from_be(self.0.size_dt_strings)) in actual_size()
115 pub fn set_totalsize(&mut self, value: u32) { in set_totalsize() argument
190 u32::from_be(v.len).try_into().map_err(|_| FdtError::IntegerOverflow)?, in get_property()
222 let new_size: u32 = fdt.as_mut().len().try_into().map_err(|_| FdtError::IntegerOverflow)?; in new_from_init()
/bootable/libbootloader/gbl/libbootconfig/src/
Dlib.rs112 let size: u32 = in update_trailer()
124 fn checksum(&self) -> u32 { in checksum() argument
127 .map(|v| *v as u32) in checksum()
/bootable/libbootloader/gbl/libefi/src/
Dlib.rs369 let mut descriptor_version: u32 = 0; in get_memory_map()
435 event_type as u32, in create_event()
515 #[repr(u32)]
604 descriptor_version: u32,
632 descriptor_version: u32, in new() argument
648 pub fn descriptor_version(&self) -> u32 { in descriptor_version() argument
812 attr: u32, in open_protocol() argument
909 _: *mut u32, in get_memory_map() argument
940 pub inputs: VecDeque<(u32, EfiTpl, EfiEventNotify, *mut core::ffi::c_void)>,
951 type_: u32, in create_event() argument
Dprotocol.rs97 pub const fn new(data1: u32, data2: u16, data3: u16, data4: [u8; 8usize]) -> Self { in new() argument
/bootable/libbootloader/gbl/libgbl/src/
Dslots.rs74 -i64::from(u32::from(self.0)) in rank()
88 u32::try_from(value).ok().and_then(char::from_u32).ok_or(Error::Other).map(Self) in try_from()
/bootable/libbootloader/gbl/libefi/src/protocol/
Dsimple_network.rs77 interrupt_status: Option<&mut u32>, in get_status() argument
/bootable/libbootloader/gbl/efi/src/
Dutils.rs187 pub fn efi_to_e820_mem_type(efi_mem_type: u32) -> u32 { in efi_to_e820_mem_type() argument
/bootable/libbootloader/gbl/libsafemath/src/
Dlib.rs265 conversion_func!(u32);
415 conversion_test!(u32);
/bootable/libbootloader/gbl/libavb/src/
Dlib.rs85 pub extern "C" fn avb_div_by_10(dividend: *mut u64) -> u32 { in avb_div_by_10() argument
/bootable/libbootloader/gbl/libgbl/src/slots/
Dandroid.rs181 const BOOT_CTRL_MAGIC: u32 = 0x42414342;
197 magic: u32,
208 fn calculate_crc32(&self) -> u32 { in calculate_crc32() argument
Dfuchsia.rs111 fn calculate_crc32(&self) -> u32 { in calculate_crc32() argument