Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/include/asm/
Dpage.h74 static __always_inline u64 __canonical_address(u64 vaddr, u8 vaddr_bits) in __canonical_address() argument
76 return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits); in __canonical_address()
79 static __always_inline u64 __is_canonical_address(u64 vaddr, u8 vaddr_bits) in __is_canonical_address() argument
81 return __canonical_address(vaddr, vaddr_bits) == vaddr; in __is_canonical_address()
/linux-6.1.9/arch/x86/events/intel/
Dpt.c1380 static u64 clamp_to_ge_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_ge_canonical_addr() argument
1382 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_ge_canonical_addr()
1384 -BIT_ULL(vaddr_bits - 1); in clamp_to_ge_canonical_addr()
1388 static u64 clamp_to_le_canonical_addr(u64 vaddr, u8 vaddr_bits) in clamp_to_le_canonical_addr() argument
1390 return __is_canonical_address(vaddr, vaddr_bits) ? in clamp_to_le_canonical_addr()
1392 BIT_ULL(vaddr_bits - 1) - 1; in clamp_to_le_canonical_addr()
/linux-6.1.9/arch/x86/kvm/
Dcpuid.c132 int vaddr_bits = (best->eax & 0xff00) >> 8; in kvm_check_cpuid() local
134 if (vaddr_bits != 48 && vaddr_bits != 57 && vaddr_bits != 0) in kvm_check_cpuid()