Home
last modified time | relevance | path

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

/linux-6.12.1/arch/x86/include/asm/
Dpage.h77 static __always_inline u64 __canonical_address(u64 vaddr, u8 vaddr_bits) in __canonical_address() argument
79 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in __canonical_address()
82 static __always_inline u64 __is_canonical_address(u64 vaddr, u8 vaddr_bits) in __is_canonical_address() argument
84 return __canonical_address(vaddr, vaddr_bits) == vaddr; in __is_canonical_address()
/linux-6.12.1/arch/x86/events/intel/
Dpt.c1384 static u64 clamp_to_ge_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_ge_canonical_addr() argument
1386 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_ge_canonical_addr()
1388 -BIT_ULL(vaddr_bits - 1); in clamp_to_ge_canonical_addr()
1392 static u64 clamp_to_le_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_le_canonical_addr() argument
1394 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_le_canonical_addr()
1396 BIT_ULL(vaddr_bits - 1) - 1; in clamp_to_le_canonical_addr()
/linux-6.12.1/arch/x86/kvm/
Dcpuid.c147 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() local
149 if (vaddr_bits != 48 && vaddr_bits != 57 && vaddr_bits != 0) in kvm_check_cpuid()