/openbmc/linux/arch/x86/boot/compressed/ |
H A D | kaslr.c | 85 static u64 mem_limit; variable 210 if (size > 0 && size < mem_limit) in mem_avoid_memmap() 211 mem_limit = size; in mem_avoid_memmap() 296 if (mem_size < mem_limit) in handle_mem_options() 297 mem_limit = mem_size; in handle_mem_options() 589 region_end = min(entry->start + entry->size, mem_limit); in __process_mem_region() 798 if (minimum + image_size > mem_limit) in find_random_phys_addr() 813 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr() 858 mem_limit = KERNEL_IMAGE_SIZE; in choose_random_location() 860 mem_limit = MAXMEM; in choose_random_location()
|
/openbmc/linux/arch/parisc/mm/ |
H A D | init.c | 79 static unsigned long mem_limit __read_mostly = MAX_MEM; 104 if (limit < mem_limit) in mem_limit_func() 105 mem_limit = limit; in mem_limit_func() 200 if ((mem_max + rsize) > mem_limit) { in setup_bootmem() 201 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem() 202 if (mem_max == mem_limit) in setup_bootmem() 205 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem() 208 mem_max = mem_limit; in setup_bootmem() 636 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
|
/openbmc/linux/arch/powerpc/kexec/ |
H A D | core.c | 208 static unsigned long long mem_limit; variable 231 .value = &mem_limit, 256 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/zram/zram/ |
H A D | zram-swap-init | 30 echo ${ZRAM_SIZE_LIMIT} > /sys/block/$devname/mem_limit
|
/openbmc/linux/drivers/tty/ |
H A D | tty_buffer.c | 96 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail() 178 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc() 588 buf->mem_limit = TTYB_DEFAULT_MEM_LIMIT; in tty_buffer_init() 604 port->buf.mem_limit = limit; in tty_buffer_set_limit()
|
/openbmc/linux/include/linux/ |
H A D | tty_buffer.h | 43 int mem_limit; member
|
/openbmc/linux/Documentation/admin-guide/blockdev/ |
H A D | zram.rst | 138 Set memory limit by writing the value to sysfs node 'mem_limit'. 144 echo $((50*1024*1024)) > /sys/block/zram0/mem_limit 147 echo 256K > /sys/block/zram0/mem_limit 148 echo 512M > /sys/block/zram0/mem_limit 149 echo 1G > /sys/block/zram0/mem_limit 152 echo 0 > /sys/block/zram0/mem_limit 200 mem_limit WO specifies the maximum amount of memory ZRAM can 261 mem_limit the maximum amount of memory ZRAM can use to store
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | efi.c | 72 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()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-block-zram | 51 What: /sys/block/zram<id>/mem_limit 55 The mem_limit file is write-only and specifies the maximum
|
/openbmc/linux/drivers/infiniband/sw/siw/ |
H A D | siw_verbs.c | 1325 unsigned long mem_limit = rlimit(RLIMIT_MEMLOCK); in siw_reg_user_mr() local 1341 if (mem_limit != RLIM_INFINITY) { in siw_reg_user_mr() 1344 mem_limit >>= PAGE_SHIFT; in siw_reg_user_mr() 1346 if (num_pages > mem_limit - current->mm->locked_vm) { in siw_reg_user_mr() 1348 num_pages, mem_limit, in siw_reg_user_mr()
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | setup.c | 286 move_initrd(unsigned long mem_limit) in move_initrd() argument 293 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
|
/openbmc/linux/drivers/pcmcia/ |
H A D | rsrc_nonstatic.c | 44 INT_MODULE_PARM(mem_limit, 0x10000); 512 if (ok >= mem_limit) in validate_mem()
|
/openbmc/linux/arch/s390/kvm/ |
H A D | kvm-s390.c | 905 kvm->arch.mem_limit); in kvm_s390_get_mem_control() 906 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control() 965 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control() 966 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control() 3399 kvm->arch.mem_limit = KVM_S390_NO_MEM_LIMIT; in kvm_arch_init_vm() 3402 kvm->arch.mem_limit = TASK_SIZE_MAX; in kvm_arch_init_vm() 3404 kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, in kvm_arch_init_vm() 3406 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm() 5786 if ((new->base_gfn * PAGE_SIZE) + size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | kvm_host.h | 968 unsigned long mem_limit; member
|
/openbmc/linux/drivers/block/zram/ |
H A D | zram_drv.c | 2138 static DEVICE_ATTR_WO(mem_limit);
|