| /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() 378 tcr_el1 |= TCR_T0SZ(vm->va_bits); in aarch64_vcpu_setup() 678 (1ULL << vm->va_bits) >> vm->page_shift); in vm_populate_gva_bitmap()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | kvm_util.c | 285 * the VA region spans [0, 2^(va_bits - 1)), [-(2^(va_bits - 1), -1]. in ____vm_create() 290 0, (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in ____vm_create() 292 (~((1ULL << (vm->va_bits - 1)) - 1)) >> vm->page_shift, in ____vm_create() 293 (1ULL << (vm->va_bits - 1)) >> vm->page_shift); in ____vm_create() 315 vm->va_bits = vm_guest_mode_params[vm->mode].va_bits; in ____vm_create() 353 kvm_get_cpu_address_width(&vm->pa_bits, &vm->va_bits); in ____vm_create() 359 vm->va_bits); in ____vm_create() 361 if (vm->va_bits in ____vm_create() [all...] |
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 710 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); 791 AS_TRANSCFG_INA_BITS(55 - va_bits); in panthor_vm_active() 1553 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); 1554 u64 full_va_range = 1ull << va_bits; 2853 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_vm_create() 2855 u64 full_va_range = 1ull << va_bits; in panthor_vm_create() 2914 .ias = va_bits, in panthor_vm_create() 3387 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); in panthor_mmu_init() 3429 if (va_bits > BITS_PER_LONG) { in panthor_mmu_init() 716 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); panthor_vm_active() local 1559 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); panthor_vm_create_check_args() local 2854 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); panthor_vm_create() local 3389 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(ptdev->gpu_info.mmu_features); panthor_mmu_init() local
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | pre_fault_memory_test.c | 217 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 | 431 u64 range = 1ull << vm->xe->info.va_bits; in xe_inval_fence_get_driver_name()
|
| H A D | xe_device.c | 1344 return sign_extend64(address, xe->info.va_bits - 1); 1349 return address & GENMASK_ULL(xe->info.va_bits - 1, 0);
|
| H A D | xe_vm.c | 1698 vm->size = 1ull << xe->info.va_bits; in xe_vm_create()
|
| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | processor.c | 1327 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits) in get_cpuid_entry() 1331 *va_bits = 32; in get_cpuid_entry() 1334 *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 | 535 int kvm_pgtable_hyp_init(struct kvm_pgtable *pgt, u32 va_bits, in kvm_pgtable_hyp_init() 539 ARM64_HW_PGTABLE_LEVELS(va_bits); in kvm_pgtable_hyp_init() 549 pgt->ia_bits = va_bits; in hyp_free_walker() 525 kvm_pgtable_hyp_init(struct kvm_pgtable * pgt,u32 va_bits,struct kvm_pgtable_mm_ops * mm_ops) kvm_pgtable_hyp_init() argument
|
| /linux/drivers/gpu/drm/panfrost/ |
| H A D | panfrost_mmu.c | 785 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(pfdev->features.mmu_features); in panfrost_mmu_ctx_create() 818 .ias = va_bits, in panfrost_mmu_ctx_create() 780 u32 va_bits = GPU_MMU_FEATURES_VA_BITS(pfdev->features.mmu_features); panfrost_mmu_ctx_create() local
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_util.h | 144 unsigned int va_bits; 322 unsigned int va_bits; 107 unsigned int va_bits; global() member 280 unsigned int va_bits; global() member
|
| /linux/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 1256 void kvm_get_cpu_address_width(unsigned int *pa_bits, unsigned int *va_bits);
|