| /linux/drivers/iommu/ |
| H A D | io-pgtable-dart.c | 365 int levels, max_tbl_bits, tbl_bits, bits_per_level, va_bits, pg_shift; in dart_alloc_pgtable() local 379 va_bits = cfg->ias - pg_shift; in dart_alloc_pgtable() 381 levels = max_t(int, 2, (va_bits - max_tbl_bits + bits_per_level - 1) / bits_per_level); in dart_alloc_pgtable() 386 tbl_bits = max_t(int, 0, va_bits - (bits_per_level * levels)); in dart_alloc_pgtable()
|
| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A D | mmu-hash.h | 780 unsigned long va_bits = VA_BITS; in get_vsid() local 791 va_bits = 65; in get_vsid() 794 vsid_bits = va_bits - SID_SHIFT; in get_vsid() 800 vsid_bits = va_bits - SID_SHIFT_1T; in get_vsid()
|
| /linux/tools/testing/selftests/kvm/lib/arm64/ |
| H A D | processor.c | 27 u64 mask = (1UL << (vm->va_bits - shift)) - 1; in pgd_index() 63 (vm->pa_bits > 48 || vm->va_bits > 48); in use_lpa2_pte_format() 103 return 1 << (vm->va_bits - shift); in ptrs_per_pgd() 380 tcr_el1 |= TCR_T0SZ(vm->va_bits); in aarch64_vcpu_setup() 680 (1ULL << vm->va_bits) >> vm->page_shift); in vm_populate_gva_bitmap()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | kvm_util.c | 276 * the VA region spans [0, 2^(va_bits - 1)), [-(2^(va_bits - 1), -1]. in vm_populate_gva_bitmap() 281 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in ____vm_create() 283 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in ____vm_create() 284 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in ____vm_create() 303 vm->va_bits = vm_guest_mode_params[vm->mode].va_bits; in ____vm_create() 341 kvm_get_cpu_address_width(&vm->pa_bits, &vm->va_bits); in ____vm_create() 347 vm->va_bits); in ____vm_create() 349 if (vm->va_bits in ____vm_create() [all...] |
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 716 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_vm_active() local 797 AS_TRANSCFG_INA_BITS(55 - va_bits); in panthor_vm_active() 1559 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_vm_create_check_args() local 1560 u64 full_va_range = 1ull << va_bits; in panthor_vm_create_check_args() 2854 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_vm_create() local 2856 u64 full_va_range = 1ull << va_bits; in panthor_vm_create() 2915 .ias = va_bits, in panthor_vm_create() 3389 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_mmu_init() local 3430 if (va_bits > BITS_PER_LONG) { in panthor_mmu_init()
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | pre_fault_memory_test.c | 180 gva = gpa & ((1ULL << (vm->va_bits - 1)) - 1); in __test_pre_fault_memory()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_tlb_inval.c | 359 u64 range = 1ull << vm->xe->info.va_bits; in xe_tlb_inval_vm()
|
| H A D | xe_device.c | 1378 return sign_extend64(address, xe->info.va_bits - 1); in xe_device_canonicalize_addr() 1383 return address & GENMASK_ULL(xe->info.va_bits - 1, 0); in xe_device_uncanonicalize_addr()
|
| H A D | xe_vm.c | 1643 vm->size = 1ull << xe->info.va_bits; in xe_vm_create()
|
| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | processor.c | 1320 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits) in kvm_init_vm_address_properties() 1324 *va_bits = 32; in get_cpuid_entry() 1327 *va_bits = kvm_cpu_property(X86_PROPERTY_MAX_VIRT_ADDR); in get_cpuid_entry() 1301 kvm_get_cpu_address_width(unsigned int * pa_bits,unsigned int * va_bits) kvm_get_cpu_address_width() argument
|
| /linux/arch/arm64/kvm/hyp/ |
| H A D | pgtable.c | 525 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits, in kvm_pgtable_hyp_init() argument 529 ARM64_HW_PGTABLE_LEVELS(va_bits); in kvm_pgtable_hyp_init() 539 pgt->ia_bits = va_bits; in kvm_pgtable_hyp_init()
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_mmu.c | 780 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(pfdev->features.mmu_features); in panfrost_mmu_ctx_create() local 813 .ias = va_bits, in panfrost_mmu_ctx_create()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_util.h | 107 unsigned int va_bits; member 280 unsigned int va_bits; member
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 1248 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits);
|