/bootable/libbootloader/gbl/libstorage/src/ |
D | lib.rs | 167 pub block_size: u64, 169 pub num_blocks: u64, 173 pub alignment: u64, 178 pub fn total_size(&self) -> Result<u64> { in total_size() argument 198 fn block_size(&mut self) -> u64 { in block_size() argument 203 fn num_blocks(&mut self) -> u64 { in num_blocks() argument 211 fn alignment(&mut self) -> u64 { in alignment() argument 229 blk_offset: u64, in read_blocks() argument 247 blk_offset: u64, in write_blocks() argument 256 block_size: u64, [all …]
|
D | testlib.rs | 28 static TIMESTAMP: RefCell<u64> = RefCell::new(Default::default()); 30 static NUM_TIMESTAMP_PAUSER: RefCell<u64> = RefCell::new(Default::default()); 39 pub fn query_timestamp() -> u64 { in query_timestamp() 68 Pending(u64, u64, &'static mut [u8], bool), 75 pub block_size: u64, 77 pub alignment: u64, 89 pub fn new(block_size: u64, alignment: u64, data: Vec<u8>) -> Self { in new() argument 104 fn read_blocks(&mut self, blk_offset: u64, out: &mut [u8]) -> Result<(), BlockIoError> { in read_blocks() argument 109 fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), BlockIoError> { in write_blocks() argument 127 num_blocks: u64::try_from(self.storage.len()).unwrap() / self.block_size, in info() [all …]
|
D | gpt.rs | 29 pub magic: u64, 34 pub current: u64, 35 pub backup: u64, 36 pub first: u64, 37 pub last: u64, 39 pub entries: u64, 64 pub first: u64, 65 pub last: u64, 66 pub flags: u64, 72 pub fn blocks(&self) -> Result<u64> { in blocks() argument [all …]
|
D | multi_blocks.rs | 23 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument 30 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64) -> bool, in for_each_until() 40 fn get(&mut self, id: u64) -> Result<SelectedBlockDevice> in get() 50 fn sync_gpt_all(&mut self, f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64, StorageError)) { in sync_gpt_all() argument 63 fn check_part(&mut self, part: &str) -> Result<(u64, Partition)> { in check_part() argument 86 fn read_gpt_partition(&mut self, part_name: &str, offset: u64, out: &mut [u8]) -> Result<()> { in read_gpt_partition() argument 94 fn write_gpt_partition(&mut self, part_name: &str, offset: u64, data: &mut [u8]) -> Result<()> { in write_gpt_partition() argument 103 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument 112 F: FnMut(&mut dyn AsBlockDevice, u64) -> Result<R>, in until_ok() 123 fn with_id<F, R>(devs: &mut (impl AsMultiBlockDevices + ?Sized), dev_id: u64, mut f: F) -> Result<R> in with_id() argument [all …]
|
D | non_blocking.rs | 74 blk_offset: u64, in write_blocks() argument 100 blk_offset: u64, in read_blocks() argument 139 blk_offset: u64, in read_blocks() argument 159 blk_offset: u64, in write_blocks() argument 449 dst_offset: u64, in write() argument 486 dst_offset: u64, in read() argument 535 offset: u64, in write_scoped() argument 548 offset: u64, in read_scoped() argument 558 pub fn write_blocking(&mut self, offset: u64, data: &mut [u8]) -> Result<()> { in write_blocking() argument 563 pub fn read_blocking(&mut self, offset: u64, out: &mut [u8]) -> Result<()> { in read_blocking() argument [all …]
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | mod.rs | 37 blk_id: u64, 39 window_start: u64, 41 window_size: u64, 59 fn check_range(&self, rw_off: u64, rw_size: usize) -> Result<u64, CommandError> { in check_range() argument 60 if add(rw_off, u64::try_from(rw_size)?)? > self.part.window_size { in check_range() 67 pub fn read(&mut self, offset: u64, out: &mut [u8]) -> Result<(), CommandError> { in read() argument 77 pub fn write(&mut self, offset: u64, data: &mut [u8]) -> Result<(), CommandError> { in write() argument 87 pub fn size(&mut self) -> u64 { in size() argument 218 offset: u64, in fetch() argument 219 size: u64, in fetch() argument [all …]
|
D | sparse.rs | 138 pub fn write_sparse_image<F>(sparse_img: &mut [u8], mut write: F) -> Result<u64, CommandError> in write_sparse_image() argument 140 F: FnMut(u64, &mut [u8]) -> Result<(), CommandError>, in write_sparse_image() argument 211 fn get(&mut self, val: u32, size: u64) -> Result<&mut [u8], CommandError> { in get() 262 fn to_u64<T: TryInto<u64>>(val: T) -> Result<u64, CommandError> { in to_u64() argument 267 fn u64_add<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_add() argument 272 fn u64_mul<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_mul() argument
|
D | vars.rs | 107 let sz: u64 = ptn.size()?; in get_all()
|
/bootable/libbootloader/gbl/efi/src/ |
D | utils.rs | 69 block_size: self.0.media().unwrap().block_size as u64, in info() 70 num_blocks: (self.0.media().unwrap().last_block + 1) as u64, in info() 71 alignment: core::cmp::max(1, self.0.media().unwrap().io_align as u64), in info() 77 blk_offset: u64, in read_blocks() argument 87 blk_offset: u64, in write_blocks() argument 102 const MAX_GPT_ENTRIES: u64 = 128; 114 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with() argument 124 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument 127 f(ele, u64::try_from(idx).unwrap()); in for_each() 217 pub fn ms_to_100ns(ms: u64) -> Result<u64> { in ms_to_100ns() argument [all …]
|
D | avb.rs | 54 let partition_size: u64 = self in read_from_partition() 61 let read_off: u64 = match offset < 0 { in read_from_partition() 63 partition_size.checked_sub(offset.abs() as u64).ok_or(IoError::InvalidValueSize)? in read_from_partition() 91 fn read_rollback_index(&mut self, _rollback_index_location: usize) -> IoResult<u64> { in read_rollback_index() argument 99 _index: u64, in write_rollback_index() argument 117 fn get_size_of_partition(&mut self, partition: &CStr) -> IoResult<u64> { in get_size_of_partition() argument
|
D | net.rs | 47 const NETWORK_TIMESTAMP_UPDATE_PERIOD: u64 = 50; 262 fn timestamp() -> u64 { in timestamp() 354 pub fn receive_exact(&mut self, out: &mut [u8], timeout: u64) -> Result<()> { in receive_exact() 378 pub fn send_exact(&mut self, data: &[u8], timeout: u64) -> Result<()> { in send_exact() 408 pub fn timestamp(base: u64) -> u64 { in timestamp() argument 412 true => u64::MAX - (base - curr), in timestamp()
|
D | fuchsia_boot.rs | 31 pub entry: u64, 32 pub reserve_memory_size: u64,
|
D | android_boot.rs | 282 let ramdisk_addr: u64 = (ramdisk_load_buffer.as_ptr() as usize).try_into().unwrap(); in load_android_simple() 283 let ramdisk_end: u64 = ramdisk_addr + u64::try_from(ramdisk_load_buffer.len()).unwrap(); in load_android_simple()
|
D | fastboot.rs | 33 const DEFAULT_TIMEOUT_MS: u64 = 5_000;
|
/bootable/libbootloader/gbl/libgbl/tests/ |
D | integration_tests.rs | 24 max_gpt_entries: u64, 39 alignment: u64, in add_block_device() argument 40 block_size: u64, in add_block_device() argument 41 max_gpt_entries: u64, in add_block_device() argument 54 f: &mut dyn FnMut(&mut dyn BlockIo, u64, u64), in visit_block_devices() argument
|
/bootable/libbootloader/gbl/libsafemath/src/ |
D | lib.rs | 147 pub type Primitive = u64; 163 pub const MAX: SafeNum = SafeNum(Ok(u64::MAX)); 164 pub const MIN: SafeNum = SafeNum(Ok(u64::MIN)); 266 conversion_func!(u64); 324 assert!(u64::try_from(poison).is_err()); in test_addition_poison() 337 assert!(u64::try_from(poison).is_err()); in test_subtraction_poison() 350 assert!(u64::try_from(poison).is_err()); in test_multiplication_poison() 363 assert!(u64::try_from(poison).is_err()); in test_division_poison() 376 assert!(u64::try_from(poison).is_err()); in test_remainder_poison() 416 conversion_test!(u64); [all …]
|
/bootable/libbootloader/gbl/libgbl/src/ |
D | ops.rs | 78 f: &mut dyn FnMut(&mut dyn BlockIo, u64, u64), in visit_block_devices() argument 169 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument 201 f: &mut dyn FnMut(&mut dyn BlockIo, u64, u64), in visit_block_devices() argument
|
D | lib.rs | 610 fn read_rollback_index(&mut self, _: usize) -> AvbIoResult<u64> { in read_rollback_index() argument 613 fn write_rollback_index(&mut self, _: usize, _: u64) -> AvbIoResult<()> { in write_rollback_index() 623 fn get_size_of_partition(&mut self, partition: &CStr) -> AvbIoResult<u64> { in get_size_of_partition() argument
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | block_io.rs | 35 pub fn read_blocks(&self, lba: u64, buffer: &mut [u8]) -> EfiResult<()> { in read_blocks() argument 54 pub fn write_blocks(&self, lba: u64, buffer: &mut [u8]) -> EfiResult<()> { in write_blocks() argument
|
D | riscv.rs | 43 pub fn revision(&self) -> EfiResult<u64> { in revision() argument
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 147 let packet_size: usize = u64::from_be_bytes(length_prefix) in receive_packet() 161 &mut u64::try_from(packet.len()) in send_packet() 330 offset: u64, in fetch() argument 331 size: u64, in fetch() argument 476 remaining: &'a mut u64, 483 pub fn start(self, data_size: u64) -> Result<Uploader<'a>, CommandError> { in start() 494 remaining: &'a mut u64, 966 pub(crate) fn hex_to_u64(s: &str) -> Result<u64, CommandError> { in hex_to_u64() argument 967 Ok(u64::from_str_radix(s.strip_prefix("0x").unwrap_or(s), 16)?) in hex_to_u64() 997 default: Result<u64, CommandError>, in next_arg_u64() argument [all …]
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | partition.rs | 62 pub partition_offset: u64, 111 partition_offset: u64, in deserialize() argument
|
/bootable/libbootloader/gbl/third_party/libzbi/src/ |
D | zbi_format.rs | 33 pub entry: u64, 34 pub reserve_memory_size: u64,
|
/bootable/libbootloader/gbl/libboot/src/ |
D | aarch64.rs | 31 let mut el: u64; in current_el()
|
/bootable/libbootloader/gbl/libavb/src/ |
D | lib.rs | 85 pub extern "C" fn avb_div_by_10(dividend: *mut u64) -> u32 { in avb_div_by_10()
|