Home
last modified time | relevance | path

Searched refs:checked_offset (Results 1 – 5 of 5) sorted by relevance

/external/crosvm/vm_memory/src/
Dguest_memory.rs246 pub fn checked_offset(&self, addr: GuestAddress, offset: u64) -> Option<GuestAddress> { in checked_offset() method
655 self.checked_offset(self.regions[0].guest_base, offset) in offset_region()
779 assert!(gm.checked_offset(GuestAddress(0x1000), 0x1000).is_none()); in region_hole()
780 assert!(gm.checked_offset(GuestAddress(0x5000), 0x800).is_some()); in region_hole()
781 assert!(gm.checked_offset(GuestAddress(0x5000), 0x1000).is_none()); in region_hole()
/external/crosvm/devices/src/virtio/
Dqueue.rs93 let desc_head = mem.checked_offset(desc_table, (index as u64) * 16)?; in checked_new()
96 mem.checked_offset(desc_head, 16)?; in checked_new()
124 .checked_offset(self.addr, self.len as u64 - 1u64) in is_valid()
421 let desc_idx_addr = mem.checked_offset(self.avail_ring, desc_idx_addr_offset)?; in peek()
/external/crosvm/x86_64/src/
Dfdt.rs68 .checked_offset(fdt_address, fdt_data_size as u64) in create_fdt()
Dregs.rs261 .checked_offset(boot_gdt_addr, (index * mem::size_of::<u64>()) as u64) in write_gdt_table()
Dlib.rs296 .checked_offset(zero_page_addr, mem::size_of::<boot_params>() as u64) in configure_system()
559 .checked_offset(kernel_load_addr, KERNEL_64BIT_ENTRY_OFFSET) in configure_vcpu()