Searched refs:offset_from (Results 1 – 8 of 8) sorted by relevance
/external/crosvm/vm_memory/src/ |
D | guest_address.rs | 26 pub fn offset_from(self, base: GuestAddress) -> u64 { in offset_from() method 135 assert_eq!(0x10, b.offset_from(a)); in add_sub()
|
D | guest_memory.rs | 507 .get_slice(addr.offset_from(region.start()) as usize, len) in get_slice_at_addr() 680 guest_addr.offset_from(region.start()) as usize, in do_in_region() 714 .map(|region| region.shm_offset + guest_addr.offset_from(region.start())) in offset_from_base()
|
/external/rust/crates/hashbrown/src/raw/ |
D | mod.rs | 77 unsafe fn offset_from<T>(to: *const T, from: *const T) -> usize { in offset_from() function 78 to.offset_from(from) as usize in offset_from() 82 unsafe fn offset_from<T>(to: *const T, from: *const T) -> usize { in offset_from() function 319 offset_from(base.as_ptr(), self.ptr.as_ptr()) in to_base_index() 1753 let len = offset_from(self.end, self.next_ctrl); in split() 1832 Some(unsafe { offset_from(self.end, self.next_ctrl) + Group::WIDTH }), in size_hint() 1903 let offset = offset_from(self.iter.data.as_ptr(), b.as_ptr()); in reflect_toggle_full() 1947 let our_bit = offset_from(self.iter.data.as_ptr(), b.as_ptr()); in reflect_toggle_full()
|
/external/rust/crates/memoffset/src/ |
D | offset_of.rs | 58 unsafe { (field as *const u8).offset_from(base as *const u8) as usize }
|
/external/crosvm/x86_64/src/ |
D | lib.rs | 274 mem_end.offset_from(kernel_addr) as u64, in configure_system() 281 end_32bit_gap_start.offset_from(kernel_addr) as u64, in configure_system() 288 mem_end.offset_from(first_addr_past_32bits) as u64, in configure_system() 342 mem_end.offset_from(end_32bit_gap_start), in arch_memory_regions()
|
D | smbios.rs | 353 smbios_ep.max_size = curptr.offset_from(physptr) as u32; in setup_smbios()
|
D | mptable.rs | 359 length: table_end.offset_from(table_base) as u16, in setup_mptable()
|
/external/crosvm/arch/src/ |
D | lib.rs | 598 let max_size = max_guest_addr.offset_from(min_guest_addr) & !(align - 1); in load_image_high()
|