Searched refs:mem_limit (Results 1 – 15 of 15) sorted by relevance
/linux/arch/x86/boot/compressed/ |
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() 782 if (minimum + image_size > mem_limit) in find_random_phys_addr() 797 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr() 842 mem_limit = KERNEL_IMAGE_SIZE; in choose_random_location() 844 mem_limit = MAXMEM; in choose_random_location()
|
/linux/arch/parisc/mm/ |
A D | init.c | 78 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() 199 if ((mem_max + rsize) > mem_limit) { in setup_bootmem() 200 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem() 201 if (mem_max == mem_limit) in setup_bootmem() 204 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem() 207 mem_max = mem_limit; in setup_bootmem() 636 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
|
/linux/arch/powerpc/kexec/ |
A D | core.c | 197 static unsigned long long mem_limit; variable 220 .value = &mem_limit, 245 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
|
/linux/drivers/tty/ |
A D | tty_buffer.c | 93 int space = port->buf.mem_limit - atomic_read(&port->buf.mem_used); in tty_buffer_space_avail() 175 if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) in tty_buffer_alloc() 593 buf->mem_limit = TTYB_DEFAULT_MEM_LIMIT; in tty_buffer_init() 609 port->buf.mem_limit = limit; in tty_buffer_set_limit()
|
/linux/Documentation/admin-guide/blockdev/ |
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
|
/linux/include/linux/ |
A D | tty_buffer.h | 45 int mem_limit; member
|
/linux/arch/arm/mach-cns3xxx/ |
A D | pcie.c | 232 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()
|
/linux/arch/ia64/kernel/ |
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()
|
/linux/Documentation/ABI/testing/ |
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
|
/linux/drivers/infiniband/sw/siw/ |
A D | siw_verbs.c | 1287 unsigned long mem_limit = rlimit(RLIMIT_MEMLOCK); in siw_reg_user_mr() local 1303 if (mem_limit != RLIM_INFINITY) { in siw_reg_user_mr() 1306 mem_limit >>= PAGE_SHIFT; in siw_reg_user_mr() 1308 if (num_pages > mem_limit - current->mm->locked_vm) { in siw_reg_user_mr() 1310 num_pages, mem_limit, in siw_reg_user_mr()
|
/linux/arch/alpha/kernel/ |
A D | setup.c | 284 move_initrd(unsigned long mem_limit) in move_initrd() argument 291 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
|
/linux/drivers/pcmcia/ |
A D | rsrc_nonstatic.c | 44 INT_MODULE_PARM(mem_limit, 0x10000); 512 if (ok >= mem_limit) in validate_mem()
|
/linux/arch/s390/kvm/ |
A D | kvm-s390.c | 835 kvm->arch.mem_limit); in kvm_s390_get_mem_control() 836 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control() 895 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control() 896 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control() 2771 kvm->arch.mem_limit = KVM_S390_NO_MEM_LIMIT; in kvm_arch_init_vm() 2774 kvm->arch.mem_limit = TASK_SIZE_MAX; in kvm_arch_init_vm() 2776 kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, in kvm_arch_init_vm() 2778 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm() 5038 if (mem->guest_phys_addr + mem->memory_size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
|
/linux/arch/s390/include/asm/ |
A D | kvm_host.h | 934 unsigned long mem_limit; member
|
/linux/drivers/block/zram/ |
A D | zram_drv.c | 1869 static DEVICE_ATTR_WO(mem_limit);
|
Completed in 38 milliseconds