Home
last modified time | relevance | path

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

1234

/packages/modules/Virtualization/vmbase/src/
Dutil.rs31 pub const fn unchecked_align_down(addr: usize, alignment: usize) -> usize { in unchecked_align_down()
38 pub const fn unchecked_align_up(addr: usize, alignment: usize) -> usize { in unchecked_align_up()
43 pub const fn align_up(addr: usize, alignment: usize) -> Option<usize> { in align_up()
57 const fn align_down(addr: usize, alignment: usize) -> Option<usize> { in align_down()
68 pub const fn ceiling_div(num: usize, den: usize) -> Option<usize> { in ceiling_div()
Dheap.rs65 pub fn aligned_boxed_slice(size: usize, align: usize) -> Option<Box<[u8]>> { in aligned_boxed_slice()
83 unsafe extern "C" fn calloc(nmemb: usize, size: usize) -> *mut c_void { in calloc()
92 len: usize, in __memset_chk()
93 destlen: usize, in __memset_chk()
132 fn allocate(size: usize, zeroed: bool) -> Option<NonNull<usize>> { in allocate()
159 const fn const_max_size(a: usize, b: usize) -> usize { in const_max_size()
Dbionic.rs165 extern "C" fn fwrite(ptr: *const c_void, size: usize, nmemb: usize, stream: usize) -> usize { in fwrite()
/packages/modules/Virtualization/vm_payload/src/
Dlib.rs181 identifier_size: usize, in AVmPayload_getVmInstanceSecret()
183 size: usize, in AVmPayload_getVmInstanceSecret()
222 pub unsafe extern "C" fn AVmPayload_getDiceAttestationChain(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationChain()
251 pub unsafe extern "C" fn AVmPayload_getDiceAttestationCdi(data: *mut u8, size: usize) -> usize { in AVmPayload_getDiceAttestationCdi()
284 challenge_size: usize, in AVmPayload_requestAttestation()
311 challenge_size: usize, in AVmPayload_requestAttestationForTesting()
337 challenge_size: usize, in request_attestation()
413 size: usize, in AVmAttestationResult_getPrivateKey()
414 ) -> usize { in AVmAttestationResult_getPrivateKey()
451 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/pvmfw/src/
Dentry.rs87 fdt: usize, in new()
88 kernel: usize, in new()
89 kernel_size: usize, in new()
190 fdt: usize, in main_wrapper()
191 payload: usize, in main_wrapper()
192 payload_size: usize, in main_wrapper()
193 ) -> Result<(usize, Range<usize>), RebootReason> { in main_wrapper()
271 fn jump_to_payload(fdt_address: u64, payload_start: u64, bcc: Range<usize>) -> ! { in jump_to_payload()
Dconfig.rs89 pub fn total_size(&self) -> usize { in total_size()
93 pub fn body_lowest_bound(&self) -> Result<usize> { in body_lowest_bound()
105 pub fn entry_count(&self) -> Result<usize> { in entry_count()
177 pub fn new(start: usize, size: usize) -> Option<Self> { in new()
184 fn end(&self) -> usize { in end()
188 fn len(&self) -> usize { in len()
192 fn as_range(&self) -> Range<usize> { in as_range()
Dgpt.rs74 pub fn indices(&self) -> RangeInclusive<usize> { in indices()
78 pub fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block()
83 pub fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block()
88 fn block_index(&self, index: usize) -> Option<usize> { in block_index()
148 fn read_block(&mut self, index: usize, blk: &mut [u8]) -> Result<()> { in read_block()
152 fn write_block(&mut self, index: usize, blk: &[u8]) -> Result<()> { in write_block()
/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()
Dverifier.rs79 ) -> Result<impl Iterator<Item = Result<([u8; 4096], usize), FsverityError>> + '_, FsverityError> { in fsverity_walk() argument
152 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
191 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
211 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
/packages/modules/Virtualization/vmbase/src/memory/
Dutil.rs54 pub(super) fn flush_region(start: usize, size: usize) { in flush_region()
85 pub const fn page_4kb_of(addr: usize) -> usize { in page_4kb_of()
93 pub(crate) fn virt_to_phys(vaddr: NonNull<u8>) -> usize { in virt_to_phys()
Ddbm.rs56 _level: usize, in flush_dirty_range()
70 _level: usize, in mark_dirty_block()
/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/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.rs11 mtu: usize, in handle_read_request()
66 mtu: usize, in do_read_request_with_handle_and_mtu()
/packages/modules/Virtualization/pvmfw/avb/src/
Dops.rs79 ) -> IoResult<usize> { in read_from_partition()
108 _rollback_index_location: usize, in write_rollback_index()
123 fn read_persistent_value(&mut self, _name: &CStr, _value: &mut [u8]) -> IoResult<usize> { in read_persistent_value()
152 fn to_copy_start(offset: i64, len: usize) -> Option<usize> { in to_copy_start()
/packages/modules/Virtualization/libs/dice/open_dice/src/
Dbcc.rs45 pub fn bcc_format_config_descriptor(values: &DiceConfigValues, buffer: &mut [u8]) -> Result<usize> { in bcc_format_config_descriptor()
98 ) -> Result<usize> { in bcc_main_flow()
134 ) -> Result<usize> { in bcc_handover_main_flow()
/packages/modules/Virtualization/vmbase/src/hyp/hypervisor/
Dcommon.rs51 fn granule(&self) -> Result<usize>; in granule()
66 fn granule(&self) -> Result<usize>; in granule()
/packages/modules/Virtualization/rialto/src/
Dfdt.rs22 pub fn read_dice_range_from(fdt: &Fdt) -> libfdt::Result<Range<usize>> { in read_dice_range_from()
/packages/modules/Virtualization/libs/bssl/src/
Daead.rs66 pub fn max_overhead(&self) -> usize { in max_overhead()
72 pub fn nonce_length(&self) -> usize { in nonce_length()
/packages/modules/Virtualization/vmbase/example/src/
Dpci.rs73 fn check_virtio_block_device(transport: PciTransport, index: usize) { in check_virtio_block_device()
132 fn dma_alloc(pages: usize, _direction: BufferDirection) -> (PhysAddr, NonNull<u8>) { in dma_alloc()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/
Dffi.rs159 len: usize, in link_manager_ingest_hci()
188 len: usize,
288 len: usize, in link_layer_ingest_hci()
317 len: usize, in link_layer_ingest_llcp()

1234