Home
last modified time | relevance | path

Searched refs:vaddr_bits (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/mm/
Dmaccess.c7 static __always_inline u64 canonical_address(u64 vaddr, u8 vaddr_bits) in canonical_address() argument
9 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in canonical_address()
/kernel/linux/linux-5.10/arch/x86/events/intel/
Dpt.c1363 static u64 canonical_address(u64 vaddr, u8 vaddr_bits) in canonical_address() argument
1365 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in canonical_address()
1368 static u64 is_canonical_address(u64 vaddr, u8 vaddr_bits) in is_canonical_address() argument
1370 return canonical_address(vaddr, vaddr_bits) == vaddr; in is_canonical_address()
1374 static u64 clamp_to_ge_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_ge_canonical_addr() argument
1376 return is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_ge_canonical_addr()
1378 -BIT_ULL(vaddr_bits - 1); in clamp_to_ge_canonical_addr()
1382 static u64 clamp_to_le_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_le_canonical_addr() argument
1384 return is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_le_canonical_addr()
1386 BIT_ULL(vaddr_bits - 1) - 1; in clamp_to_le_canonical_addr()
/kernel/linux/linux-5.10/arch/x86/kvm/
Dx86.h159 static inline u64 get_canonical(u64 la, u8 vaddr_bits) in get_canonical() argument
161 return ((int64_t)la << (64 - vaddr_bits)) >> (64 - vaddr_bits); in get_canonical()
Dcpuid.c84 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() local
86 if (vaddr_bits != 48 && vaddr_bits != 57 && vaddr_bits != 0) in kvm_check_cpuid()