Home
last modified time | relevance | path

Searched defs:u8 (Results 1 – 25 of 34) sorted by relevance

12

/bootable/libbootloader/gbl/libboot/src/
Daarch64.rs55 fn flush_dcache_buffer(buf: &[u8]) { in flush_dcache_buffer()
96 pub unsafe fn jump_linux_el2_or_lower(kernel: &[u8], ramdisk: &[u8], fdt: &[u8]) -> ! { in jump_linux_el2_or_lower()
118 pub unsafe fn jump_zircon_el2_or_lower(zbi_kernel: &[u8], entry_off: usize, zbi_item: &[u8]) -> ! { in jump_zircon_el2_or_lower()
Driscv64.rs22 pub unsafe fn jump_linux(kernel: &[u8], boot_hart_id: usize, fdt: &[u8]) -> ! { in jump_linux()
Dx86.rs171 kernel: &[u8], in boot_linux_bzimage()
172 ramdisk: &[u8], in boot_linux_bzimage()
173 cmdline: &[u8], in boot_linux_bzimage()
178 F: FnOnce(&mut [e820entry]) -> Result<u8>, in boot_linux_bzimage()
/bootable/libbootloader/gbl/libefi/src/
Dallocation.rs85 fn allocate(&self, size: usize) -> *mut u8 { in allocate()
100 fn deallocate(&self, ptr: *mut u8) { in deallocate()
113 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc()
124 unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout) { in dealloc()
130 pub fn efi_malloc(size: usize) -> *mut u8 { in efi_malloc()
137 pub fn efi_free(ptr: *mut u8) { in efi_free()
/bootable/libbootloader/gbl/efi/src/
Dandroid_boot.rs50 kernel: &'b [u8], in avb_verify_slot()
51 vendor_boot: &'b [u8], in avb_verify_slot()
52 init_boot: &'b [u8], in avb_verify_slot()
98 load: &'a mut [u8], in load_android_simple()
99 ) -> Result<(&'a mut [u8], &'a mut [u8], &'a mut [u8], &'a mut [u8])> { in load_android_simple()
Dfuchsia_boot.rs40 pub fn relocate_kernel(kernel: &[u8], dest: &mut [u8]) -> Result<usize> { in relocate_kernel()
75 fn zbi_get_unused_buffer(zbi: &mut [u8]) -> Result<(&mut [u8], &mut [u8])> { in zbi_get_unused_buffer()
83 fn relocate_to_tail(kernel: &mut [u8]) -> Result<(&mut [u8], &mut [u8], usize)> { in relocate_to_tail()
93 fn load_fuchsia_simple<'a>(efi_entry: &EfiEntry, load: &'a mut [u8]) -> Result<&'a mut [u8]> { in load_fuchsia_simple()
Davb.rs35 preloaded_partitions: Option<&'b [(&'b str, &'b [u8])]>, in new()
51 buffer: &mut [u8], in read_from_partition()
71 fn get_preloaded_partition(&mut self, partition: &CStr) -> IoResult<&'b [u8]> { in get_preloaded_partition()
84 _public_key: &[u8], in validate_vbmeta_public_key()
85 _public_key_metadata: Option<&[u8]>, in validate_vbmeta_public_key()
151 _public_key: &[u8], in validate_public_key_for_partition()
152 _public_key_metadata: Option<&[u8]>, in validate_public_key_for_partition()
Dutils.rs58 pub fn aligned_subslice(bytes: &mut [u8], alignment: usize) -> Result<&mut [u8]> { in aligned_subslice()
78 out: &mut [u8], in read_blocks()
88 data: &mut [u8], in write_blocks()
114 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with()
174 pub fn get_efi_fdt<'a>(entry: &'a EfiEntry) -> Option<(&FdtHeader, &[u8])> { in get_efi_fdt()
/bootable/libbootloader/gbl/libstorage/src/
Dlib.rs230 out: &mut [u8], in read_blocks()
248 data: &mut [u8], in write_blocks()
343 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)); in with()
476 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with()
489 pub fn new(io: &'a mut dyn BlockIo, scratch: &'b mut [u8], max_gpt_entries: u64) -> Self { in new()
495 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with()
520 F: FnMut(&mut dyn BlockIo, &mut [u8], &mut [u8], u64) -> R, in with_partitioned_scratch()
543 pub fn is_buffer_aligned(buffer: &[u8], alignment: u64) -> Result<bool> { in is_buffer_aligned()
551 buffer: &[u8], in check_range()
570 out: &mut [u8], in read_aligned_all()
[all …]
Dnon_blocking.rs75 buffer: *mut [u8], in write_blocks()
101 buffer: *mut [u8], in read_blocks()
140 out: &mut [u8], in read_blocks()
160 data: &mut [u8], in write_blocks()
277 fn set_pending(&mut self, io_offset: usize, io_size: usize) -> *mut [u8] { in set_pending()
289 fn get(&mut self) -> &mut [u8] { in get()
317 fn take(mut self) -> &'a mut [u8] { in take()
450 buffer: &mut Option<&'b mut [u8]>, in write()
487 buffer: &mut Option<&'b mut [u8]>, in read()
511 pub fn take_io_buffer(&mut self) -> Result<&'b mut [u8]> { in take_io_buffer()
[all …]
Dtestlib.rs135 buffer: *mut [u8], in write_blocks()
155 buffer: *mut [u8], in read_blocks()
230 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with()
423 fn pad_to_block_size(store: &mut Vec<u8>, block_size: usize) { in pad_to_block_size()
430 fn add_blocks(store: &mut Vec<u8>, data: &[u8], block_size: usize) { in add_blocks()
435 fn pad_bytes(store: &mut Vec<u8>, size: usize, block_size: usize) { in pad_bytes()
445 ) -> Vec<u8> { in partitions_to_disk_data()
Dmulti_blocks.rs141 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with()
238 part_data: &[u8], in check_read_partition()
275 data: &mut [u8], in check_write_partition()
/bootable/libbootloader/gbl/libefi/src/protocol/
Dandroid_boot.rs59 pub fn fastboot_usb_receive(&self, out: &mut [u8], out_size: &mut usize) -> EfiResult<()> { in fastboot_usb_receive()
77 pub fn fastboot_usb_send(&self, data: &[u8], out_size: &mut usize) -> EfiResult<()> { in fastboot_usb_send()
Dsimple_network.rs108 buf: *mut [u8], in transmit()
136 buf: &mut [u8], in receive()
/bootable/libbootloader/gbl/libgbl/src/slots/
Dandroid.rs86 fn priority(&self) -> u8 { in priority()
89 fn set_priority(&mut self, priority: u8) { in set_priority()
93 fn tries(&self) -> u8 { in tries()
96 fn set_tries(&mut self, tries: u8) { in set_tries()
148 fn nb_slots(&self) -> u8 { in nb_slots()
151 fn set_nb_slots(&mut self, nb_slots: u8) { in set_nb_slots()
160 fn recovery_tries(&self) -> u8 { in recovery_tries()
163 fn set_recovery_tries(&mut self, recovery_tries: u8) { in set_recovery_tries()
172 fn merge_status(&self) -> u8 { in merge_status()
175 fn set_merge_status(&mut self, merge_status: u8) { in set_merge_status()
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dsparse.rs138 pub fn write_sparse_image<F>(sparse_img: &mut [u8], mut write: F) -> Result<u64, CommandError> in write_sparse_image()
211 fn get(&mut self, val: u32, size: u64) -> Result<&mut [u8], CommandError> { in get()
227 fn get_mut<L: TryInto<usize>, R: TryInto<usize>>( in get_mut()
231 ) -> Result<&mut [u8], CommandError> { in get_mut()
236 fn get<L: TryInto<usize>, R: TryInto<usize>>( in get()
240 ) -> Result<&[u8], CommandError> { in get()
315 fn copy_to<T: AsBytes + FromBytes>(val: &T, bytes: &mut [u8]) { in copy_to()
Dvars.rs33 out: &mut [u8], in get()
51 out: &mut [u8], in get()
79 out: &mut [u8], in get()
136 out: &mut [u8], in get()
Dmod.rs178 out: &mut [u8], in get_var()
243 _res: &'a mut [u8], in oem()
244 ) -> Result<&'a [u8], CommandError> { in oem()
364 ) -> Result<Vec<u8>, CommandError> { in fetch()
409 fn check_blk_upload(fb: &mut GblFastboot, blk_id: u64, off: u64, size: u64, disk: &[u8]) { in check_blk_upload()
443 partition_data: &[u8], in check_gpt_upload()
486 fn check_flash_part(fb: &mut GblFastboot, part: &str, expected: &[u8]) { in check_flash_part()
/bootable/libbootloader/gbl/libfdt/src/
Dlib.rs65 fdt: &mut [u8], in fdt_add_subnode()
82 fdt: &[u8], in fdt_subnode_offset()
140 pub unsafe fn from_raw(ptr: *const u8) -> Result<(&'static FdtHeader, &'static [u8])> { in from_raw()
172 pub fn get_property<'a>(&'a self, path: &str, name: &CStr) -> Result<&'a [u8]> { in get_property()
189 v.data.as_ptr() as *const u8, in get_property() constant
267 ) -> Result<&mut [u8]> { in set_property_placeholder()
/bootable/libbootloader/gbl/libgbl/src/
Dlib.rs300 load_buffer: &'b mut [u8], in kernel_load()
410 kernel_load_buffer: &mut [u8], in load_verify_boot()
411 ramdisk_load_buffer: &mut [u8], in load_verify_boot()
412 fdt: &mut [u8], in load_verify_boot()
455 kernel_load_buffer: &'e mut [u8], in lvb_inner()
604 fn validate_vbmeta_public_key(&mut self, _: &[u8], _: Option<&[u8]>) -> AvbIoResult<bool> { in validate_vbmeta_public_key()
638 public_key: &[u8], in validate_public_key_for_partition()
639 public_key_metadata: Option<&[u8]>, in validate_public_key_for_partition()
672 fn testdata(path: &str) -> Vec<u8> { in testdata()
Ddigest.rs50 fn update(&mut self, input: &[u8]); in update()
Doverlap.rs54 fn get_range(first: usize, last: usize) -> &'static [u8] { in get_range()
/bootable/libbootloader/gbl/libavb/src/
Dlib.rs113 core::slice::from_raw_parts(src1 as *const u8, n), in avb_memcmp() constant
114 core::slice::from_raw_parts(src2 as *const u8, n), in avb_memcmp() constant
/bootable/libbootloader/gbl/libc/src/
Dlib.rs30 let start = ptr as *const u8; in memchr() constant
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs221 out: &mut [u8], in get_var()
230 out: &'s mut [u8], in get_var_as_str()
352 res: &'a mut [u8], in oem()
353 ) -> Result<&'a [u8], CommandError>; in oem()
411 download_buffer: &'a mut [u8], in new()
419 pub fn download_data(&mut self) -> &mut [u8] { in download_data()
427 pub fn take_download_buffer(&mut self) -> (&mut [u8], usize) { in take_download_buffer()
546 pub fn with_mock_upload_builder<F>(buffer: &mut [u8], mut f: F) -> (usize, usize) in with_mock_upload_builder()
751 out: &'s mut [u8], in get_var_str()
934 pub fn append(&mut self, bytes: &[u8]) -> &mut [u8] { in append()
[all …]

12