Home
last modified time | relevance | path

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

12345

/packages/modules/Virtualization/libs/libvmbase/src/
Dutil.rs23 pub const fn unchecked_align_down(addr: usize, alignment: usize) -> usize { in unchecked_align_down()
30 pub const fn unchecked_align_up(addr: usize, alignment: usize) -> usize { in unchecked_align_up()
35 pub const fn align_up(addr: usize, alignment: usize) -> Option<usize> { in align_up()
49 const fn align_down(addr: usize, alignment: usize) -> Option<usize> { in align_down()
60 pub const fn ceiling_div(num: usize, den: usize) -> Option<usize> { in ceiling_div()
Dheap.rs104 pub fn aligned_boxed_slice(size: usize, align: usize) -> Option<Box<[u8]>> { in aligned_boxed_slice()
122 unsafe extern "C" fn calloc(nmemb: usize, size: usize) -> *mut c_void { in calloc()
131 len: usize, in __memset_chk()
132 destlen: usize, in __memset_chk()
170 fn allocate(size: usize, zeroed: bool) -> Option<NonNull<usize>> { in allocate()
197 const fn const_max_size(a: usize, b: usize) -> usize { in const_max_size()
Darch.rs43 pub(crate) fn flush_region(start: usize, size: usize) { in flush_region()
/packages/modules/Virtualization/libs/libvm_payload/src/
Dlib.rs182 identifier_size: usize, in AVmPayload_getVmInstanceSecret()
184 size: usize, in AVmPayload_getVmInstanceSecret()
223 pub unsafe extern "C" fn AVmPayload_getDiceAttestationChain(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationChain()
252 pub unsafe extern "C" fn AVmPayload_getDiceAttestationCdi(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationCdi()
285 challenge_size: usize, in AVmPayload_requestAttestation()
312 challenge_size: usize, in AVmPayload_requestAttestationForTesting()
338 challenge_size: usize, in request_attestation()
410 size: usize, in AVmAttestationResult_getPrivateKey()
411 ) -> usize { in AVmAttestationResult_getPrivateKey()
448 message_size: usize, in AVmAttestationResult_sign()
[all …]
/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/libs/libhypervisor_backends/src/
Dmem.rs22 pub const fn unchecked_align_down(addr: usize, alignment: usize) -> usize { in unchecked_align_down()
28 pub const fn page_4kb_of(addr: usize) -> usize { in page_4kb_of()
/packages/modules/Virtualization/guest/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/guest/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/guest/pvmfw/src/
Dconfig.rs92 pub fn total_size(&self) -> usize { in total_size()
96 pub fn body_lowest_bound(&self) -> Result<usize> { in body_lowest_bound()
108 pub fn entry_count(&self) -> Result<usize> { in entry_count()
180 pub fn new(start: usize, size: usize) -> Option<Self> { in new()
187 fn end(&self) -> usize { in end()
191 fn len(&self) -> usize { in len()
195 fn as_range(&self) -> Range<usize> { in as_range()
Dentry.rs112 fdt: usize, in main_wrapper()
113 payload: usize, in main_wrapper()
114 payload_size: usize, in main_wrapper()
Dgpt.rs73 pub fn indices(&self) -> RangeInclusive<usize> { in indices()
77 pub fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block()
82 pub fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block()
87 fn block_index(&self, index: usize) -> Option<usize> { in block_index()
147 fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block()
151 fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block()
Dmemory.rs38 pub fn new(fdt: usize, kernel: usize, kernel_size: usize) -> Result<Self, RebootReason> { in new()
/packages/modules/Virtualization/guest/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.rs10 mtu: usize, in handle_find_information_request()
44 mtu: usize, in handle_find_information_request_short()
68 mtu: usize, in handle_find_information_request_long()
Dread_request.rs7 mtu: usize, in handle_read_request()
50 mtu: usize, in do_read_request_with_handle_and_mtu()
/packages/modules/Virtualization/libs/dice/open_dice/src/
Dops.rs203 ) -> Result<usize> {
239 ) -> Result<usize> {
280 ) -> Result<usize> { in sign_cose_sign1_with_cdi_leaf_priv()
293 ) -> Result<usize> { in sign_cose_sign1_with_cdi_leaf_priv_multialg()
366 ) -> Result<usize> {
/packages/modules/Virtualization/libs/libhypervisor_backends/src/hypervisor/
Dcommon.rs39 fn get_granule_size(&self) -> Option<usize> { in get_granule_size()
58 fn granule(&self) -> Result<usize>; in granule()
73 fn granule(&self) -> Result<usize>; in granule()
/packages/modules/Bluetooth/offload/leaudio/hci/
Darbiter.rs46 pub fn new(sink: Arc<dyn Module>, max_buf_len: usize, max_buf_count: usize) -> Self { in new()
56 pub fn max_buf_len(&self) -> usize { in max_buf_len()
88 pub fn set_completed(&self, handle: u16, num: usize) { in set_completed()
112 max_buf_count: usize, in thread_loop()
/packages/modules/Virtualization/libs/libvmbase/src/arch/aarch64/
Ddbm.rs57 _level: usize, in flush_dirty_range()
72 _level: usize, in mark_dirty_block()
/packages/modules/Virtualization/libs/libvmbase/src/memory/
Dtracker.rs129 pub fn map_data(addr: usize, size: NonZeroUsize) -> Result<()> { in map_data()
141 pub fn map_data_noflush(addr: usize, size: NonZeroUsize) -> Result<()> { in map_data_noflush()
161 pub fn map_rodata(addr: usize, size: NonZeroUsize) -> Result<()> { in map_rodata()
174 pub unsafe fn map_rodata_outside_main_memory(addr: usize, size: NonZeroUsize) -> Result<()> { in map_rodata_outside_main_memory()
186 pub fn map_device(addr: usize, size: NonZeroUsize) -> Result<()> { in map_device()
335 fn alloc(&mut self, base: usize, size: NonZeroUsize) -> Result<MemoryRange> { in alloc()
340 fn alloc_mut(&mut self, base: usize, size: NonZeroUsize) -> Result<MemoryRange> { in alloc_mut()
344 fn alloc_mut_noflush(&mut self, base: usize, size: NonZeroUsize) -> Result<MemoryRange> { in alloc_mut_noflush()
Dutil.rs52 pub const fn page_4kb_of(addr: usize) -> usize { in page_4kb_of()
60 pub(crate) fn virt_to_phys(vaddr: NonNull<u8>) -> usize { in virt_to_phys()
/packages/modules/Virtualization/guest/pvmfw/avb/src/
Dops.rs87 ) -> IoResult<usize> { in read_from_partition()
116 _rollback_index_location: usize, in write_rollback_index()
131 fn read_persistent_value(&mut self, _name: &CStr, _value: &mut [u8]) -> IoResult<usize> { in read_persistent_value()
160 fn to_copy_start(offset: i64, len: usize) -> Option<usize> { in to_copy_start()
/packages/modules/Virtualization/guest/pvmfw/avb/tests/
Dutils.rs81 pub fn get_avb_footer_offset(signed_kernel: &[u8]) -> Result<usize> { in get_avb_footer_offset()
118 page_size: Option<usize>, in assert_latest_payload_verification_passes()
152 page_size: Option<usize>, in assert_payload_without_initrd_passes_verification()
191 pub fn read_page_size(kernel: &[u8]) -> Result<Option<usize>, PvmfwVerifyError> { in read_page_size()

12345