Searched refs:checked_offset (Results 1 – 5 of 5) sorted by relevance
/external/crosvm/vm_memory/src/ |
D | guest_memory.rs | 246 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/ |
D | queue.rs | 93 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/ |
D | fdt.rs | 68 .checked_offset(fdt_address, fdt_data_size as u64) in create_fdt()
|
D | regs.rs | 261 .checked_offset(boot_gdt_addr, (index * mem::size_of::<u64>()) as u64) in write_gdt_table()
|
D | lib.rs | 296 .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()
|