| /packages/modules/Virtualization/pvmfw/src/ |
| D | helpers.rs | 65 pub const fn unchecked_align_down(addr: usize, alignment: usize) -> usize { in unchecked_align_down() 72 pub const fn unchecked_align_up(addr: usize, alignment: usize) -> usize { in unchecked_align_up() 77 pub const fn align_up(addr: usize, alignment: usize) -> Option<usize> { in align_up() 90 pub const fn ceiling_div(num: usize, den: usize) -> Option<usize> { in ceiling_div() 102 pub const fn align_down(addr: usize, alignment: usize) -> Option<usize> { in align_down() 111 pub const fn page_4kb_of(addr: usize) -> usize { in page_4kb_of() 130 pub fn flush_region(start: usize, size: usize) { in flush_region()
|
| D | heap.rs | 49 pub fn aligned_boxed_slice(size: usize, align: usize) -> Option<Box<[u8]>> { in aligned_boxed_slice() 67 unsafe extern "C" fn calloc(nmemb: usize, size: usize) -> *mut c_void { in calloc() 103 fn allocate(size: usize, zeroed: bool) -> Option<NonNull<usize>> { in allocate() 130 const fn const_max_size(a: usize, b: usize) -> usize { in const_max_size()
|
| D | entry.rs | 83 fdt: usize, in new() 84 kernel: usize, in new() 85 kernel_size: usize, in new() 182 fdt: usize, in main_wrapper() 183 payload: usize, in main_wrapper() 184 payload_size: usize, in main_wrapper() 185 ) -> Result<(usize, Range<usize>), RebootReason> { in main_wrapper() 280 fn jump_to_payload(fdt_address: u64, payload_start: u64, bcc: Range<usize>) -> ! { in jump_to_payload()
|
| D | config.rs | 115 pub fn total_size(&self) -> usize { in total_size() 119 pub fn body_size(&self) -> usize { in body_size() 123 fn get_body_range(&self, entry: Entry) -> Result<Option<Range<usize>>> { in get_body_range() 142 offset: usize, in _get_body_range() 143 size: usize, in _get_body_range() 144 ) -> result::Result<Option<Range<usize>>, EntryError> { in _get_body_range()
|
| D | gpt.rs | 70 pub fn indices(&self) -> RangeInclusive<usize> { in indices() 74 pub fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block() 79 pub fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block() 84 fn block_index(&self, index: usize) -> Option<usize> { in block_index() 142 fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block() 146 fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block()
|
| D | rand.rs | 100 extern "C" fn CRYPTO_sysrand_for_seed(out: *mut u8, req: usize) { in CRYPTO_sysrand_for_seed() 105 extern "C" fn CRYPTO_sysrand(out: *mut u8, req: usize) { in CRYPTO_sysrand()
|
| /packages/modules/Virtualization/libs/apkverify/src/ |
| D | hashtree.rs | 33 input_size: usize, in from() 35 block_size: usize, in from() 67 input_size: usize, in generate_hash_tree() 69 block_size: usize, in generate_hash_tree() 117 block_size: usize, in hash_one_block() 131 fn calc_hash_levels(input_size: usize, block_size: usize, digest_size: usize) -> Vec<Range> { in calc_hash_levels() 170 fn round_to_multiple(n: usize, unit: usize) -> usize { in round_to_multiple()
|
| /packages/modules/Virtualization/pvmfw/avb/src/ |
| D | ops.rs | 134 num_bytes: usize, in get_preloaded_partition() 136 out_num_bytes_preloaded: *mut usize, in get_preloaded_partition() 150 num_bytes: usize, in try_get_preloaded_partition() 152 out_num_bytes_preloaded: *mut usize, in try_get_preloaded_partition() 164 num_bytes: usize, in read_from_partition() 166 out_num_read: *mut usize, in read_from_partition() 182 num_bytes: usize, in try_read_from_partition() 184 out_num_read: *mut usize, in try_read_from_partition() 203 fn to_copy_start(offset: i64, len: usize) -> Option<usize> { in to_copy_start() 231 _rollback_index_location: usize, in read_rollback_index() [all …]
|
| D | utils.rs | 50 pub(crate) fn to_usize<T: TryInto<usize>>(num: T) -> Result<usize> { in to_usize() 54 pub(crate) fn usize_checked_add(x: usize, y: usize) -> Result<usize> { in usize_checked_add()
|
| D | descriptor.rs | 77 pub(crate) fn len(&self) -> usize { in len() 180 fn len(&self) -> utils::Result<usize> { in len() 187 fn partition_name_end(&self) -> utils::Result<usize> { in partition_name_end() 191 fn partition_name_range(&self) -> utils::Result<Range<usize>> { in partition_name_range() 196 fn digest_range(&self) -> utils::Result<Range<usize>> { in digest_range()
|
| /packages/modules/Virtualization/authfs/src/fsverity/ |
| D | editor.rs | 85 pub fn get_fsverity_digest_size(&self) -> usize { in get_fsverity_digest_size() 99 ) -> io::Result<usize> { in read_backing_chunk_unverified() 108 ) -> io::Result<usize> { in read_backing_chunk_verified() 128 offset_from_alignment: usize, in new_hash_for_incomplete_write() 129 output_chunk_index: usize, in new_hash_for_incomplete_write() 159 offset_from_alignment: usize, in new_chunk_hash() 160 current_size: usize, in new_chunk_hash() 161 output_chunk_index: usize, in new_chunk_hash() 186 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> { in write_at() 285 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() [all …]
|
| D | builder.rs | 76 pub fn resize(&mut self, new_file_size: usize) { in resize() 85 pub fn update_hash(&mut self, index: usize, hash: &Sha256Hash, size_at_least: u64) { in update_hash() 105 pub fn is_consistent(&self, index: usize, hash: &Sha256Hash) -> bool { in is_consistent()
|
| /packages/modules/Virtualization/authfs/src/ |
| D | common.rs | 33 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
|
| D | file.rs | 42 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize>; in read_chunk() 53 fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize>; in write_at() 106 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
|
| /packages/modules/Virtualization/vm_payload/src/ |
| D | api.rs | 168 identifier_size: usize, in AVmPayload_getVmInstanceSecret() 170 size: usize, in AVmPayload_getVmInstanceSecret() 209 pub unsafe extern "C" fn AVmPayload_getDiceAttestationChain(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationChain() 238 pub unsafe extern "C" fn AVmPayload_getDiceAttestationCdi(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationCdi()
|
| /packages/modules/Virtualization/authfs/src/file/ |
| D | remote_file.rs | 30 ) -> 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/rust/src/gatt/server/transactions/ |
| D | find_information_request.rs | 19 mtu: usize, in handle_find_information_request() 61 mtu: usize, in handle_find_information_request_short() 86 mtu: usize, in handle_find_information_request_long()
|
| D | read_request.rs | 13 mtu: usize, in handle_read_request() 63 mtu: usize, in do_read_request_with_handle_and_mtu()
|
| /packages/modules/Virtualization/vmbase/src/ |
| D | bionic.rs | 116 extern "C" fn fwrite(ptr: *const c_void, size: usize, nmemb: usize, stream: usize) -> usize { in fwrite()
|
| /packages/modules/Bluetooth/tools/pdl/tests/generated/ |
| D | packet_decl_array_unknown_element_width_dynamic_size_big_endian.rs | 100 fn get_total_size(&self) -> usize { in get_total_size() 103 fn get_size(&self) -> usize { in get_size() 168 fn get_total_size(&self) -> usize { in get_total_size() 171 fn get_size(&self) -> usize { in get_size() 214 pub fn get_size(&self) -> usize { in get_size()
|
| D | packet_decl_array_unknown_element_width_dynamic_size_little_endian.rs | 100 fn get_total_size(&self) -> usize { in get_total_size() 103 fn get_size(&self) -> usize { in get_size() 168 fn get_total_size(&self) -> usize { in get_total_size() 171 fn get_size(&self) -> usize { in get_size() 214 pub fn get_size(&self) -> usize { in get_size()
|
| D | packet_decl_array_unknown_element_width_dynamic_count_little_endian.rs | 100 fn get_total_size(&self) -> usize { in get_total_size() 103 fn get_size(&self) -> usize { in get_size() 160 fn get_total_size(&self) -> usize { in get_total_size() 163 fn get_size(&self) -> usize { in get_size() 206 pub fn get_size(&self) -> usize { in get_size()
|
| D | packet_decl_array_unknown_element_width_dynamic_count_big_endian.rs | 100 fn get_total_size(&self) -> usize { in get_total_size() 103 fn get_size(&self) -> usize { in get_size() 160 fn get_total_size(&self) -> usize { in get_total_size() 163 fn get_size(&self) -> usize { in get_size() 206 pub fn get_size(&self) -> usize { in get_size()
|
| /packages/modules/Bluetooth/system/gd/rust/stack/src/link/acl/ |
| D | fragment.rs | 80 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/backends/rust_no_allocation/ |
| D | preamble.rs | 140 pub fn get_size_in_bits(&self) -> usize { in get_size_in_bits() 182 num_bits: usize, in write_bits() 190 fn size_in_bits(&self) -> Result<usize, SerializeError> { in size_in_bits() 219 fn size(self) -> usize { in size() 227 num_bits: usize, in write_bits() 257 num_bits: usize, in write_bits()
|