Home
last modified time | relevance | path

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

/bootable/libbootloader/gbl/third_party/libzbi/src/
Dlib.rs63 pub const ZBI_ALIGNMENT_USIZE: usize = ZBI_ALIGNMENT as usize; constant
1185 match addr % ZBI_ALIGNMENT_USIZE { in get_align_buffer_offset()
1188 let tail_offset = ZBI_ALIGNMENT_USIZE - rem; in get_align_buffer_offset()
1199 match (buffer.as_ptr() as usize) % ZBI_ALIGNMENT_USIZE { in is_zbi_aligned()
1271 let rem = self.tail_offset % ZBI_ALIGNMENT_USIZE; in align()
1273 self.tail_offset += ZBI_ALIGNMENT_USIZE - rem; in align()
1310 assert_eq!(u32::try_from(ZBI_ALIGNMENT_USIZE).unwrap(), ZBI_ALIGNMENT); in zbi_test_align_overflow()
1812 let payload = [0; ZBI_ALIGNMENT_USIZE]; in zbi_test_container_new_entry_with_payload_just_enough_to_fit_no_align()
1815 + (/*alignment*/ZBI_ALIGNMENT_USIZE - payload.len()); in zbi_test_container_new_entry_with_payload_just_enough_to_fit_no_align()
1833 + (ZBI_ALIGNMENT_USIZE - payload.len()/*alignment*/); in zbi_test_container_new_entry_with_payload_just_enough_to_fit_with_alignment()
[all …]
/bootable/libbootloader/gbl/efi/src/
Dfuchsia_boot.rs22 use zbi::{ZbiContainer, ZbiFlags, ZbiHeader, ZbiType, ZBI_ALIGNMENT_USIZE};
94 let load = aligned_subslice(load, ZBI_ALIGNMENT_USIZE)?; in load_fuchsia_simple()