Lines Matching refs:HostAlignedByteCount
9 HostAlignedByteCount, MmapOffset, ModuleMemoryImageSource, host_page_size,
47 len: HostAlignedByteCount,
65 linear_memory_offset: HostAlignedByteCount,
79 linear_memory_offset: HostAlignedByteCount, in new() argument
88 HostAlignedByteCount::new(data_range.len()).expect("memory image data is page-aligned"); in new()
227 let offset = HostAlignedByteCount::new(offset_usize) in new()
323 accessible: HostAlignedByteCount,
361 accessible: HostAlignedByteCount, in create() argument
374 let size_bytes_aligned = HostAlignedByteCount::new_rounded_up(size_bytes)?; in set_heap_limit()
429 HostAlignedByteCount::new_rounded_up(initial_size_bytes)?; in instantiate()
525 keep_resident: HostAlignedByteCount, in clear_and_remain_ready() argument
541 keep_resident: HostAlignedByteCount, in reset_all_memory_contents() argument
567 keep_resident: HostAlignedByteCount, in reset_with_original_mapping() argument
658 fn set_protection(&self, range: Range<HostAlignedByteCount>, readwrite: bool) -> Result<()> { in set_protection() argument
705 self.accessible = HostAlignedByteCount::ZERO; in reset_with_anon_memory()
716 use crate::runtime::vm::{HostAlignedByteCount, MmapVec, host_page_size};
723 HostAlignedByteCount::new(offset).expect("offset is page-aligned"); in create_memfd_with_data()
725 let image_len = HostAlignedByteCount::new_rounded_up(data.len()).unwrap(); in create_memfd_with_data()
765 let four_mib = HostAlignedByteCount::new(4 << 20).expect("4 MiB is page aligned"); in mmap_4mib_inaccessible()
766 Arc::new(Mmap::accessible_reserved(HostAlignedByteCount::ZERO, four_mib).unwrap()) in mmap_4mib_inaccessible()
804 MemoryImageSlot::create(mmap.zero_offset(), HostAlignedByteCount::ZERO, 4 << 20); in instantiate_no_image()
829 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_no_image()
851 MemoryImageSlot::create(mmap.zero_offset(), HostAlignedByteCount::ZERO, 4 << 20); in instantiate_image()
869 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_image()
881 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_image()
892 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_image()
905 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_image()
918 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in instantiate_image()
940 MemoryImageSlot::create(mmap.zero_offset(), HostAlignedByteCount::ZERO, 4 << 20); in memset_instead_of_madvise()
946 let amt_to_memset = HostAlignedByteCount::new(amt_to_memset).unwrap(); in memset_instead_of_madvise()
974 let amt_to_memset = HostAlignedByteCount::new(amt_to_memset).unwrap(); in memset_instead_of_madvise()
1006 MemoryImageSlot::create(mmap.zero_offset(), HostAlignedByteCount::ZERO, 4 << 20); in dynamic()
1026 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in dynamic()
1051 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in dynamic()
1076 .clear_and_remain_ready(None, HostAlignedByteCount::ZERO, |ptr, len| unsafe { in dynamic()
1099 MemoryImageSlot::create(mmap.zero_offset(), HostAlignedByteCount::ZERO, mmap_len); in reset_with_pagemap()
1115 let keep_resident = HostAlignedByteCount::new(mmap_len).unwrap(); in reset_with_pagemap()
1146 .clear_and_remain_ready(pagemap, HostAlignedByteCount::ZERO, |ptr, len| { in reset_with_pagemap()