Home
last modified time | relevance | path

Searched refs:mem_limit (Results 1 – 8 of 8) sorted by relevance

/arch/x86/boot/compressed/
Dkaslr.c89 static u64 mem_limit; variable
214 if (size > 0 && size < mem_limit) in mem_avoid_memmap()
215 mem_limit = size; in mem_avoid_memmap()
300 if (mem_size < mem_limit) in handle_mem_options()
301 mem_limit = mem_size; in handle_mem_options()
593 region_end = min(entry->start + entry->size, mem_limit); in __process_mem_region()
786 if (minimum + image_size > mem_limit) in find_random_phys_addr()
801 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr()
846 mem_limit = KERNEL_IMAGE_SIZE; in choose_random_location()
848 mem_limit = MAXMEM; in choose_random_location()
/arch/parisc/mm/
Dinit.c78 static unsigned long mem_limit __read_mostly = MAX_MEM;
103 if (limit < mem_limit) in mem_limit_func()
104 mem_limit = limit; in mem_limit_func()
203 if ((mem_max + rsize) > mem_limit) { in setup_bootmem()
204 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem()
205 if (mem_max == mem_limit) in setup_bootmem()
208 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem()
211 mem_max = mem_limit; in setup_bootmem()
639 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
/arch/powerpc/kexec/
Dcore.c217 static unsigned long long mem_limit; variable
240 .value = &mem_limit,
265 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
/arch/arm/mach-cns3xxx/
Dpcie.c232 u16 mem_limit = cnspci->res_mem.end >> 16; in cns3xxx_pcie_hw_init() local
240 cns3xxx_write_config(cnspci, PCI_MEMORY_LIMIT, 2, mem_limit); in cns3xxx_pcie_hw_init()
/arch/ia64/kernel/
Defi.c72 static u64 mem_limit = ~0UL, max_addr = ~0UL, min_addr = 0UL; variable
502 mem_limit = memparse(cp + 4, &cp); in efi_init()
1026 if (total_mem + (ae - as) > mem_limit) in find_memmap_space()
1027 ae -= total_mem + (ae - as) - mem_limit; in find_memmap_space()
1145 if (total_mem + (ae - as) > mem_limit) in efi_memmap_init()
1146 ae -= total_mem + (ae - as) - mem_limit; in efi_memmap_init()
/arch/alpha/kernel/
Dsetup.c284 move_initrd(unsigned long mem_limit) in move_initrd() argument
291 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
/arch/s390/kvm/
Dkvm-s390.c833 kvm->arch.mem_limit); in kvm_s390_get_mem_control()
834 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control()
893 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control()
894 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control()
2788 kvm->arch.mem_limit = KVM_S390_NO_MEM_LIMIT; in kvm_arch_init_vm()
2791 kvm->arch.mem_limit = TASK_SIZE_MAX; in kvm_arch_init_vm()
2793 kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, in kvm_arch_init_vm()
2795 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm()
5062 if (mem->guest_phys_addr + mem->memory_size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
/arch/s390/include/asm/
Dkvm_host.h934 unsigned long mem_limit; member