Home
last modified time | relevance | path

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

123456

/packages/modules/Virtualization/pvmfw/src/
Dhelpers.rs65 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()
Dheap.rs49 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()
Dentry.rs83 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()
Dconfig.rs115 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()
Dgpt.rs70 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()
Drand.rs100 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/
Dhashtree.rs33 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/
Dops.rs134 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 …]
Dutils.rs50 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()
Ddescriptor.rs77 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/
Deditor.rs85 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 …]
Dbuilder.rs76 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/
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.rs42 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/
Dapi.rs168 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/
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/rust/src/gatt/server/transactions/
Dfind_information_request.rs19 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()
Dread_request.rs13 mtu: usize, in handle_read_request()
63 mtu: usize, in do_read_request_with_handle_and_mtu()
/packages/modules/Virtualization/vmbase/src/
Dbionic.rs116 extern "C" fn fwrite(ptr: *const c_void, size: usize, nmemb: usize, stream: usize) -> usize { in fwrite()
/packages/modules/Bluetooth/tools/pdl/tests/generated/
Dpacket_decl_array_unknown_element_width_dynamic_size_big_endian.rs100 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()
Dpacket_decl_array_unknown_element_width_dynamic_size_little_endian.rs100 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()
Dpacket_decl_array_unknown_element_width_dynamic_count_little_endian.rs100 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()
Dpacket_decl_array_unknown_element_width_dynamic_count_big_endian.rs100 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/
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/backends/rust_no_allocation/
Dpreamble.rs140 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()

123456