Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Virtualization/libs/idsig/src/
Dhashtree.rs35 input_size: usize, in from()
37 block_size: usize, in from()
69 input_size: usize, in generate_hash_tree()
71 block_size: usize, in generate_hash_tree()
119 block_size: usize, in hash_one_block()
133 fn calc_hash_levels(input_size: usize, block_size: usize, digest_size: usize) -> Vec<Range> { in calc_hash_levels()
172 fn round_to_multiple(n: usize, unit: usize) -> usize { in round_to_multiple()
Dapksigv4.rs167 block_size: usize, in create()
/packages/modules/Virtualization/authfs/src/fsverity/
Deditor.rs92 pub fn get_fsverity_digest_size(&self) -> usize { in get_fsverity_digest_size()
106 ) -> io::Result<usize> { in read_backing_chunk_unverified()
115 ) -> io::Result<usize> { in read_backing_chunk_verified()
135 offset_from_alignment: usize, in new_hash_for_incomplete_write()
136 output_chunk_index: usize, in new_hash_for_incomplete_write()
166 offset_from_alignment: usize, in new_chunk_hash()
167 current_size: usize, in new_chunk_hash()
168 output_chunk_index: usize, in new_chunk_hash()
193 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at()
292 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
[all …]
Dbuilder.rs64 pub fn resize(&mut self, new_file_size: usize) { in resize()
73 pub fn update_hash(&mut self, index: usize, hash: &Sha256Hash, size_at_least: u64) { in update_hash()
93 pub fn is_consistent(&self, index: usize, hash: &Sha256Hash) -> bool { in is_consistent()
Dverifier.rs76 ) -> Result<impl Iterator<Item = Result<([u8; 4096], usize), FsverityError>> + '_, FsverityError> { in fsverity_walk() argument
149 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
188 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
208 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
/packages/modules/Virtualization/authfs/src/
Dcommon.rs33 pub fn new(remaining: usize, offset: u64, alignment: usize) -> Self { in new()
60 fn collect_chunk_read_iter(remaining: usize, offset: u64) -> Vec<(u64, usize)> { in collect_chunk_read_iter() argument
Dfile.rs50 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize>; in read_chunk()
61 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize>; in write_at()
114 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
Dfusefs.rs468 ) -> io::Result<usize> { in read_chunks()
712 ) -> io::Result<usize> { in read()
745 ) -> io::Result<usize> { in write()
/packages/modules/Virtualization/authfs/fd_server/src/
Dfsverity.rs42 fn read_metadata(fd: i32, metadata_type: u64, offset: u64, buf: &mut [u8]) -> io::Result<usize> { in read_metadata()
55 pub fn read_merkle_tree(fd: i32, offset: u64, buf: &mut [u8]) -> io::Result<usize> { in read_merkle_tree()
60 pub fn read_signature(fd: i32, buf: &mut [u8]) -> io::Result<usize> { in read_signature()
Daidl.rs389 fn read_into_buf(file: &File, max_size: usize, offset: u64) -> io::Result<Vec<u8>> { in read_into_buf()
412 fn validate_and_cast_size(size: i32) -> Result<usize, Status> { in validate_and_cast_size()
/packages/modules/Virtualization/authfs/src/file/
Dremote_file.rs30 ) -> io::Result<usize> { in remote_read_chunk()
77 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
94 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
120 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at()
141 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
/packages/modules/Bluetooth/system/gd/rust/stack/src/link/acl/
Dfragment.rs80 fn get_l2cap_pdu_size(first_packet: &Bytes) -> usize { in get_l2cap_pdu_size()
92 mtu: usize, in fragmenting_stream()
/packages/modules/Bluetooth/tools/pdl/src/
Dlint.rs134 fn bit_width(val: usize) -> usize { in bit_width()
627 fn lint_enum(tags: &[Tag], width: usize, result: &mut LintDiagnostics) { in lint_enum()
728 _width: usize, in lint_size()
846 _width: usize, in lint_count()
907 width: &Option<usize>, in lint_fixed()
908 value: &Option<usize>, in lint_fixed()
972 _width: &Option<usize>, in lint_array()
975 _size: &Option<usize>, in lint_array()
Dparser.rs148 fn as_usize(&self) -> Result<usize, String>; in as_usize()
169 fn as_usize(&self) -> Result<usize, String> { in as_usize()
206 fn parse_integer(iter: &mut NodeIterator<'_>) -> Result<usize, String> { in parse_integer()
214 fn parse_integer_opt(iter: &mut NodeIterator<'_>) -> Result<Option<usize>, String> { in parse_integer_opt()
220 ) -> Result<(Option<String>, Option<usize>), String> { in parse_identifier_or_integer()
Dast.rs177 pub fn new(offset: usize, line_starts: &[usize]) -> SourceLocation { in new()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Deditor.rs32 pos: usize, in complete()
34 ) -> Result<(usize, Vec<String>), ReadlineError> { in complete()
Dcommand_handler.rs51 fn enforce_arg_len<F>(args: &Vec<String>, min_len: usize, msg: &str, mut action: F) in enforce_arg_len()
62 fn wrap_help_text(text: &str, max: usize, indent: usize) -> String { in wrap_help_text()
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/
Dffi.rs121 len: usize, in link_manager_ingest_hci()
150 len: usize,
Dec.rs68 pub fn size(&self) -> usize { in size()
/packages/modules/Virtualization/authfs/src/fsverity/metadata/
Dmetadata.rs55 pub fn read_merkle_tree(&self, offset: u64, buf: &mut [u8]) -> io::Result<usize> { in read_merkle_tree()
/packages/modules/Virtualization/authfs/src/fusefs/
Dfile.rs124 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
/packages/modules/DnsResolver/tests/doh/src/
Dclient.rs305 pub fn len(&mut self) -> usize { in len()
/packages/modules/Bluetooth/tools/rootcanal/lmp/src/procedure/
Dsecure_simple_pairing.rs731 fn assert_max_size<T>(_value: T, limit: usize) { in initiate_size()
/packages/modules/Virtualization/zipfuse/src/
Dmain.rs292 ) -> io::Result<usize> { in read()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/profiles/
Dgatt.rs228 adv_data_len: usize, in gdscan_on_scan_result()
237 data_len: usize, in gdscan_on_batch_scan_reports()
273 len: usize, in gdscan_sync_report_callback()

12