Searched refs:vm_size (Results 1 – 11 of 11) sorted by relevance
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/ |
D | pkvm.c | 470 size_t vm_size, pgd_size; in __pkvm_init_vm() local 485 vm_size = pkvm_get_hyp_vm_size(nr_vcpus); in __pkvm_init_vm() 490 hyp_vm = map_donated_memory(vm_hva, vm_size); in __pkvm_init_vm() 517 unmap_donated_memory(hyp_vm, vm_size); in __pkvm_init_vm() 594 size_t vm_size; in __pkvm_teardown_vm() local 628 vm_size = pkvm_get_hyp_vm_size(hyp_vm->kvm.created_vcpus); in __pkvm_teardown_vm() 629 teardown_donated_memory(mc, hyp_vm, vm_size); in __pkvm_teardown_vm()
|
/linux-6.6.21/drivers/gpu/drm/virtio/ |
D | virtgpu_vram.c | 39 unsigned long vm_size = vma->vm_end - vma->vm_start; in virtio_gpu_vram_mmap() local 60 if (vm_size != vram->vram_node.size) in virtio_gpu_vram_mmap() 65 vm_size, vma->vm_page_prot); in virtio_gpu_vram_mmap()
|
/linux-6.6.21/drivers/gpu/drm/exynos/ |
D | exynos_drm_gem.c | 274 unsigned long vm_size; in exynos_drm_gem_mmap_buffer() local 280 vm_size = vma->vm_end - vma->vm_start; in exynos_drm_gem_mmap_buffer() 283 if (vm_size > exynos_gem->size) in exynos_drm_gem_mmap_buffer()
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_gem.c | 682 uint64_t vm_size; in amdgpu_gem_va_ioctl() local 703 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_gem_va_ioctl() 704 vm_size -= AMDGPU_VA_RESERVED_SIZE; in amdgpu_gem_va_ioctl() 705 if (args->va_address + args->map_size > vm_size) { in amdgpu_gem_va_ioctl() 708 args->va_address + args->map_size, vm_size); in amdgpu_gem_va_ioctl()
|
D | amdgpu_vm.c | 1993 static uint32_t amdgpu_vm_get_block_size(uint64_t vm_size) in amdgpu_vm_get_block_size() argument 1996 unsigned bits = ilog2(vm_size) + 18; in amdgpu_vm_get_block_size() 2000 if (vm_size <= 8) in amdgpu_vm_get_block_size() 2021 unsigned int vm_size; in amdgpu_vm_adjust_size() local 2026 vm_size = amdgpu_vm_size; in amdgpu_vm_adjust_size() 2027 if (vm_size > max_size) { in amdgpu_vm_adjust_size() 2030 vm_size = max_size; in amdgpu_vm_adjust_size() 2054 vm_size = roundup_pow_of_two( in amdgpu_vm_adjust_size() 2058 adev->vm_manager.max_pfn = (uint64_t)vm_size << 18; in amdgpu_vm_adjust_size() 2095 vm_size, adev->vm_manager.num_level + 1, in amdgpu_vm_adjust_size()
|
D | amdgpu_kms.c | 773 uint64_t vm_size; in amdgpu_info_ioctl() local 817 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl() 818 vm_size -= AMDGPU_VA_RESERVED_SIZE; in amdgpu_info_ioctl() 823 vm_size = min(vm_size, 1ULL << 40); in amdgpu_info_ioctl() 827 min(vm_size, AMDGPU_GMC_HOLE_START); in amdgpu_info_ioctl() 829 if (vm_size > AMDGPU_GMC_HOLE_START) { in amdgpu_info_ioctl() 831 dev_info->high_va_max = AMDGPU_GMC_HOLE_END | vm_size; in amdgpu_info_ioctl()
|
D | amdgpu_drv.c | 384 MODULE_PARM_DESC(vm_size, "VM address space size in gigabytes (default 64GB)"); 385 module_param_named(vm_size, amdgpu_vm_size, int, 0444);
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | radeon_drv.c | 215 MODULE_PARM_DESC(vm_size, "VM address space size in gigabytes (default 4GB)"); 216 module_param_named(vm_size, radeon_vm_size, int, 0444);
|
/linux-6.6.21/arch/x86/include/asm/ |
D | kvm_host.h | 1562 unsigned int vm_size; member 1810 return __vmalloc(kvm_x86_ops.vm_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO); in kvm_arch_alloc_vm()
|
/linux-6.6.21/arch/x86/kvm/svm/ |
D | svm.c | 4925 .vm_size = sizeof(struct kvm_svm),
|
/linux-6.6.21/arch/x86/kvm/vmx/ |
D | vmx.c | 8235 .vm_size = sizeof(struct kvm_vmx),
|