Home
last modified time | relevance | path

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

/arch/parisc/mm/
Dinit.c84 static unsigned long mem_limit __read_mostly = MAX_MEM;
109 if (limit < mem_limit) in mem_limit_func()
110 mem_limit = limit; in mem_limit_func()
209 if ((mem_max + rsize) > mem_limit) { in setup_bootmem()
210 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem()
211 if (mem_max == mem_limit) in setup_bootmem()
214 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem()
217 mem_max = mem_limit; in setup_bootmem()
669 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
/arch/powerpc/kernel/
Dmachine_kexec.c207 static unsigned long long mem_limit; variable
230 .value = &mem_limit,
255 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/x86/boot/compressed/
Dkaslr.c98 static unsigned long long mem_limit = ULLONG_MAX; variable
198 mem_limit = size; in mem_avoid_memmap()
286 mem_limit = mem_size; in handle_mem_options()
593 end = min(entry->size + entry->start, mem_limit); in __process_mem_region()
/arch/ia64/kernel/
Defi.c61 static u64 mem_limit = ~0UL, max_addr = ~0UL, min_addr = 0UL; variable
492 mem_limit = memparse(cp + 4, &cp); in efi_init()
1028 if (total_mem + (ae - as) > mem_limit) in find_memmap_space()
1029 ae -= total_mem + (ae - as) - mem_limit; in find_memmap_space()
1147 if (total_mem + (ae - as) > mem_limit) in efi_memmap_init()
1148 ae -= total_mem + (ae - as) - mem_limit; in efi_memmap_init()
/arch/alpha/kernel/
Dsetup.c290 move_initrd(unsigned long mem_limit) in move_initrd() argument
297 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
/arch/s390/kvm/
Dkvm-s390.c800 kvm->arch.mem_limit); in kvm_s390_get_mem_control()
801 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control()
860 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control()
861 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control()
2491 kvm->arch.mem_limit = KVM_S390_NO_MEM_LIMIT; in kvm_arch_init_vm()
2494 kvm->arch.mem_limit = TASK_SIZE_MAX; in kvm_arch_init_vm()
2496 kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, in kvm_arch_init_vm()
2498 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm()
4520 if (mem->guest_phys_addr + mem->memory_size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
/arch/s390/include/asm/
Dkvm_host.h851 unsigned long mem_limit; member