Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/boot/compressed/
H A Dkaslr.c81 static u64 mem_limit; variable
183 if (size > 0 && size < mem_limit) in mem_avoid_memmap()
184 mem_limit = size; in mem_avoid_memmap()
269 if (mem_size < mem_limit) in handle_mem_options()
270 mem_limit = mem_size; in handle_mem_options()
560 region_end = min(entry->start + entry->size, mem_limit); in __process_mem_region()
769 if (minimum + image_size > mem_limit) in find_random_phys_addr()
784 if (phys_addr < minimum || phys_addr + image_size > mem_limit) { in find_random_phys_addr()
829 mem_limit = KERNEL_IMAGE_SIZE; in choose_random_location()
831 mem_limit = MAXMEM; in choose_random_location()
/linux-6.15/arch/powerpc/kexec/
H A Dcore.c142 static unsigned long long mem_limit; variable
165 .value = &mem_limit,
190 mem_limit = cpu_to_be_ulong(memory_limit); in export_crashk_values()
/linux-6.15/arch/parisc/mm/
H A Dinit.c81 static unsigned long mem_limit __read_mostly = MAX_MEM;
106 if (limit < mem_limit) in mem_limit_func()
107 mem_limit = limit; in mem_limit_func()
202 if ((mem_max + rsize) > mem_limit) { in setup_bootmem()
203 printk(KERN_WARNING "Memory truncated to %ld MB\n", mem_limit >> 20); in setup_bootmem()
204 if (mem_max == mem_limit) in setup_bootmem()
207 pmem_ranges[i].pages = (mem_limit >> PAGE_SHIFT) in setup_bootmem()
210 mem_max = mem_limit; in setup_bootmem()
636 if (initrd_end && initrd_end > mem_limit) { in pagetable_init()
/linux-6.15/drivers/tty/
H A Dtty_buffer.c96 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()
/linux-6.15/include/linux/
H A Dtty_buffer.h43 int mem_limit; member
/linux-6.15/Documentation/admin-guide/blockdev/
H A Dzram.rst150 Set memory limit by writing the value to sysfs node 'mem_limit'.
156 echo $((50*1024*1024)) > /sys/block/zram0/mem_limit
159 echo 256K > /sys/block/zram0/mem_limit
160 echo 512M > /sys/block/zram0/mem_limit
161 echo 1G > /sys/block/zram0/mem_limit
164 echo 0 > /sys/block/zram0/mem_limit
212 mem_limit WO specifies the maximum amount of memory ZRAM can
272 mem_limit the maximum amount of memory ZRAM can use to store
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-block-zram43 What: /sys/block/zram<id>/mem_limit
47 The mem_limit file is write-only and specifies the maximum
/linux-6.15/arch/alpha/kernel/
H A Dsetup.c266 move_initrd(unsigned long mem_limit) in move_initrd() argument
273 if (!start || __pa(start) + size > mem_limit) { in move_initrd()
/linux-6.15/drivers/pcmcia/
H A Drsrc_nonstatic.c44 INT_MODULE_PARM(mem_limit, 0x10000);
512 if (ok >= mem_limit) in validate_mem()
/linux-6.15/arch/s390/include/asm/
H A Dkvm_host.h642 unsigned long mem_limit; member
/linux-6.15/arch/s390/kvm/
H A Dkvm-s390.c937 kvm->arch.mem_limit); in kvm_s390_get_mem_control()
938 if (put_user(kvm->arch.mem_limit, (u64 __user *)attr->addr)) in kvm_s390_get_mem_control()
997 if (kvm->arch.mem_limit != KVM_S390_NO_MEM_LIMIT && in kvm_s390_set_mem_control()
998 new_limit > kvm->arch.mem_limit) in kvm_s390_set_mem_control()
3443 kvm->arch.mem_limit = KVM_S390_NO_MEM_LIMIT; in kvm_arch_init_vm()
3450 kvm->arch.mem_limit = TASK_SIZE_MAX; in kvm_arch_init_vm()
3452 kvm->arch.mem_limit = min_t(unsigned long, TASK_SIZE_MAX, in kvm_arch_init_vm()
3454 kvm->arch.gmap = gmap_create(current->mm, kvm->arch.mem_limit - 1); in kvm_arch_init_vm()
6039 if ((new->base_gfn * PAGE_SIZE) + size > kvm->arch.mem_limit) in kvm_arch_prepare_memory_region()
/linux-6.15/drivers/block/zram/
H A Dzram_drv.c2484 static DEVICE_ATTR_WO(mem_limit);