Home
last modified time | relevance | path

Searched defs:u64 (Results 1 – 18 of 18) sorted by relevance

/bootable/libbootloader/gbl/libstorage/src/
Dlib.rs178 pub fn total_size(&self) -> Result<u64> { in total_size()
198 fn block_size(&mut self) -> u64 { in block_size()
203 fn num_blocks(&mut self) -> u64 { in num_blocks()
211 fn alignment(&mut self) -> u64 { in alignment()
229 blk_offset: u64, in read_blocks()
247 blk_offset: u64, in write_blocks()
266 pub fn size(&self) -> Result<u64> { in size()
273 pub fn block_size(&self) -> u64 { in block_size()
343 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)); in with() argument
346 fn block_size(&mut self) -> Result<u64> { in block_size()
[all …]
Dmulti_blocks.rs23 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument
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()
86 fn read_gpt_partition(&mut self, part_name: &str, offset: u64, out: &mut [u8]) -> Result<()> { in read_gpt_partition()
94 fn write_gpt_partition(&mut self, part_name: &str, offset: u64, data: &mut [u8]) -> Result<()> { in write_gpt_partition()
103 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument
123 fn with_id<F, R>(devs: &mut (impl AsMultiBlockDevices + ?Sized), dev_id: u64, mut f: F) -> Result<R> in with_id()
141 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with() argument
237 off: u64, in check_read_partition()
274 off: u64, in check_write_partition()
Dnon_blocking.rs74 blk_offset: u64, in write_blocks()
100 blk_offset: u64, in read_blocks()
139 blk_offset: u64, in read_blocks()
159 blk_offset: u64, in write_blocks()
449 dst_offset: u64, in write()
486 dst_offset: u64, in read()
535 offset: u64, in write_scoped()
548 offset: u64, in read_scoped()
558 pub fn write_blocking(&mut self, offset: u64, data: &mut [u8]) -> Result<()> { in write_blocking()
563 pub fn read_blocking(&mut self, offset: u64, out: &mut [u8]) -> Result<()> { in read_blocking()
[all …]
Dtestlib.rs89 pub fn new(block_size: u64, alignment: u64, data: Vec<u8>) -> Self { in new()
104 fn read_blocks(&mut self, blk_offset: u64, out: &mut [u8]) -> Result<(), BlockIoError> { in read_blocks()
109 fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), BlockIoError> { in write_blocks()
134 blk_offset: u64, in write_blocks()
154 blk_offset: u64, in read_blocks()
230 fn with(&mut self, f: &mut dyn FnMut(&mut dyn BlockIo, &mut [u8], u64)) { in with() argument
543 f: &mut dyn FnMut(&mut dyn AsBlockDevice, u64), in for_each() argument
Dgpt.rs72 pub fn blocks(&self) -> Result<u64> { in blocks()
147 fn num_valid_entries(&self) -> Result<u64> { in num_valid_entries()
174 pub(crate) fn new_from_buffer(max_entries: u64, buffer: &'a mut [u8]) -> Result<Gpt<'a>> { in new_from_buffer()
397 offset: u64, in check_gpt_rw_params()
399 ) -> Result<u64> { in check_gpt_rw_params()
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dmod.rs59 fn check_range(&self, rw_off: u64, rw_size: usize) -> Result<u64, CommandError> { in check_range()
67 pub fn read(&mut self, offset: u64, out: &mut [u8]) -> Result<(), CommandError> { in read()
77 pub fn write(&mut self, offset: u64, data: &mut [u8]) -> Result<(), CommandError> { in write()
87 pub fn size(&mut self) -> u64 { in size()
218 offset: u64, in fetch()
219 size: u64, in fetch()
256 fn add(lhs: u64, rhs: u64) -> Result<u64, CommandError> { in add()
261 fn sub(lhs: u64, rhs: u64) -> Result<u64, CommandError> { in sub()
362 off: u64, in fetch()
363 size: u64, in fetch()
[all …]
Dsparse.rs138 pub fn write_sparse_image<F>(sparse_img: &mut [u8], mut write: F) -> Result<u64, CommandError> in write_sparse_image()
140 F: FnMut(u64, &mut [u8]) -> Result<(), CommandError>, in write_sparse_image()
262 fn to_u64<T: TryInto<u64>>(val: T) -> Result<u64, CommandError> { in to_u64()
267 fn u64_add<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_add()
272 fn u64_mul<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_mul()
/bootable/libbootloader/gbl/libgbl/tests/
Dintegration_tests.rs39 alignment: u64, in add_block_device()
40 block_size: u64, in add_block_device()
41 max_gpt_entries: u64, in add_block_device()
54 f: &mut dyn FnMut(&mut dyn BlockIo, u64, u64), in visit_block_devices() argument
/bootable/libbootloader/gbl/efi/src/
Dutils.rs77 blk_offset: u64, in read_blocks()
87 blk_offset: u64, in write_blocks()
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
217 pub fn ms_to_100ns(ms: u64) -> Result<u64> { in ms_to_100ns()
227 pub fn loop_with_timeout<F, R>(efi_entry: &EfiEntry, timeout_ms: u64, mut f: F) -> Result<Option<R>> in loop_with_timeout()
Davb.rs91 fn read_rollback_index(&mut self, _rollback_index_location: usize) -> IoResult<u64> { in read_rollback_index()
99 _index: u64, in write_rollback_index()
117 fn get_size_of_partition(&mut self, partition: &CStr) -> IoResult<u64> { in get_size_of_partition()
Dnet.rs408 pub fn timestamp(base: u64) -> u64 { in timestamp()
/bootable/libbootloader/gbl/libefi/src/protocol/
Dblock_io.rs35 pub fn read_blocks(&self, lba: u64, buffer: &mut [u8]) -> EfiResult<()> { in read_blocks()
54 pub fn write_blocks(&self, lba: u64, buffer: &mut [u8]) -> EfiResult<()> { in write_blocks()
Driscv.rs43 pub fn revision(&self) -> EfiResult<u64> { in revision()
/bootable/libbootloader/gbl/libgbl/src/
Dops.rs78 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
Dlib.rs610 fn read_rollback_index(&mut self, _: usize) -> AvbIoResult<u64> { in read_rollback_index()
623 fn get_size_of_partition(&mut self, partition: &CStr) -> AvbIoResult<u64> { in get_size_of_partition()
/bootable/libbootloader/gbl/libgbl/src/slots/
Dpartition.rs111 partition_offset: u64, in deserialize()
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs330 offset: u64, in fetch()
331 size: u64, in fetch()
966 pub(crate) fn hex_to_u64(s: &str) -> Result<u64, CommandError> { in hex_to_u64()
997 default: Result<u64, CommandError>, in next_arg_u64()
998 ) -> Result<u64, CommandError> { in next_arg_u64()
1076 offset: u64, in fetch()
1077 size: u64, in fetch()
/bootable/libbootloader/gbl/libefi/src/
Dlib.rs472 trigger_time: u64, in set_timer()