Home
last modified time | relevance | path

Searched refs:vm_size (Results 1 – 7 of 7) sorted by relevance

/drivers/gpu/drm/exynos/
Dexynos_drm_fbdev.c42 unsigned long vm_size; in exynos_drm_fb_mmap() local
47 vm_size = vma->vm_end - vma->vm_start; in exynos_drm_fb_mmap()
49 if (vm_size > exynos_gem->size) in exynos_drm_fb_mmap()
Dexynos_drm_gem.c255 unsigned long vm_size; in exynos_drm_gem_mmap_buffer() local
261 vm_size = vma->vm_end - vma->vm_start; in exynos_drm_gem_mmap_buffer()
264 if (vm_size > exynos_gem->size) in exynos_drm_gem_mmap_buffer()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_kms.c723 uint64_t vm_size; in amdgpu_info_ioctl() local
755 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
756 vm_size -= AMDGPU_VA_RESERVED_SIZE; in amdgpu_info_ioctl()
761 vm_size = min(vm_size, 1ULL << 40); in amdgpu_info_ioctl()
765 min(vm_size, AMDGPU_GMC_HOLE_START); in amdgpu_info_ioctl()
767 if (vm_size > AMDGPU_GMC_HOLE_START) { in amdgpu_info_ioctl()
769 dev_info.high_va_max = AMDGPU_GMC_HOLE_END | vm_size; in amdgpu_info_ioctl()
Damdgpu_gem.c602 uint64_t vm_size; in amdgpu_gem_va_ioctl() local
623 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_gem_va_ioctl()
624 vm_size -= AMDGPU_VA_RESERVED_SIZE; in amdgpu_gem_va_ioctl()
625 if (args->va_address + args->map_size > vm_size) { in amdgpu_gem_va_ioctl()
628 args->va_address + args->map_size, vm_size); in amdgpu_gem_va_ioctl()
Damdgpu_vm.c2679 static uint32_t amdgpu_vm_get_block_size(uint64_t vm_size) in amdgpu_vm_get_block_size() argument
2682 unsigned bits = ilog2(vm_size) + 18; in amdgpu_vm_get_block_size()
2686 if (vm_size <= 8) in amdgpu_vm_get_block_size()
2707 unsigned int vm_size; in amdgpu_vm_adjust_size() local
2712 vm_size = amdgpu_vm_size; in amdgpu_vm_adjust_size()
2713 if (vm_size > max_size) { in amdgpu_vm_adjust_size()
2716 vm_size = max_size; in amdgpu_vm_adjust_size()
2740 vm_size = roundup_pow_of_two( in amdgpu_vm_adjust_size()
2744 adev->vm_manager.max_pfn = (uint64_t)vm_size << 18; in amdgpu_vm_adjust_size()
2781 vm_size, adev->vm_manager.num_level + 1, in amdgpu_vm_adjust_size()
Damdgpu_drv.c331 MODULE_PARM_DESC(vm_size, "VM address space size in gigabytes (default 64GB)");
332 module_param_named(vm_size, amdgpu_vm_size, int, 0444);
/drivers/gpu/drm/radeon/
Dradeon_drv.c269 MODULE_PARM_DESC(vm_size, "VM address space size in gigabytes (default 4GB)");
270 module_param_named(vm_size, radeon_vm_size, int, 0444);